:root {
  --bg: #000;
  --ink: #C8C8C8;
  --title: #f2eadc;
  --cream: #f2eadc;
  --mute: #8a8173;
  --gold: #d4a017;
  --gold2: #c9a227;
  --blood: #b10f2e;
  --line: #1c1c1c;
  --card: #0a0a0a;
  --header-h: 56px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100%;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select {
  font: inherit; color: inherit; background: #111; border: 1px solid var(--line);
}
button { cursor: pointer; }
button:hover { border-color: var(--gold); }
button:disabled { opacity: .45; cursor: not-allowed; }
.gag-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.gag-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 14px;
  background: rgba(0,0,0,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.brand {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 22px; letter-spacing: .12em; color: var(--cream);
  text-decoration: none; white-space: nowrap;
}
.brand span { color: var(--blood); }
.brand:hover { text-decoration: none; }
.gag-mark {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 20px; letter-spacing: .16em; color: var(--gold);
  text-decoration: none;
}
.tabs { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button {
  border: 0; background: transparent; color: var(--mute);
  padding: 8px 10px; letter-spacing: .08em; text-transform: uppercase;
  font-size: 12px; white-space: nowrap;
}
.tabs a.on, .tabs button.on, .tabs a:hover, .tabs button:hover {
  color: var(--gold); text-decoration: none;
}
.hdr-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 8px;
  display: grid; place-items: center; font-size: 18px;
  background: #111; border: 1px solid var(--line); color: var(--cream);
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--gold); background: #16120a;
  display: grid; place-items: center; color: var(--gold);
  font-size: 12px; font-weight: 700; text-decoration: none;
}
.main {
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 16px 12px 96px;
  flex: 1;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
}
.card-head { padding: 12px 14px 8px; }
.card-title {
  margin: 0; color: var(--title); font-size: 17px; line-height: 1.35;
  font-weight: 650;
}
.card-meta {
  margin-top: 6px; color: var(--mute); font-size: 12px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.card-media { position: relative; background: #050505; }
.card-media img, .card-media video {
  display: block; width: 100%; max-height: 720px; object-fit: contain; background: #000;
}
.sensitive .media-blur { filter: blur(18px); transform: scale(1.05); }
.nsfw-cover {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,.45); color: var(--cream); text-align: center; padding: 16px;
  cursor: pointer;
}
.vote-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 12px; border-top: 1px solid var(--line);
}
.vote-row button {
  border: 0; background: transparent; color: var(--mute); font-size: 14px; padding: 4px 6px;
}
.vote-row button.on-up { color: var(--gold); }
.vote-row button.on-down { color: var(--blood); }
.points { color: var(--cream); font-weight: 700; min-width: 2ch; text-align: center; }
.muted { color: var(--mute); }
.err { color: #ff6b6b; margin: 8px 0; }
.ok { color: #7dcea0; }
.form {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px;
}
.form h1, .page h1 {
  font-family: "Bebas Neue", Impact, sans-serif;
  color: var(--gold); letter-spacing: .08em; font-weight: 400; margin: 0 0 8px;
}
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--mute); }
.form input, .form textarea, .form select {
  padding: 10px 12px; border-radius: 8px; background: #0b0b0b; color: var(--cream);
}
.form .row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 14px; border-radius: 8px; border: 1px solid var(--gold);
  background: #16120a; color: var(--gold); font-weight: 600;
}
.btn.primary { background: var(--gold); color: #111; border-color: var(--gold); }
.btn.danger { border-color: var(--blood); color: #ff8a9a; background: #1a080c; }
.btn.ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-post {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--gold); color: #111; border: 0;
  font-weight: 800; font-size: 13px; letter-spacing: .04em;
  text-decoration: none; white-space: nowrap;
}
.btn-post:hover { text-decoration: none; filter: brightness(1.08); }
.fab {
  position: fixed; right: 16px; bottom: 20px; z-index: 50;
  min-width: 64px; height: 56px; padding: 0 18px; border-radius: 999px;
  background: var(--gold); color: #111; border: 0;
  font-size: 16px; font-weight: 800;
  box-shadow: 0 8px 24px rgba(212,160,23,.45);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none;
}
.fab:hover { text-decoration: none; filter: brightness(1.08); }
.fab-plus { font-size: 22px; line-height: 1; }
.fab-lbl { letter-spacing: .04em; }
@media (max-width: 720px) {
  .hdr-create { display: none; }
}
.empty {
  text-align: center; padding: 40px 18px; color: var(--mute);
  border: 1px dashed var(--gold2); border-radius: 12px; background: #0a0a0a;
}
.empty h2 {
  margin: 0 0 8px; color: var(--gold);
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: .08em; font-weight: 400; font-size: 28px;
}
.empty p { margin: 0 0 18px; line-height: 1.45; }
.empty .btn { min-width: 180px; }
.compose-strip {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 0 14px; padding: 14px 16px;
  border: 1px solid var(--gold2); border-radius: 12px;
  background: linear-gradient(180deg, #16120a 0%, #0a0a0a 100%);
}
.compose-strip .copy { flex: 1; min-width: 180px; }
.compose-strip .copy b { display: block; color: var(--title); font-size: 15px; margin-bottom: 2px; }
.compose-strip .copy span { color: var(--mute); font-size: 12px; }
.comment-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--cream) !important;
  background: #14110c; font-size: 13px; font-weight: 600;
  text-decoration: none !important;
}
.comment-cta:hover { border-color: var(--gold); color: var(--gold) !important; }
.comment-box {
  border: 1px solid var(--gold2) !important;
  box-shadow: 0 0 0 1px rgba(212,160,23,.15);
}
.comment-box textarea {
  min-height: 88px; font-size: 15px; color: var(--cream);
}
.comments-empty {
  text-align: center; padding: 22px 12px; color: var(--mute);
  border: 1px dashed var(--line); border-radius: 10px; margin-top: 8px;
}
.comments { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.comment {
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #080808;
}
.comment.child { margin-left: 18px; border-left: 2px solid #2a2418; }
.comment .c-meta { font-size: 12px; color: var(--mute); margin-bottom: 4px; }
.loader, .end {
  text-align: center; color: var(--mute); padding: 18px; font-size: 13px;
}
.search-box { width: 100%; padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  border: 1px solid #2a2418; color: var(--gold); font-size: 11px;
}
.section-chip { color: var(--gold); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.top-windows { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.top-windows button { padding: 6px 10px; border-radius: 999px; font-size: 12px; }
.top-windows button.on { border-color: var(--gold); color: var(--gold); }
.mod-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.rules ol { color: var(--ink); line-height: 1.55; }
.rules li { margin: 8px 0; }
.profile-head { margin-bottom: 16px; }
.profile-head h1 { margin-bottom: 4px; }
.dropzone {
  border: 1px dashed var(--gold2); border-radius: 10px; padding: 28px 16px;
  text-align: center; color: var(--mute); cursor: pointer; background: #0b0b0b;
}
.dropzone.on { border-color: var(--gold); color: var(--gold); }
.preview { margin-top: 10px; max-height: 280px; width: 100%; object-fit: contain; border-radius: 8px; }
.hidden { display: none !important; }

.hp-field { position:absolute; left:-10000px; top:auto; width:1px; height:1px; overflow:hidden; }
.age-on { border-color: var(--gold) !important; color: var(--gold) !important; }
.guest-note { color: var(--mute); font-size: 12px; margin: 0 0 10px; }
