/* ---------------------------------------- */
/* BLACK CHANNELS — THEME                   */
/* ---------------------------------------- */
:root {
  --bg1: #05030a;
  --bg2: #020008;
  --muted: #c6bedf;
  --hot: #ff4e7a;
  --teal: #26f7ff;
  --card: rgba(10, 6, 24, 0.92);
  --accent-glow: 0 0 40px rgba(150, 45, 255, 0.35);
  --max-width: 1100px;
  --border-soft: 1px solid rgba(255, 255, 255, 0.06);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--muted);
  background: radial-gradient(circle at top, #12081f, #03030a 55%, #010005 100%);
  -webkit-font-smoothing: antialiased;
}

/* noise overlay */
.noise-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    url("../assets/noise.png"),
    url("../assets/scanline.png");
  background-repeat: repeat, repeat;
  mix-blend-mode: soft-light;
  opacity: 0.1;
  z-index: 0;
}

/* ---------------------------------------- */
/* HEADER / NAV                             */
/* ---------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 18px;
  background: linear-gradient(to bottom, rgba(4, 2, 12, 0.98), rgba(4, 2, 12, 0.6), transparent);
  backdrop-filter: blur(10px);
}

.logo {
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 14px;
}

.logo-sub {
  font-weight: 400;
  font-size: 11px;
  opacity: 0.7;
}

.accent {
  color: var(--hot);
  text-shadow: 0 0 10px rgba(255, 78, 122, 0.35);
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 12px;
  font-size: 13px;
  opacity: 0.8;
}

.nav a.active {
  color: var(--hot);
}

.nav a:hover {
  opacity: 1;
}

/* ---------------------------------------- */
/* LAYOUT                                   */
/* ---------------------------------------- */
.wrap {
  position: relative;
  z-index: 5;
  max-width: var(--max-width);
  margin: 12px auto 40px;
  padding: 0 14px 28px;
}

/* ---------------------------------------- */
/* HERO                                     */
/* ---------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.5fr);
  gap: 16px;
  margin-bottom: 20px;
}

.hero-main {
  padding: 16px 18px;
  border-radius: 14px;
  background: radial-gradient(circle at top left, rgba(255, 78, 122, 0.16), transparent 60%),
              radial-gradient(circle at bottom right, rgba(38, 247, 255, 0.18), transparent 60%),
              rgba(7, 4, 20, 0.95);
  border: var(--border-soft);
  box-shadow: var(--accent-glow);
}

.hero-main h1 {
  margin: 0 0 6px 0;
  font-size: 20px;
}

.hero-main h1 span {
  color: var(--teal);
}

.hero-text {
  font-size: 13px;
  margin: 0 0 10px 0;
}

.pulse {
  color: var(--hot);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { text-shadow: 0 0 0 rgba(255, 78, 122, 0.0); }
  50% { text-shadow: 0 0 16px rgba(255, 78, 122, 0.7); }
}

.hero-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
}

.stat {
  flex: 1;
  min-width: 120px;
  border-radius: 10px;
  padding: 8px 10px;
  background: linear-gradient(to bottom, rgba(250, 250, 255, 0.02), rgba(5, 2, 15, 0.9));
  border: var(--border-soft);
}

.stat .label {
  opacity: 0.7;
  margin-bottom: 4px;
}

.stat .value {
  font-weight: 700;
}

.value-hot {
  color: var(--hot);
}

/* hero feed */
.hero-feed {
  padding: 12px;
  border-radius: 14px;
  background: rgba(3, 1, 10, 0.96);
  border: var(--border-soft);
}

.feed-label {
  font-size: 11px;
  opacity: 0.7;
  margin-bottom: 6px;
}

.feed-window {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  max-height: 180px;
  overflow: hidden;
  padding: 8px 10px;
  border-radius: 10px;
  background: radial-gradient(circle at top, rgba(12, 12, 32, 0.9), rgba(2, 0, 9, 0.95));
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.7);
}

.feed-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.feed-line span {
  color: #fefefe;
}

/* ---------------------------------------- */
/* PANELS                                   */
/* ---------------------------------------- */
.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.panel {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--card);
  border: var(--border-soft);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.panel h2 {
  margin-top: 0;
  font-size: 16px;
}

.muted {
  opacity: 0.78;
  font-size: 13px;
}

.log-list,
.flag-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  font-size: 12px;
}

.log-list li,
.flag-list li {
  margin-bottom: 8px;
}

.tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-right: 6px;
}

.tag-red {
  border-color: rgba(255, 78, 122, 0.8);
  color: var(--hot);
}

.tag-rix {
  border-color: rgba(144, 101, 255, 0.9);
  color: #a78bff;
}

/* ---------------------------------------- */
/* OVERRIDE FORM                            */
/* ---------------------------------------- */
.override {
  padding: 14px 16px 16px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: radial-gradient(circle at left, rgba(255, 78, 122, 0.15), transparent 65%),
              radial-gradient(circle at right, rgba(38, 247, 255, 0.12), transparent 65%),
              rgba(6, 3, 18, 0.96);
  border: var(--border-soft);
}

.override h2 {
  margin-top: 0;
  font-size: 15px;
}

.soft {
  opacity: 0.7;
}

