/* ANGELSPIT — Soul Network Stylesheet
   Base biomechanical OS + per-sector themes via body[data-page] */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@200;400&display=swap');

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

:root {
  --void: #0a0606;
  --blood: #3d1218;
  --meat: #5c2a2a;
  --pink: #8a4a52;
  --silver: #6a6460;
  --bone: #9a8a82;
  --glow: rgba(180, 60, 70, 0.35);
  --wet: rgba(120, 40, 50, 0.2);
  --accent: #b45058;
  --accent-dim: rgba(180, 80, 90, 0.5);
  --panel-bg: rgba(40, 16, 18, 0.94);
  --canvas-mid: #1a0c0e;
  --canvas-deep: #060303;
  --light-r: 180;
  --light-g: 55;
  --light-b: 60;
}

html, body {
  width: 100%;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--void);
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  color: var(--bone);
  cursor: crosshair;
  -webkit-tap-highlight-color: transparent;
}

body.page-sector { overflow-y: hidden; }
body.page-sector .sector-scroll {
  overflow-y: auto;
  max-height: calc(100vh - 130px);
}

a { color: inherit; text-decoration: none; }
a:hover { color: #e8c0b8; text-shadow: 0 0 8px var(--glow); }

/* === LAYER STACK === */
#world {
  position: fixed;
  inset: 0;
  perspective: 800px;
  overflow: hidden;
  z-index: 0;
}
#bg-canvas, #grain-canvas, #fog-canvas, #particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#bg-canvas { z-index: 0; }
#fog-canvas { z-index: 2; opacity: 0.55; mix-blend-mode: screen; }
#grain-canvas { z-index: 3; opacity: 0.18; mix-blend-mode: overlay; }
#particle-canvas { z-index: 4; opacity: 0.5; }

.wall {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 22%;
  z-index: 1;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.15) 3px, rgba(0,0,0,0.15) 4px),
    radial-gradient(ellipse 80% 40% at 50% 30%, rgba(90,35,40,0.5), transparent 60%),
    radial-gradient(ellipse 60% 50% at 40% 70%, rgba(50,20,22,0.6), transparent 55%),
    linear-gradient(90deg, #1a0c0c, #2a1414 40%, #1a0a0a);
  filter: url(#meat-warp) contrast(1.15) brightness(0.85);
}
.wall-left {
  left: 0;
  transform: perspective(600px) rotateY(14deg);
  border-right: 1px solid rgba(100,35,40,0.5);
  box-shadow: inset -20px 0 50px rgba(0,0,0,0.6), 8px 0 30px rgba(0,0,0,0.4);
}
.wall-right {
  right: 0;
  transform: perspective(600px) rotateY(-14deg);
  border-left: 1px solid rgba(100,35,40,0.5);
  box-shadow: inset 20px 0 50px rgba(0,0,0,0.6), -8px 0 30px rgba(0,0,0,0.4);
}

.vein-cable {
  position: absolute;
  z-index: 4;
  width: 3px;
  background: linear-gradient(180deg, #2a1010, #6a2830 30%, #4a1820 70%, #1a0808);
  box-shadow: 0 0 8px var(--glow), inset 0 0 4px rgba(200,80,90,0.3);
  border-radius: 2px;
  animation: vein-pulse 4s ease-in-out infinite;
}
.vein-cable::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 30%;
  background: linear-gradient(transparent, rgba(255,100,110,0.25), transparent);
  animation: vein-flow 3s linear infinite;
}
@keyframes vein-pulse {
  0%, 100% { opacity: 0.6; filter: brightness(0.9); }
  50% { opacity: 1; filter: brightness(1.2); }
}
@keyframes vein-flow {
  0% { top: -30%; }
  100% { top: 130%; }
}

.crt {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.15) 0px, rgba(0,0,0,0.15) 1px, transparent 1px, transparent 3px);
}
.crt::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.65) 100%);
  box-shadow: inset 0 0 120px rgba(0,0,0,0.8);
}
.crt::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(18, 8, 8, 0.03);
  animation: crt-flicker 8s infinite;
}
@keyframes crt-flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.92; }
  94% { opacity: 1; }
  96% { opacity: 0.88; }
  97% { opacity: 1; }
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  background:
    radial-gradient(ellipse 45% 35% at 50% 42%, rgba(var(--light-r), var(--light-g), var(--light-b), 0.12), transparent 55%),
    radial-gradient(ellipse at 50% 45%, transparent 18%, rgba(5,2,2,0.9) 82%);
}
.depth-mist {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 35%, rgba(20, 6, 8, 0.35) 70%, rgba(5, 2, 2, 0.65) 100%),
    radial-gradient(ellipse 30% 80% at 50% 50%, rgba(100, 30, 35, 0.08), transparent 70%);
}
.distort {
  position: fixed;
  inset: 0;
  z-index: 98;
  pointer-events: none;
  opacity: 0.04;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.04' numOctaves='2'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23f)'/%3E%3C/svg%3E");
  animation: distort-shift 0.15s steps(3) infinite;
}
@keyframes distort-shift {
  0% { transform: translate(0,0); }
  33% { transform: translate(1px,-1px); }
  66% { transform: translate(-1px,1px); }
}

