:root {
  --bg: #08070a;
  --ink: #ece9f2;
  --dim: #8f8aa0;
  --line: #221f2b;
  --card: #100e15;
  --acid: #d6ff3f;
  --hot: #ff3b6b;
  --max: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- background ---------- */
.bg {
  position: fixed;
  inset: -30vmax;
  z-index: -2;
  background:
    radial-gradient(38vmax 38vmax at 20% 15%, #3a1246 0%, transparent 62%),
    radial-gradient(34vmax 34vmax at 82% 28%, #0b3b4d 0%, transparent 60%),
    radial-gradient(42vmax 42vmax at 50% 92%, #4a1030 0%, transparent 64%),
    var(--bg);
  filter: saturate(1.15);
  animation: drift 34s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1);    }
  50%  { transform: translate3d(2%, 2%, 0)   scale(1.08); }
  100% { transform: translate3d(-1%, 3%, 0)  scale(1.03); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .bg { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8vh 20px 6vh;
  gap: 18px;
}

.kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--acid);
  opacity: .8;
}

.wordmark {
  margin: 0;
  font-family: Anton, Impact, "Arial Black", sans-serif;
  font-weight: 400;
  line-height: .84;
  letter-spacing: -.02em;
  text-transform: lowercase;
  font-size: clamp(2.9rem, 13.5vw, 10rem);
  background: linear-gradient(178deg, #fff 25%, #a99fc4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}

.wordmark .tld {
  color: var(--hot);
  -webkit-text-fill-color: var(--hot);
}

.sub {
  margin: 0;
  max-width: 46ch;
  color: var(--dim);
  font-size: 16px;
  text-wrap: pretty;
}

.jump {
  margin-top: 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 22px;
  transition: border-color .2s, color .2s, background .2s;
}
.jump:hover { border-color: var(--acid); color: var(--acid); }

/* ---------- layout ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 0 20px 90px; }

.eyebrow {
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--hot);
  margin: 0 0 26px;
  font-weight: 700;
}

.manifesto { padding: 60px 0 70px; border-bottom: 1px solid var(--line); }
.manifesto p { margin: 0 0 22px; color: #cfcada; text-wrap: pretty; }
.manifesto em { color: var(--ink); font-style: italic; }

.wall { padding: 60px 0 0; scroll-margin-top: 20px; }

/* ---------- composer ---------- */
.composer {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.row { display: flex; gap: 10px; align-items: center; }
.bar { justify-content: space-between; }

input[type=text], textarea {
  width: 100%;
  background: #0a0810;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  padding: 11px 13px;
  resize: vertical;
  outline: none;
  transition: border-color .16s;
}
input[type=text]:focus, textarea:focus { border-color: #4a4360; }
::placeholder { color: #5d5770; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.count { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.count.over { color: var(--hot); }

button {
  font: 700 13px/1 Inter, system-ui, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--acid);
  color: #12140a;
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  cursor: pointer;
  transition: transform .12s, opacity .16s;
}
button:hover:not(:disabled) { transform: translateY(-1px); }
button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- auth gate ---------- */
.gate {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 30px;
}

.tabs { display: flex; gap: 6px; margin-bottom: 12px; }

.tab {
  background: transparent;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 9px 16px;
  font-size: 12px;
}
.tab.on { background: #1a1722; color: var(--ink); border-color: #4a4360; }

.gate-note { margin: 0 0 14px; font-size: 13px; color: var(--dim); }

#authform { display: flex; flex-direction: column; gap: 10px; }

input[type=password] {
  width: 100%;
  background: #0a0810;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  padding: 11px 13px;
  outline: none;
  transition: border-color .16s;
}
input[type=password]:focus { border-color: #4a4360; }

#authgo { align-self: flex-start; }

.who {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--dim);
  padding-bottom: 2px;
}
.who strong { color: var(--acid); font-weight: 700; }

.link {
  background: none;
  color: var(--dim);
  border: 0;
  padding: 4px 0;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link:hover { color: var(--hot); transform: none; }

/* ---------- comments ---------- */
.list { display: flex; flex-direction: column; gap: 12px; }

.c {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  animation: pop .25s ease both;
}

@keyframes pop {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.c-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.c-name { font-weight: 700; font-size: 14px; color: var(--acid); overflow-wrap: anywhere; }
.c-time { font-size: 12px; color: var(--dim); white-space: nowrap; }
.c-body { margin: 0; font-size: 15.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.c.pending { opacity: .55; }

/* loading skeleton */
.sk {
  height: 78px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(100deg, var(--card) 30%, #1a1722 50%, var(--card) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { to { background-position: -150% 0; } }

.empty {
  text-align: center;
  color: var(--dim);
  padding: 46px 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.empty strong { display: block; color: var(--ink); margin-bottom: 6px; font-size: 16px; }

.more-wrap { display: flex; justify-content: center; padding: 26px 0 0; }
.more { background: transparent; color: var(--dim); border: 1px solid var(--line); }
.more:hover:not(:disabled) { color: var(--ink); border-color: #4a4360; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 140%);
  opacity: 0;
  visibility: hidden;
  background: var(--hot);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 999px;
  max-width: min(92vw, 460px);
  text-align: center;
  transition: transform .28s cubic-bezier(.2,.9,.3,1.2), opacity .2s, visibility .2s;
  z-index: 10;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast.ok { background: var(--acid); color: #12140a; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 20px 60px;
  color: #6b657d;
  font-size: 12.5px;
  text-align: center;
}
footer p { margin: 0 0 8px; }
.tiny { font-size: 11.5px; opacity: .75; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .composer { padding: 13px; }
  button { padding: 11px 18px; }
}
