:root {
  --bg: #07080c;
  --card: #12141b;
  --card-2: #181b24;
  --line: #2c3140;
  --red: #ff2d2d;
  --red-2: #ff5a5a;
  --text: #f4f5f7;
  --muted: #9aa1b2;
  --dim: #6d7486;
  --ok: #d7f5d8;
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); height: 100%; }
body { min-height: 100vh; height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
a { color: var(--red-2); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; color: inherit; }
img { max-width: 100%; }

.top {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 22px 8px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 180px; color: inherit; text-decoration: none; }
.brand:hover { text-decoration: none; }
.mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(160deg, #ff4d4d, #b40c0c);
  display: grid; place-items: center; font-weight: 700;
}
.brand b { display: block; letter-spacing: .02em; }
.brand small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.search-wrap { flex: 1; position: relative; max-width: 720px; margin: 0 auto; }
.search-wrap input {
  width: 100%; background: #0c0e14; border: 1px solid #2a3142; border-radius: 999px;
  padding: 10px 16px 10px 40px; outline: none;
}
.search-wrap input:focus { border-color: var(--red); }
.search-wrap .mag { position: absolute; left: 14px; top: 10px; color: var(--dim); }
.kbd { position: absolute; right: 12px; top: 8px; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; color: var(--dim); font-size: 12px; }
.nav { display: flex; gap: 8px; }
.nav a, .back {
  border: 1px solid var(--line); background: #10131a; color: var(--text);
  border-radius: 999px; padding: 8px 12px; text-decoration: none; cursor: pointer;
}
.nav a[aria-current="page"], .back:hover, .nav a:hover { border-color: var(--red); text-decoration: none; }

.theme-row {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px; padding: 4px 22px 8px;
}
.theme-card {
  text-align: left; cursor: pointer; min-width: 0;
  background: var(--card); border: 1px solid #242833; border-radius: 14px;
  padding: 10px 12px 8px;
}
.theme-card.expanded { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 0 28px rgba(255,45,45,.18); }
.theme-top { display: flex; justify-content: space-between; align-items: center; color: var(--red); }
.pill { font-size: 10px; letter-spacing: .12em; border: 1px solid var(--red); border-radius: 999px; padding: 2px 6px; }
.theme-kicker { margin-top: 8px; font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.theme-blurb {
  color: var(--muted); font-size: 12px; margin-top: 4px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.theme-foot { margin-top: 8px; color: var(--dim); font-size: 11px; letter-spacing: .08em; }

.stage-wrap { position: relative; flex: 1; min-height: 0; margin: 0 12px 8px; }
#stage { position: absolute; inset: 0; }
.ring {
  position: absolute; border-radius: 50%; border: 1.5px solid rgba(255,45,45,.55);
  box-shadow: 0 0 80px rgba(255,45,45,.08) inset, 0 0 40px rgba(255,45,45,.05);
  pointer-events: none;
}
.ring.dim { border-style: dashed; border-color: rgba(255,45,45,.28); }
.node {
  position: absolute; transform: translate(-50%, -50%);
  width: var(--d, 104px); height: var(--d, 104px);
  background: none; border: 0; cursor: pointer; text-align: center; padding: 0;
}
.node:disabled { cursor: default; }
.node .bubble {
  width: 100%; height: 100%; border-radius: 50%;
  border: 1.5px solid rgba(255,70,70,.75);
  background: radial-gradient(circle at 40% 35%, #2a1216, #10080c 72%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; padding: 10px; overflow: hidden;
  box-shadow: 0 0 18px rgba(255,45,45,.22);
  color: var(--text);
}
.node.hub { width: calc(var(--d, 104px) * 1.28); height: calc(var(--d, 104px) * 1.28); }
.node.hub .bubble { border-width: 2px; }
.node.small { --d: 72px; }
.node.small .ttl { -webkit-line-clamp: 1; font-size: 9px; letter-spacing: .04em; }
.node .bubble svg { color: var(--red); flex: 0 0 auto; width: 16px; height: 16px; }
.node.hub .bubble svg { width: 20px; height: 20px; }
.node .ttl {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 11px; font-weight: 700; letter-spacing: .02em; line-height: 1.15;
  max-width: 92%;
}
.node .sub {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.2; max-width: 100%;
}
.node:hover .bubble { border-color: #fff; }
.node:focus-visible { outline: 2px solid var(--red); border-radius: 50%; }

.legend, .tip, .focus {
  position: absolute; z-index: 2; background: rgba(10,12,16,.88);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.legend { left: 12px; bottom: 58px; width: 230px; font-size: 12px; color: var(--muted); }
.legend b { color: var(--text); display: block; margin-bottom: 8px; letter-spacing: .08em; font-size: 11px; }
.legend div { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--red); display: inline-block; }
.swatch.dot { border-style: dashed; }
.tip { right: 12px; bottom: 58px; width: 280px; color: var(--muted); font-size: 13px; }
.tip b { color: var(--text); letter-spacing: .08em; font-size: 11px; }
.pathbar {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  color: var(--muted); font-size: 13px; display: flex; gap: 8px; align-items: center; white-space: nowrap;
}
.pathbar .here { color: var(--red-2); }
.focus { left: 12px; top: 12px; width: 280px; }
.focus h3 { margin: 0 0 6px; font-size: 16px; }
.focus p { margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.focus .row { display: flex; flex-wrap: wrap; gap: 8px; }

.page { max-width: 1080px; margin: 0 auto; padding: 8px 22px 64px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--card); border: 1px solid #2a2e3a; border-radius: 14px;
  padding: 14px; min-height: 180px; color: inherit; text-decoration: none;
}
.card:hover { border-color: var(--red); text-decoration: none; }
.card h2 { margin: 0; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; flex: 1; }
.card .meta { color: var(--dim); font-size: 12px; letter-spacing: .04em; }
.thumb, .card .shot {
  width: 72px; height: 52px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line); background: #000;
}
button.thumb { padding: 0; background: none; cursor: zoom-in; border: 0; }
button.thumb img { width: 72px; height: 52px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }

.concept { max-width: 820px; margin: 0 auto; padding: 10px 22px 80px; }
.kicker { color: var(--red); letter-spacing: .14em; font-size: 12px; font-weight: 700; }
.concept h1 { margin: 6px 0 8px; font-size: 34px; line-height: 1.15; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.links a, .chip {
  border: 1px solid var(--red); color: var(--text); border-radius: 999px;
  padding: 6px 10px; font-size: 13px; background: #1a0c10;
}
.stages { display: flex; gap: 8px; margin: 12px 0; }
.stages button {
  background: #141820; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer;
}
.stages button[aria-selected="true"] { border-color: var(--red); background: #2a1014; }
.panel { background: var(--card); border: 1px solid #2a2e3a; border-radius: 14px; padding: 16px 18px; line-height: 1.5; }
.panel h3 { margin: 16px 0 6px; font-size: 16px; }
.panel p { margin: 8px 0; }
.panel ul, .panel ol { margin: 8px 0; padding-left: 18px; }
.fields { display: grid; gap: 10px; margin-top: 14px; }
.field { border-top: 1px solid #242833; padding-top: 8px; }
.field .lab { color: var(--red); font-size: 11px; letter-spacing: .14em; font-weight: 700; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 14px; }
.filters button[aria-pressed="true"] { border-color: var(--red); }
.filters button { background: #141820; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.hits { display: grid; gap: 8px; }
.hit { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.hit a.title { color: var(--text); font-weight: 700; }
.drop {
  position: absolute; top: 46px; left: 0; right: 0; z-index: 5;
  background: #10131a; border: 1px solid var(--line); border-radius: 12px;
  max-height: 360px; overflow: auto; display: none;
}
.drop.open { display: block; }
.drop a { display: block; padding: 8px 12px; color: var(--text); border-bottom: 1px solid #1c2130; }
.drop a small { display: block; color: var(--muted); font-weight: 400; }
dialog.lightbox { border: 1px solid var(--line); background: #0c0e14; color: var(--text); border-radius: 12px; max-width: min(920px, 92vw); }
dialog.lightbox img { max-height: 70vh; display: block; margin: 0 auto; }
dialog.lightbox p { color: var(--muted); font-size: 14px; }
dialog::backdrop { background: rgba(0,0,0,.72); }
.ask textarea, .ask select, .ask input[type="range"] { width: 100%; background: #0c0e14; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.ask label { display: block; color: var(--muted); font-size: 13px; margin: 10px 0 4px; }
.note { color: var(--muted); font-size: 13px; }
.uncertain { border-left: 3px solid #e0b15a; padding-left: 8px; }
@media (max-width: 1100px) {
  .theme-row { display: flex; overflow-x: auto; }
  .theme-card { flex: 1 0 180px; }
}
@media (max-width: 800px) {
  body { height: auto; overflow: auto; }
  .stage-wrap { height: auto; min-height: 760px; flex: none; }
  .legend, .tip, .focus { position: static; width: auto; margin: 8px 12px; }
  .top { flex-wrap: wrap; }
}