.brightness-flicker {
  position: fixed;
  inset: 0;
  z-index: 97;
  pointer-events: none;
  background: rgba(255, 200, 200, 0.02);
  animation: brightness-pulse 6s ease-in-out infinite;
}
@keyframes brightness-plicker {
  0%, 100% { opacity: 0; }
  48% { opacity: 0.08; }
  50% { opacity: 0.15; }
  52% { opacity: 0; }
}
@keyframes brightness-pulse {
  0%, 88%, 100% { opacity: 0; }
  90% { opacity: 0.06; }
  92% { opacity: 0; }
  94% { opacity: 0.1; }
}

/* === STATUS / FLASH === */
.status-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  font-size: 9px;
  letter-spacing: 0.35em;
  color: rgba(154, 138, 130, 0.72);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(60, 25, 28, 0.5);
  background: linear-gradient(180deg, rgba(15,6,6,0.9), transparent);
}
.status-bar span { animation: status-blink 6s infinite; }
.status-bar span:nth-child(2) { animation-delay: 2s; }
.status-bar #clock { animation: none; opacity: 0.55; letter-spacing: 0.2em; }
.folder-flash {
  position: fixed;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 48;
  font-size: clamp(7px, 1.8vw, 9px);
  letter-spacing: 0.22em;
  color: rgba(200, 110, 115, 0.9);
  text-transform: uppercase;
  white-space: nowrap;
  max-width: 92vw;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 14px rgba(180, 50, 60, 0.65);
  animation: folder-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes folder-pulse {
  0%, 100% { opacity: 0.35; }
  45% { opacity: 1; color: #e8a0a4; }
}
@keyframes status-blink {
  0%, 85%, 100% { opacity: 0.4; }
  90% { opacity: 0.9; color: #b06068; }
}

/* === LOGO (index) === */
.logo-zone {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  z-index: 20;
  text-align: center;
  width: min(94vw, 640px);
  perspective: 900px;
}
.logo-backlight {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 140%;
  height: 180%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 55% 45%, rgba(var(--light-r), var(--light-g), var(--light-b), 0.45), transparent 72%);
  filter: blur(28px);
  z-index: -1;
  pointer-events: none;
  animation: backlight-pulse 5s ease-in-out infinite;
}
@keyframes backlight-pulse {
  0%, 100% { opacity: 0.65; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}
.logo-frame {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding: 26px 36px 32px;
  transform: rotateX(4deg);
  background:
    linear-gradient(180deg, rgba(55, 22, 26, 0.5) 0%, transparent 28%),
    linear-gradient(135deg, rgba(30,12,14,0.9), rgba(10,4,4,0.98));
  border: 1px solid rgba(110, 45, 52, 0.65);
  box-shadow: 0 18px 50px rgba(0,0,0,0.75), 0 0 60px rgba(120, 30, 40, 0.35), inset 0 0 80px rgba(0,0,0,0.65);
  clip-path: polygon(6% 0, 94% 0, 100% 10%, 100% 90%, 94% 100%, 6% 100%, 0 90%, 0 10%);
  animation: logo-breathe 5s ease-in-out infinite;
}
.logo-frame::before, .logo-frame::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(100, 45, 50, 0.5);
}
.logo-frame::before { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.logo-frame::after { bottom: 6px; right: 6px; border-left: none; border-top: none; }
@keyframes logo-breathe {
  0%, 100% { box-shadow: 0 18px 50px rgba(0,0,0,0.75), 0 0 50px rgba(120, 30, 40, 0.28), inset 0 0 80px rgba(0,0,0,0.65); }
  50% { box-shadow: 0 22px 60px rgba(0,0,0,0.8), 0 0 90px rgba(160, 40, 50, 0.45), inset 0 0 50px rgba(50,12,16,0.5); }
}
h1.logo, h1.sector-logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 200;
  font-size: clamp(1.15rem, 3.6vw, 2.15rem);
  letter-spacing: 0.14em;
  margin: 0;
  white-space: nowrap;
  color: #dcc8c0;
  text-shadow: 0 1px 0 rgba(0,0,0,0.95), 0 0 24px rgba(var(--light-r), var(--light-g), var(--light-b), 0.75);
  animation: title-glitch 12s infinite;
}
@keyframes title-glitch {
  0%, 96%, 100% { transform: translate(0); }
  97% { transform: translate(-2px, 1px); filter: blur(0.8px); color: #a07070; }
  98% { transform: translate(2px, -1px); }
  99% { transform: translate(0); }
}
.logo-sub, .sector-sub {
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: 0.35em;
  color: rgba(138, 74, 82, 0.8);
  text-transform: uppercase;
}
.rotating { display: block; margin-top: 8px; min-height: 1.2em; color: rgba(176, 96, 104, 0.7); animation: sub-pulse 3s ease-in-out infinite; }
@keyframes sub-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; text-shadow: 0 0 12px rgba(180, 60, 70, 0.5); }
}

/* === PANELS === */
.panel {
  position: fixed;
  z-index: 30;
  width: min(280px, 42vw);
  background:
    linear-gradient(180deg, rgba(70, 28, 32, 0.15) 0%, transparent 22%),
    linear-gradient(160deg, var(--panel-bg), rgba(8, 3, 3, 0.98));
  border: 1px solid rgba(90, 38, 42, 0.75);
  box-shadow: 0 16px 48px rgba(0,0,0,0.75), 0 0 36px rgba(90, 25, 32, 0.22), inset 0 1px 0 rgba(140, 60, 65, 0.28);
  clip-path: polygon(0 8px, 8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px));
  animation: panel-drift 20s ease-in-out infinite;
}
.panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 22px;
  background: linear-gradient(90deg, rgba(50,18,20,0.9), rgba(30,10,12,0.7));
  border-bottom: 1px solid rgba(60, 25, 28, 0.6);
}
.panel-header {
  position: relative;
  z-index: 1;
  padding: 6px 12px 4px;
  font-size: 8px;
  letter-spacing: 0.3em;
  color: rgba(154, 120, 115, 0.7);
  text-transform: uppercase;
}
.panel-body {
  padding: 28px 14px 14px;
  font-size: 11px;
  line-height: 1.9;
  color: rgba(180, 160, 152, 0.88);
}
.panel-menu { list-style: none; }
.panel-menu li { margin: 2px 0; }
.panel-menu a, .panel-menu li.nav-static {
  display: block;
  padding: 6px 8px;
  border-left: 2px solid transparent;
  letter-spacing: 0.12em;
  font-size: 10px;
  transition: all 0.3s;
}
.panel-menu a::before { content: '▸ '; opacity: 0.3; font-size: 8px; }
.panel-menu a:hover, .panel-menu a.active, .panel-menu li.active a {
  border-left-color: #8a3840;
  background: rgba(60, 20, 24, 0.4);
  color: #c8a0a0;
  text-shadow: 0 0 8px rgba(180, 60, 70, 0.4);
  padding-left: 14px;
}
.panel-left { top: 16%; left: 4%; }
.panel-left .panel-body {
  max-height: min(48vh, 380px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(90, 35, 40, 0.5) transparent;
}
.panel-right { top: 22%; right: 4%; width: min(240px, 38vw); animation-delay: -7s; }
.panel-bottom {
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  width: min(340px, 88vw);
  animation-name: panel-drift-bottom;
}
@keyframes panel-drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-6px) rotate(0.3deg); }
  66% { transform: translateY(4px) rotate(-0.2deg); }
}
@keyframes panel-drift-bottom {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}

