body {
  background:var(--bg-deep);
  color:var(--text);
  font-family:'Inter',sans-serif;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
a { color:inherit; text-decoration:none; }
::selection { background:var(--grass); color:#0d160f; }
.panel {
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:3px;
}
.section-title {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:16px;
}
.section-title h2 {
  font-size:0.78rem;
  font-weight:700;
  letter-spacing:1.2px;
  text-transform:uppercase;
  color:var(--text);
  display:flex;
  align-items:center;
  gap:8px;
}
.section-title h2::before {
  content:'';
  width:5px;
  height:14px;
  background:var(--grass);
  border-radius:1px;
  box-shadow:0 0 8px var(--grass-glow);
}
.section-title .line {
  flex:1;
  height:1px;
  background:linear-gradient(90deg, var(--border) 0%, transparent 100%);
}
.btn {
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--grass-soft);
  color:var(--text);
  font-size:0.83rem;
  font-weight:600;
  padding:10px 18px;
  border:1px solid rgba(255,255,255,0.1);
  border-radius:3px;
  cursor:pointer;
  transition:background .18s ease, border-color .18s ease, transform .12s ease;
}
.btn.ghost { background:transparent; border-color:var(--border); }
.btn.ghost:hover { background:var(--bg-raised); box-shadow:none; }
.btn:disabled {
  opacity:0.5;
  cursor:default;
  pointer-events:none;
}
.nav {
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(15,21,22,0.96);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--border);
}
.nav-hamburger {
  display:none;
  width:32px;
  height:32px;
  align-items:center;
  justify-content:center;
  border-radius:3px;
  cursor:pointer;
  background:transparent;
  border:none;
  color:var(--text);
  flex:0 0 auto;
  padding:0;
}
.nav-hamburger svg { width:20px; height:20px; }
.nav-hamburger:hover { background:var(--bg-raised); }
.discord-nav-menu button, .discord-nav-menu a {
  display:block;
  width:100%;
  text-align:left;
  background:none;
  border:none;
  color:var(--text-dim);
  padding:8px 10px;
  border-radius:3px;
  cursor:pointer;
  font-size:0.8rem;
  font-family:'Inter';
}
.discord-nav-menu button:hover, .discord-nav-menu a:hover { background:var(--bg-raised); color:var(--text); }
@media (max-width:980px) {
  .nav-hamburger { display:flex; }
  .nav-links {
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    flex-direction:column;
    gap:2px;
    background:var(--bg-panel);
    border-bottom:1px solid var(--border);
    padding:10px 24px 18px;
    box-shadow:0 16px 28px rgba(0,0,0,0.35);
  }
  .nav-links.show { display:flex; }
  .nav-links a {
    padding:12px 4px;
    border-bottom:1px solid var(--border-soft);
    font-size:0.92rem;
  }
  .nav-links a:last-child { border-bottom:none; }
}
@media (max-width:600px) {
  .nav-inner {
    gap:8px;
    padding:12px 14px;
    flex-wrap:nowrap;
  }
  .logo-word { font-size:0.82rem; }
  .logo-badge { height:22px; }
  .nav-icons .ic { width:26px; height:26px; }
  .discord-nav-btn { padding:6px 9px; font-size:0.7rem; }
  .discord-nav-btn span.label { display:none; }
  .discord-nav-who { padding:3px 6px 3px 3px; max-width:96px; }
  .discord-nav-who span {
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .discord-nav-who img { width:20px; height:20px; }
  .search-wrap { flex:1 1 auto; min-width:0; }
  .nav-search {
    width:100%;
    min-width:0;
    padding:7px 9px;
    font-size:0.76rem;
  }
}
.forum-wrap {
  max-width:1100px;
  margin:0 auto;
  padding:44px 24px 80px;
}
.forum-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:28px;
  flex-wrap:wrap;
}
.forum-header h1 { font-size:1.4rem; font-weight:800; }
#new-thread-card {
  padding:24px;
  margin-bottom:26px;
  display:none;
}
#new-thread-card.open { display:block; }
#new-thread-card h2 {
  font-size:0.95rem;
  font-weight:700;
  margin-bottom:16px;
}
.field { margin-bottom:14px; }
.field label {
  display:block;
  font-size:0.78rem;
  font-weight:600;
  color:var(--text-dim);
  margin-bottom:6px;
}
.field input, .field textarea {
  width:100%;
  background:var(--bg-raised);
  border:1px solid var(--border);
  color:var(--text);
  font-family:inherit;
  font-size:0.86rem;
  padding:9px 12px;
  border-radius:4px;
}
.field textarea { resize:vertical; min-height:120px; }
.field .count {
  text-align:right;
  font-size:0.72rem;
  color:var(--text-faint);
  margin-top:4px;
}
.anon-row {
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:16px;
  font-size:0.84rem;
  color:var(--text-dim);
}
.anon-row input { width:auto; }
.form-msg {
  font-size:0.84rem;
  padding:10px 14px;
  border-radius:4px;
  margin-top:12px;
  display:none;
}
.form-msg.ok {
  background:rgba(95,174,90,0.14);
  color:var(--grass);
  display:block;
}
.form-msg.err {
  background:rgba(184,80,63,0.14);
  color:var(--redstone);
  display:block;
}
.forum-grid {
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:24px;
  align-items:start;
}
@media (max-width:820px) {
  .forum-grid { grid-template-columns:1fr; }
}
.thread-list { display:flex; flex-direction:column; }
.thread-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:16px 20px;
  border-bottom:1px solid var(--border-soft);
  transition:background .15s ease;
  cursor:pointer;
}
.thread-row:last-child { border-bottom:none; }
.thread-row:hover { background:var(--bg-raised); }
.author-link {
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:inherit;
}
.author-link:hover { text-decoration:underline; }
.thread-title-row {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.thread-title {
  font-size:0.92rem;
  font-weight:700;
  color:var(--text);
}
.pin-badge, .lock-badge {
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
}
.pin-badge svg {
  width:13px;
  height:13px;
  color:var(--gold);
  opacity:.8;
}
.lock-badge svg {
  width:13px;
  height:13px;
  color:var(--text-faint);
  opacity:.9;
}
.thread-meta {
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:6px;
  font-size:0.76rem;
  color:var(--text-faint);
}
.thread-avatar {
  width:18px;
  height:18px;
  border-radius:50%;
}
.thread-avatar-placeholder {
  width:18px;
  height:18px;
  border-radius:50%;
  background:var(--bg-raised);
}
.thread-stats {
  display:flex;
  gap:18px;
  flex:0 0 auto;
  text-align:center;
}
.thread-stats div {
  display:flex;
  flex-direction:column;
  align-items:center;
  min-width:52px;
}
.thread-stats strong { font-size:0.9rem; font-family:'JetBrains Mono',monospace; }
.thread-stats span {
  font-size:0.66rem;
  color:var(--text-faint);
  text-transform:uppercase;
  letter-spacing:0.4px;
}
.thread-empty {
  padding:24px 20px;
  color:var(--text-faint);
  font-size:0.85rem;
}
@media (max-width:600px) {
  .thread-stats { display:none; }
}
.pagination {
  display:flex;
  gap:6px;
  justify-content:center;
  margin-top:20px;
  flex-wrap:wrap;
}
.pagination button {
  background:var(--bg-panel);
  border:1px solid var(--border);
  color:var(--text-dim);
  font-size:0.82rem;
  font-weight:600;
  padding:7px 13px;
  border-radius:3px;
  cursor:pointer;
}
.pagination button:hover { background:var(--bg-raised); color:var(--text); }
.pagination button.active {
  background:var(--grass-soft);
  color:var(--text);
  border-color:transparent;
}
.pagination button:disabled { opacity:.4; cursor:default; }
.pagination span.ellipsis { color:var(--text-faint); padding:7px 4px; }
.cta-connect {
  padding:24px;
  text-align:center;
  margin-bottom:26px;
}
.cta-connect p {
  color:var(--text-dim);
  font-size:0.86rem;
  margin-bottom:14px;
}