.override-form {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.override-form label {
  flex: 0 0 auto;
}

.override-form input {
  flex: 1 1 160px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(3, 2, 10, 0.9);
  color: var(--muted);
}

.override-form button {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 11px;
  background: linear-gradient(90deg, var(--hot), var(--teal));
  color: #05030a;
}

.status-text {
  flex: 0 0 auto;
  font-size: 11px;
  opacity: 0.8;
}

.status-ok {
  color: var(--teal);
}

.status-bad {
  color: var(--hot);
}

/* ---------------------------------------- */
/* RIX-ON BLOCKS                            */
/* ---------------------------------------- */
.rixon-block {
  margin-bottom: 24px;
  padding: 16px 16px 18px;
  border-radius: 14px;
  background: radial-gradient(circle at top, rgba(120, 78, 255, 0.15), transparent 70%),
              rgba(6, 4, 20, 0.98);
  border: var(--border-soft);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
}

.rixon-block h2 {
  margin-top: 0;
  font-size: 16px;
}

/* hidden by default */
.rixon-only {
  display: none;
}

/* shown when unlocked */
body.rixon-unlocked .rixon-only {
  display: block;
}

/* ---------------------------------------- */
/* AURELIUM HEADER                          */
/* ---------------------------------------- */
.aurelium-header {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  border: var(--border-soft);
  background: #0b0915;
}

.aurelium-header img {
  width: 100%;
  height: auto;
  display: block;
  filter: blur(1px) saturate(110%);
  transform: scale(1.02);
  opacity: 0.9;
}

.aurelium-caption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  right: 12px;
  font-size: 11px;
  background: linear-gradient(to top, rgba(3, 0, 10, 0.9), transparent);
  padding-top: 26px;
}

.glitch-line {
  display: inline-block;
  animation: glitch 3s infinite;
}

@keyframes glitch {
  0%, 100% { text-shadow: 0 0 0 rgba(255, 78, 122, 0); }
  20% { text-shadow: -1px 0 rgba(255, 78, 122, 0.8); }
  25% { text-shadow: 1px 0 rgba(38, 247, 255, 0.7); }
  50% { text-shadow: 0 0 0 rgba(255, 78, 122, 0); }
}

/* ---------------------------------------- */
.aurelium-text p {
  font-size: 13px;
  margin: 8px 0;
}

/* ---------------------------------------- */
/* AUR-ENT-09 RUMOR BLOCK                   */
/* ---------------------------------------- */
.rumor-block {
  margin-top: 14px;
  padding: 10px 12px 12px;
  border-radius: 10px;
  border-left: 2px solid rgba(255, 255, 255, 0.16);
  background: rgba(4, 2, 15, 0.9);
  font-size: 13px;
  position: relative;
  overflow: hidden;
}

.rumor-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.rumor-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 78, 122, 0.8);
  color: var(--hot);
}

.rumor-title {
  font-size: 13px;
  font-weight: 700;
}

.rumor-block .small {
  margin-top: 0;
}

.rumor-block .quote {
  font-style: italic;
  font-size: 12px;
  border-left: 2px solid rgba(255, 255, 255, 0.12);
  padding-left: 8px;
  margin: 6px 0 8px;
}

.rumor-notes {
  font-size: 11px;
  margin: 4px 0 0;
  padding-left: 16px;
}

/* active glitch when scrolled into view */
.rumor-block.rumor-active {
  border-left-color: var(--hot);
  box-shadow: 0 0 25px rgba(255, 78, 122, 0.4);
}

.rumor-block.rumor-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--hot), transparent);
  animation: rumorPulse 2.2s infinite;
}

@keyframes rumorPulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/* ---------------------------------------- */
/* ARTIFACT / PAINTING                      */
/* ---------------------------------------- */
.artifact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr);
  gap: 14px;
}

.artifact-image img {
  width: 100%;
  border-radius: 12px;
  display: block;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.inline-glitch {
  animation: glitch 2.8s infinite;
}

/* ---------------------------------------- */
/* VISUAL RECORD                            */
/* ---------------------------------------- */
.visual-record {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr);
  gap: 14px;
}

.record-image img {
  width: 100%;
  border-radius: 12px;
  display: block;
  filter: blur(0.4px);
  transform: scale(1.02);
}

.record-meta {
  font-size: 13px;
}

.small {
  font-size: 11px;
}

.meta-list {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 12px;
}

/* ---------------------------------------- */
/* SIGHTINGS GALLERY                        */
/* ---------------------------------------- */
.sightings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.sighting-card {
  position: relative;
  background: rgba(5, 3, 15, 0.98);
  border-radius: 12px;
  overflow: hidden;
  border: var(--border-soft);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.sighting-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  filter: blur(0.6px) saturate(115%);
}

.sighting-body {
  padding: 8px 9px 10px;
  font-size: 11px;
}

.sighting-title {
  font-weight: 600;
  margin-bottom: 3px;
}

.sighting-meta {
  opacity: 0.7;
}

.tier {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-right: 5px;
}

.sighting-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 78, 122, 0.7);
}

/* ---------------------------------------- */
/* FOOTER                                   */
/* ---------------------------------------- */
.site-footer {
  padding: 10px 18px 16px;
  font-size: 11px;
  text-align: center;
  opacity: 0.7;
}

/* tiny text */
.tiny {
  font-size: 10px;
}

/* ---------------------------------------- */
/* RESPONSIVE                               */
/* ---------------------------------------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .panel-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .artifact-grid,
  .visual-record {
    grid-template-columns: minmax(0, 1fr);
  }
}