.rib {
  position: fixed;
  z-index: 25;
  width: 80px;
  height: 80px;
  opacity: 0.35;
  pointer-events: none;
}
.rib-tl { top: 8%; left: 2%; border-top: 2px solid rgba(80,35,40,0.5); border-left: 2px solid rgba(80,35,40,0.5); }
.rib-tr { top: 8%; right: 2%; border-top: 2px solid rgba(80,35,40,0.5); border-right: 2px solid rgba(80,35,40,0.5); }
.rib-bl { bottom: 8%; left: 2%; border-bottom: 2px solid rgba(80,35,40,0.5); border-left: 2px solid rgba(80,35,40,0.5); }
.rib-br { bottom: 8%; right: 2%; border-bottom: 2px solid rgba(80,35,40,0.5); border-right: 2px solid rgba(80,35,40,0.5); }

.load-zone { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(50, 20, 22, 0.5); }
.load-label { font-size: 8px; letter-spacing: 0.25em; color: rgba(120, 80, 78, 0.6); margin-bottom: 6px; }
.load-bar { height: 4px; background: rgba(20, 8, 8, 0.8); border: 1px solid rgba(60, 25, 28, 0.5); overflow: hidden; }
.load-fill {
  height: 100%;
  background: linear-gradient(90deg, #3a1418, #6a2830, #4a1820);
  box-shadow: 0 0 10px rgba(140, 50, 60, 0.5);
  animation: load-cycle 14s ease-in-out infinite;
}
@keyframes load-cycle {
  0% { width: 12%; opacity: 0.6; }
  40% { width: 67%; opacity: 1; }
  70% { width: 43%; }
  100% { width: 89%; opacity: 0.7; }
}

.dither-band {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  z-index: 45;
  background: repeating-linear-gradient(90deg, rgba(20,8,8,0.9) 0px, rgba(20,8,8,0.9) 2px, rgba(30,12,12,0.9) 2px, rgba(30,12,12,0.9) 4px);
  border-top: 1px solid rgba(60, 25, 28, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: rgba(100, 70, 68, 0.5);
}

/* === SECTOR PAGES === */
.sector-zone {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%);
  z-index: 20;
  width: min(92vw, 720px);
  text-align: center;
}
.sector-frame {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding: 22px 28px 28px;
  text-align: left;
  transform: rotateX(3deg);
  background: linear-gradient(135deg, rgba(30,12,14,0.92), rgba(8,3,3,0.98));
  border: 1px solid rgba(90, 38, 42, 0.7);
  box-shadow: 0 20px 55px rgba(0,0,0,0.8), 0 0 50px rgba(var(--light-r), var(--light-g), var(--light-b), 0.2);
  clip-path: polygon(4% 0, 96% 0, 100% 8%, 100% 92%, 96% 100%, 4% 100%, 0 92%, 0 8%);
  animation: panel-drift 24s ease-in-out infinite;
}
.sector-scroll {
  max-height: min(42vh, 320px);
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
}
.fragment {
  font-size: 10px;
  line-height: 1.85;
  letter-spacing: 0.08em;
  color: rgba(180, 155, 148, 0.82);
  margin: 10px 0;
  padding-left: 10px;
  border-left: 1px solid rgba(80, 35, 40, 0.4);
  animation: fragment-in 1.2s ease-out both;
}
.fragment.corrupt {
  color: rgba(200, 120, 110, 0.75);
  animation: text-unstable 4s infinite, fragment-in 1s ease-out both;
}
@keyframes fragment-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes text-unstable {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.4; transform: skewX(-2deg); }
  95% { opacity: 0.9; letter-spacing: 0.12em; }
}
.hidden-lore {
  font-size: 8px;
  color: rgba(90, 55, 55, 0.35);
  margin-top: 16px;
  cursor: pointer;
  letter-spacing: 0.2em;
}
.hidden-lore:hover, .hidden-lore.revealed { color: rgba(190, 110, 115, 0.85); }
.hidden-lore.revealed::after { content: ' — you were not meant to read this yet'; }

