:root {
  --bg: #110c0a;
  --bg2: #1a1310;
  --ink: #f4eadc;
  --muted: #b7a898;
  --cheese: #ffc83d;
  --pink: #ff3d6e;
  --mold: #b6ff4a;
  --line: rgba(255, 200, 61, 0.22);
  --paper: #f6efe2;
  --paper-ink: #1c140f;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --display: "Bricolage Grotesque", "Arial Black", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1000px 420px at 10% -10%, rgba(255, 61, 110, 0.16), transparent 50%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 200, 61, 0.12), transparent 45%),
    var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
}
a { color: var(--cheese); text-underline-offset: 3px; }
img { max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
nav.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; font-size: 22px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
nav.top .links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
nav.top .links a { color: var(--muted); text-decoration: none; }
nav.top .links a:hover { color: var(--cheese); }
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: stretch; padding: 12px 0 28px; }
h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.045em;
  font-size: clamp(40px, 6vw, 74px); line-height: 0.92; margin: 8px 0 14px;
}
.eyebrow { color: var(--pink); letter-spacing: 0.16em; font-size: 12px; text-transform: uppercase; }
.dek { color: var(--muted); font-size: 16px; max-width: 46ch; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cheese); color: #1a1208; text-decoration: none;
  font-family: var(--display); font-weight: 800; letter-spacing: -0.03em;
  padding: 12px 16px; border-radius: 999px; border: 0;
}
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn:hover { transform: translateY(-1px); }
.mascot-float { width: min(220px, 46vw); margin-top: 18px; filter: drop-shadow(0 12px 0 rgba(0,0,0,0.25)); }
.desk {
  background: #070605; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden; min-height: 420px;
  display: flex; flex-direction: column;
}
.desk head, .desk-bar {
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
  padding: 10px 12px; background: #16110e; border-bottom: 1px solid var(--line);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cheese);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mold); box-shadow: 0 0 10px var(--mold); display: inline-block; margin-right: 6px; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.log { padding: 12px 14px 16px; flex: 1; }
.log p { margin: 0 0 8px; font-size: 13px; }
.log .ts { color: #6d6258; margin-right: 8px; }
.log .k { color: var(--pink); margin-right: 8px; }
.log .ok { color: var(--mold); }
.log .src { color: var(--cheese); }
.cursor { display: inline-block; width: 8px; height: 14px; background: var(--mold); vertical-align: -2px; animation: pulse 1s infinite; }
.desk-foot { padding: 10px 12px 12px; color: #8d8176; font-size: 11px; border-top: 1px solid rgba(255,255,255,0.05); }
.marquee {
  border-block: 1px solid var(--line); overflow: hidden; background: #160f0c;
}
.marquee-track { display: flex; gap: 28px; padding: 10px 0; white-space: nowrap; animation: slide 28s linear infinite; font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.section { padding: 28px 0 10px; }
h2 { font-family: var(--display); letter-spacing: -0.04em; font-size: clamp(28px, 4vw, 42px); margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 16px; max-width: 68ch; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.card {
  display: block; text-decoration: none; color: inherit;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 12px;
}
.card:hover { border-color: var(--cheese); }
.card .id { color: var(--pink); font-size: 12px; letter-spacing: 0.14em; }
.card h3 { font-family: var(--display); letter-spacing: -0.04em; margin: 4px 0 6px; font-size: 22px; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.tag { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; color: var(--cheese); }
.tag.pink { color: var(--pink); }
.tag.mold { color: var(--mold); }
.scorebig { font-family: var(--display); font-size: 28px; letter-spacing: -0.04em; }
.file-hero { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 18px; padding-bottom: 20px; }
.paper {
  background: var(--paper); color: var(--paper-ink); border-radius: 18px; padding: 18px 18px 8px;
}
.paper h2, .paper h3 { color: var(--paper-ink); }
.paper a { color: #8a3b00; }
.ev { border-top: 1px dashed #d9cbb6; padding: 12px 0; }
.ev .label { font-weight: 700; letter-spacing: 0.12em; font-size: 11px; }
.FACT { color: #1d6b2f; }
.EVIDENCE { color: #8a3b00; }
.CLAIM { color: #8a4b00; }
.HYPOTHESIS { color: #7a2f6e; }
.UNVERIFIED { color: #8d1d3d; }
blockquote { margin: 8px 0; padding-left: 10px; border-left: 3px solid #e0b15a; color: #3a2c22; }
.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 92px 1fr 24px; gap: 6px; align-items: center; font-size: 11px; color: var(--muted); }
.bar span.track { height: 8px; background: #2a211c; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--cheese)); }
.side {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 14px;
  height: fit-content; position: sticky; top: 12px;
}
.warn { background: #2a1218; border: 1px solid rgba(255,61,110,.4); color: #ffd0da; border-radius: 12px; padding: 10px 12px; }
.interp { background: #241c14; border-left: 4px solid var(--cheese); padding: 12px 14px; border-radius: 0 12px 12px 0; margin: 12px 0 24px; }
form.feed { display: grid; gap: 10px; background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: grid; gap: 6px; }
input, select, textarea {
  background: #0c0908; color: var(--ink); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font: inherit;
}
textarea { min-height: 90px; resize: vertical; }
.speech {
  margin-top: 14px; border-radius: 18px; padding: 16px; background: #070605; border: 1px solid var(--line);
}
.speech.found { border-color: var(--mold); }
.speech.rejected { border-color: var(--pink); }
.speech h3 { font-family: var(--display); margin: 0 0 6px; letter-spacing: -0.04em; font-size: 32px; }
.graph { background: #070605; border: 1px solid var(--line); border-radius: 18px; padding: 8px; overflow: auto; }
.graph svg { width: 100%; height: auto; min-width: 640px; }
footer { padding: 28px 0 40px; color: var(--muted); font-size: 12px; }
.banner { width: 100%; border-radius: 18px; border: 1px solid var(--line); margin: 8px 0 18px; }
@media (max-width: 860px) {
  .hero, .file-hero, .grid { grid-template-columns: 1fr; }
  .side { position: static; }
}

.sniff-block { padding-top: 8px; }
.sniff-form { display: flex; gap: 10px; flex-wrap: wrap; }
.sniff-form input { flex: 1 1 280px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.chips button {
  background: transparent; color: var(--cheese); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 10px; font: inherit; font-size: 12px; cursor: pointer;
}
.chips button:hover { border-color: var(--cheese); }
.sniff-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; }
.sniff-head h3 { margin: 0; }
ul.evidence { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
ul.evidence li {
  background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px;
}
ul.evidence .label { font-weight: 700; letter-spacing: 0.12em; font-size: 11px; margin-right: 6px; }
button.btn:disabled { opacity: 0.6; transform: none; }

nav.top .links a.nav-poke { color: var(--cheese); }

.poke-jump {
  display: flex; gap: 0; margin-top: 18px; max-width: 560px;
  border: 1px solid var(--cheese); background: #050403;
}
.poke-jump label {
  display: flex; align-items: center; gap: 8px; flex: 1;
  text-transform: none; letter-spacing: 0; color: var(--cheese); padding: 0 12px;
}
.poke-jump input {
  flex: 1; background: transparent; border: 0; border-radius: 0; padding: 12px 0; color: var(--ink);
}
.btn.hard {
  border-radius: 0; background: var(--cheese); color: #110c0a;
  font-family: var(--mono); letter-spacing: 0.14em; font-weight: 700;
  padding: 12px 16px;
}
.poke-aside { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin: 10px 0 0; }
.poke-preview {
  display: grid; gap: 8px; text-decoration: none; color: #d7f5c8;
  background: #050605; border: 1px solid #243024; padding: 0 0 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.poke-preview:hover { border-color: var(--mold); }
.poke-bar, .ghost-bar {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 8px 12px; border-bottom: 1px solid #243024;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #8fbc80;
}
.poke-line { padding: 0 12px; }
.poke-line.dim, .poke-preview .dim { color: #6d7f66; }
.poke-go { padding: 0 12px; color: var(--cheese); letter-spacing: 0.12em; }

body.term {
  background: #000;
  color: #e7ffe0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
body.term h1, body.term h2, body.term .brand {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
}
body.term h1 { letter-spacing: -0.04em; font-size: clamp(34px, 5.4vw, 64px); }
body.term .brand { letter-spacing: 0.12em; font-size: 14px; font-weight: 700; }
body.term a { color: #b6ff4a; }
body.term .eyebrow { color: #ff3d6e; }
body.term .dek { color: #9bb396; }
body.term nav.top .links a { color: #6d7f66; }
body.term nav.top .links a.nav-poke,
body.term nav.top .links a[aria-current="page"] { color: #b6ff4a; }
body.term footer { color: #6d7f66; }

.term-stage { padding: 8px 0 0; }
.term-form {
  display: flex; align-items: stretch;
  border: 1px solid #b6ff4a; background: #050605;
}
.term-form label {
  display: flex; align-items: center; gap: 10px; flex: 1;
  padding: 0 12px; text-transform: none; letter-spacing: 0; color: #b6ff4a;
}
.term-form .prompt { color: #b6ff4a; }
body.term .term-form input {
  flex: 1; background: transparent; border: 0; border-radius: 0;
  color: #e7ffe0; padding: 14px 0; font: inherit; font-size: 16px;
}
body.term .term-form input:focus { outline: none; }
button.term-go {
  background: #b6ff4a; color: #000; border: 0; padding: 0 18px;
  font: inherit; font-weight: 700; letter-spacing: 0.16em; cursor: pointer;
}
button.term-go:disabled { opacity: 0.55; cursor: progress; }
body.term .chips { margin-top: 12px; }
body.term .chips button {
  border-radius: 0; color: #b6ff4a; border-color: #243024; background: #050605;
  font-family: inherit; letter-spacing: 0.04em;
}
body.term .chips button:hover { border-color: #b6ff4a; color: #e7ffe0; }

.ghost {
  margin-top: 16px; background: #050605; border: 1px solid #243024; color: #d7f5c8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  min-height: 220px;
}
.ghost.found { border-color: #b6ff4a; box-shadow: 0 0 0 1px rgba(182,255,74,0.25), 0 0 32px rgba(182,255,74,0.08); }
.ghost.rejected { border-color: #ff3d6e; box-shadow: 0 0 0 1px rgba(255,61,110,0.25), 0 0 32px rgba(255,61,110,0.08); }
.ghost.live { border-color: #ffc83d; }
.ghost .stamp { color: #8fbc80; }
.ghost.found .stamp { color: #b6ff4a; }
.ghost.rejected .stamp { color: #ff3d6e; }
.ghost.live .stamp { color: #ffc83d; }
.ghost-score { display: flex; align-items: baseline; gap: 6px; padding: 14px 14px 0; }
.ghost-score b { font-size: 64px; line-height: 0.9; letter-spacing: -0.06em; color: #e7ffe0; }
.ghost-score small { color: #6d7f66; letter-spacing: 0.08em; }
.ghost-phrase {
  margin: 8px 14px 0; font-size: clamp(22px, 3vw, 32px); letter-spacing: -0.03em; color: #e7ffe0;
}
.ghost.found .ghost-phrase { color: #b6ff4a; }
.ghost.rejected .ghost-phrase { color: #ff8aa8; }
.ghost-status { margin: 4px 14px 0; color: #ffc83d; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }
.ghost-log {
  margin: 8px 14px 16px; white-space: pre-wrap; color: #cfe8c4; font: inherit; line-height: 1.6;
}
ol.ghost-ev { list-style: none; margin: 12px 14px; padding: 0; display: grid; gap: 8px; }
ol.ghost-ev li {
  display: grid; grid-template-columns: 28px 1fr; gap: 8px;
  border-top: 1px solid #1c261c; padding-top: 8px; color: #d7f5c8;
}
ol.ghost-ev li span:first-child { color: #6d7f66; }
ol.ghost-ev b { color: #ffc83d; font-weight: 700; letter-spacing: 0.08em; font-size: 11px; }
.ghost-meta, .ghost-reason { margin: 0 14px 12px; color: #6d7f66; font-size: 12px; }
.ghost-reason { color: #9bb396; }
