:root {
  --obsidian: #050505;
  --raised: #12100e;
  --paper: #F2EBE3;
  --muted: #8A8278;
  --brass: #C9A46A;
  --brassHot: #E6C27A;
  --signal: #3DE6C8;
  --line: rgba(242, 235, 227, 0.10);
  --line-gold: rgba(201, 164, 106, 0.35);
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-ui: "DM Sans", system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--obsidian); color: var(--paper); }
body {
  font-family: var(--font-ui);
  min-height: 100dvh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
.atmosphere {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 60% 45% at 18% 12%, rgba(201, 164, 106, 0.09), transparent 55%),
    radial-gradient(ellipse 40% 35% at 88% 70%, rgba(61, 230, 200, 0.04), transparent 50%),
    var(--obsidian);
}
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.95rem clamp(1.25rem, 4vw, 2.75rem);
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--font-display); font-size: 1.2rem; color: var(--paper); text-decoration: none;
  display: inline-flex; align-items: baseline; gap: 0.35rem;
}
.wordmark span { color: var(--brass); font-style: italic; }
.nav { display: flex; flex-wrap: wrap; gap: 0.85rem 1.1rem; align-items: center; }
.nav a {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em;
  color: var(--muted); text-decoration: none;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--brassHot); border-bottom-color: var(--line-gold); }
main.doc {
  position: relative; z-index: 2;
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.25rem, 4vw, 2rem) 4rem;
}
main.doc.wide { max-width: 58rem; }
.eyebrow {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 0.75rem;
}
h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 2.85rem); line-height: 1.1;
  margin: 0 0 0.5rem;
}
.sub { color: var(--muted); font-size: 1.05rem; margin: 0 0 2rem; }
.entity {
  background: var(--raised);
  border: 1px solid var(--line-gold);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  margin: 0 0 2.25rem;
}
.entity .label {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 0.45rem;
}
.entity p { margin: 0; font-size: 0.95rem; }
.entity a, main.doc a { color: var(--brassHot); text-decoration: none; }
.entity a:hover, main.doc a:hover { text-decoration: underline; }
section.block {
  margin: 0 0 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}