.return-link {
  position: fixed;
  bottom: 56px;
  left: 20px;
  z-index: 46;
  font-size: 9px;
  letter-spacing: 0.28em;
  color: rgba(154, 120, 115, 0.65);
  padding: 8px 12px;
  border: 1px solid rgba(70, 30, 35, 0.5);
  background: rgba(12, 5, 5, 0.85);
  transition: all 0.3s;
}
.return-link:hover {
  color: #e8b0b0;
  border-color: rgba(140, 50, 55, 0.7);
  box-shadow: 0 0 20px rgba(120, 30, 40, 0.3);
}

.audio-toggle {
  position: fixed;
  bottom: 56px;
  right: 20px;
  z-index: 46;
  font-size: 8px;
  letter-spacing: 0.25em;
  padding: 8px 14px;
  background: rgba(15, 6, 6, 0.9);
  border: 1px solid rgba(80, 35, 40, 0.55);
  color: rgba(154, 130, 125, 0.7);
  cursor: pointer;
  font-family: inherit;
  text-transform: uppercase;
  transition: all 0.3s;
}
.audio-toggle:hover, .audio-toggle.active {
  color: #d8a8a8;
  border-color: rgba(160, 55, 60, 0.7);
  box-shadow: 0 0 16px rgba(140, 40, 50, 0.25);
}
.audio-toggle.muted { opacity: 0.45; }

/* Floating drift windows */
.float-window {
  position: fixed;
  z-index: 28;
  width: min(200px, 36vw);
  padding: 10px 12px;
  font-size: 8px;
  letter-spacing: 0.12em;
  line-height: 1.6;
  color: rgba(160, 130, 125, 0.7);
  background: rgba(20, 8, 9, 0.88);
  border: 1px solid rgba(70, 28, 32, 0.6);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  pointer-events: none;
  animation: float-drift 18s ease-in-out infinite;
  opacity: 0.65;
}
@keyframes float-drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(6px, -10px) rotate(0.5deg); }
  75% { transform: translate(-8px, 6px) rotate(-0.4deg); }
}

/* Fake system alert */
.sys-alert {
  position: fixed;
  top: 72px;
  right: 16px;
  z-index: 55;
  max-width: 220px;
  padding: 10px 14px;
  font-size: 8px;
  letter-spacing: 0.15em;
  line-height: 1.5;
  background: rgba(25, 8, 10, 0.95);
  border: 1px solid rgba(120, 40, 48, 0.6);
  color: rgba(210, 140, 140, 0.9);
  box-shadow: 0 0 30px rgba(100, 20, 30, 0.35);
  animation: alert-pop 0.4s ease-out, alert-fade 4s ease-in 3s forwards;
  pointer-events: none;
}
@keyframes alert-pop {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes alert-fade {
  to { opacity: 0; visibility: hidden; }
}

.cursor-trail {
  position: fixed;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(var(--light-r), var(--light-g), var(--light-b), 0.6);
  pointer-events: none;
  z-index: 101;
  transform: translate(-50%, -50%);
  animation: trail-fade 0.8s ease-out forwards;
}
@keyframes trail-fade {
  to { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060303;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: rgba(154, 120, 115, 0.6);
  transition: opacity 0.8s ease;
}
.page-loader.hidden { opacity: 0; pointer-events: none; }

/* === SECTOR THEMES === */
body[data-page="thoughts"] {
  --light-r: 140; --light-g: 100; --light-b: 130;
  --accent: #9a7a9a;
  --panel-bg: rgba(28, 18, 28, 0.94);
}
body[data-page="dreams"] {
  --light-r: 80; --light-g: 70; --light-b: 140;
  --accent: #6a68a8;
  --panel-bg: rgba(16, 14, 32, 0.94);
}
body[data-page="dreams"] .depth-mist {
  background: linear-gradient(180deg, transparent 30%, rgba(12, 10, 28, 0.5) 100%);
}
body[data-page="fears"] {
  --light-r: 60; --light-g: 40; --light-b: 50;
  --accent: #5a3038;
}
body[data-page="fears"] .distort { opacity: 0.07; animation-duration: 0.08s; }
body[data-page="memories"] {
  --light-r: 120; --light-g: 90; --light-b: 60;
  --accent: #8a7050;
  --panel-bg: rgba(32, 22, 14, 0.94);
}
body[data-page="corruption"] {
  --light-r: 70; --light-g: 90; --light-b: 55;
  --accent: #4a6040;
  --void: #060806;
}
body[data-page="corruption"] .crt::after { animation-duration: 3s; }
body[data-page="corruption"] .fragment.corrupt { color: rgba(140, 170, 110, 0.8); }
body[data-page="system"] {
  --light-r: 130; --light-g: 125; --light-b: 120;
  --accent: #8a8880;
  --panel-bg: rgba(22, 20, 18, 0.96);
}
body[data-page="system"] .wall { filter: none; opacity: 0.85; }

@media (max-width: 700px) {
  .wall { width: 12%; opacity: 0.7; }
  .panel-left, .panel-right { width: 46vw; top: auto; bottom: 72px; }
  .panel-left { left: 2%; }
  .panel-right { right: 2%; }
  .panel-bottom { bottom: 8%; }
  .logo-zone, .sector-zone { transform: translate(-50%, -52%); }
  h1.logo, h1.sector-logo { font-size: clamp(0.95rem, 4.2vw, 1.5rem); letter-spacing: 0.1em; }
  .status-bar { font-size: 7px; padding: 8px 10px; flex-wrap: wrap; gap: 4px; }
  .folder-flash { top: 56px; }
  .return-link, .audio-toggle { bottom: 52px; font-size: 7px; }
  .float-window { display: none; }
}