h2, .q3h {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.35rem; margin: 2rem 0 0.65rem; color: var(--paper);
}
p, li { color: var(--muted); font-size: 0.95rem; }
p { margin: 0 0 0.65rem; }
ul { margin: 0.35rem 0 0; padding-left: 1.15rem; }
li { margin: 0.35rem 0; }
strong { color: var(--paper); font-weight: 600; }
.effective { margin-top: 2rem; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; }
footer {
  position: relative; z-index: 2;
  text-align: center; padding: 1.5rem 1rem 2.5rem;
  font-size: 0.75rem; color: var(--muted); border-top: 1px solid var(--line);
}
footer a { color: var(--brass); text-decoration: none; }
footer a:hover { color: var(--brassHot); }
.tally {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem; margin: 0 0 1.75rem;
}
.tally div {
  border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1rem;
  background: rgba(18,16,14,.55);
}
.tally strong {
  display: block; font-family: var(--font-display); font-size: 1.45rem; color: var(--brassHot); margin-bottom: 0.25rem;
}
.tally span { font-size: 0.78rem; color: var(--muted); }
.qs {
  border-left: 2px solid var(--brass); padding: 0.2rem 0 0.2rem 1rem;
  margin: 0 0 1.75rem; color: var(--paper);
}
.poll-grid { display: grid; gap: 1rem; }
.poll-card {
  background: rgba(18,16,14,.55);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
}
.poll-card h2 { margin: 0 0 0.7rem; font-size: 1.15rem; }
.poll-card ol { margin: 0 0 0.8rem; padding-left: 1.2rem; }
.poll-card .fu { border-top: 1px dashed var(--line); padding-top: 0.7rem; }
.poll-card .label {
  font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); margin-bottom: 0.3rem;
}
.thanks-mark {
  font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1.05; margin: 0 0 1rem;
}
.btn {
  appearance: none; border: 0; border-radius: 999px;
  background: linear-gradient(180deg, var(--brassHot), var(--brass));
  color: #1a140f; font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.4rem; cursor: pointer; font-family: inherit;
  text-decoration: none; display: inline-block;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media (max-width: 640px) {
  .topbar { padding: 0.85rem 1rem; }
}

.btn.ghost {
  background: transparent; color: var(--paper);
  border: 1px solid var(--line-gold);
  box-shadow: none;
}
.rooms {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.5rem 0 2rem;
}
@media (max-width: 720px) { .rooms { grid-template-columns: 1fr; } }
.room {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.25rem;
  background: rgba(18,16,14,.55);
  transition: transform .25s ease, border-color .25s ease;
}
.room:hover { transform: translateY(-3px); border-color: var(--line-gold); }
.room .k { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.room h2 { margin: .35rem 0 .4rem; font-size: 1.45rem; }
.room p { margin: 0; color: var(--muted); font-size: .9rem; }
.host-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .85rem; }
.host-chip {
  font-size: .72rem; color: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: .2rem .55rem;
}
.gate {
  border: 1px solid var(--line-gold); border-radius: 16px; padding: 1.2rem;
  background: rgba(18,16,14,.7); margin: 1rem 0 2rem;
}
.fields { display: grid; gap: 1rem; max-width: 36rem; }
.fields label { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.fields input, .fields select, .fields textarea {
  width: 100%; border-radius: 11px; border: 1px solid var(--line);
  background: rgba(5,5,5,.65); color: var(--paper);
  padding: .85rem 1rem; font: inherit;
}
.booth {
  display: grid; grid-template-columns: 1fr 280px; gap: 1.25rem; align-items: start;
}
@media (max-width: 900px) { .booth { grid-template-columns: 1fr; } }
.thread {
  border: 1px solid var(--line); border-radius: 18px; min-height: 60vh;
  padding: 1.25rem; background: rgba(12,10,8,.7);
}
.line { margin: 0 0 1.1rem; max-width: 38rem; }
.line .who { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
.line .said {
  font-family: var(--font-display); font-size: 1.2rem; line-height: 1.35;
  color: var(--paper); margin: .25rem 0 0;
}
.line.guest .who { color: var(--signal); }
.side {
  border: 1px solid var(--line); border-radius: 16px; padding: 1rem;
  background: rgba(18,16,14,.55); position: sticky; top: 5.5rem;
}
.side h3 { font-family: var(--font-display); font-weight: 400; margin: 0 0 .4rem; }
.nudge { display: grid; gap: .5rem; margin-top: 1rem; }
.nudge textarea { min-height: 4.5rem; resize: vertical; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); margin-right: .4rem; }
.outcome {
  font-family: var(--font-display); font-size: 2rem; margin: 0 0 .5rem;
}
.outcome.didnt { color: var(--muted); }
.outcome.clicked { color: var(--brassHot); }
.board {
  width: min(480px, 100%); aspect-ratio: 1;
  display: grid; grid-template-columns: repeat(8, 1fr);
  border: 1px solid var(--line-gold); border-radius: 8px; overflow: hidden;
}
.sq { aspect-ratio: 1; display: grid; place-items: center; font-size: 1.55rem; }
.sq.d { background: #3a3228; }
.sq.l { background: #cbb79a; }
.pc.w { color: #f4efe6; text-shadow: 0 1px 0 #1a140f, 0 0 2px #1a140f; }
.pc.b { color: #14110e; }
.nudge textarea, .nudge input {
  width: 100%; border-radius: 11px; border: 1px solid var(--line);
  background: rgba(5,5,5,.65); color: var(--paper);
  padding: .85rem 1rem; font: inherit;
}
.go-board {
  width: min(480px, 100%); aspect-ratio: 1;
  background: #c9a46a22;
  border: 1px solid var(--line-gold);
  position: relative;
}
.stone { position: absolute; width: 6.2%; height: 6.2%; border-radius: 50%; transform: translate(-50%,-50%); }
.stone.b { background: #111; box-shadow: inset -2px -2px 4px #000; }
.stone.w { background: #f2ebe3; box-shadow: inset -2px -2px 4px #bbb; }
.tabbar { display: flex; gap: .5rem; margin: 0 0 1rem; }
.tabbar button {
  appearance: none; border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: .35rem .8rem; cursor: pointer; font: inherit; font-size: .8rem;
}
.tabbar button[aria-selected="true"] { color: #1a140f; background: var(--brass); border-color: var(--brass); }
