:root {
  --forum-bg: #f2f2f2;
  --forum-panel: #ffffff;
  --forum-ink: #111111;
  --forum-accent: #000000;
  --forum-deep: #000000;
  --forum-line: #1a1a1a;
  --forum-rind: #ebebeb;
}

body {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(255, 255, 255, 0) 180px),
    radial-gradient(circle at top right, rgba(0, 0, 0, 0.08), transparent 30%),
    radial-gradient(circle at left center, rgba(0, 0, 0, 0.05), transparent 28%),
    var(--forum-bg);
  color: var(--forum-ink);
}

.forum-hero,
.board-section,
.detail-shell,
.profile-panel,
.admin-panel {
  border: 1px solid var(--forum-line);
  border-left: 6px solid var(--forum-accent);
  background: var(--forum-panel);
  box-shadow: 0 18px 50px rgba(31, 26, 23, 0.08);
}

.thread-grid {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 0.8rem;
}

.forum-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 0;
  margin-bottom: 1.5rem;
}

.hero-eyebrow,
.section-heading p,
.detail-meta,
.thread-card-foot,
.board-meta,
.coin-panel span,
.attachment-card span,
.reply-item header span,
.auth-switch-btn,
.forum-pagination {
  font-family: 'JetBrains Mono', monospace;
}

.hero-eyebrow {
  margin: 0 0 0.65rem;
  color: var(--forum-deep);
  letter-spacing: 0.18em;
  font-size: 0.75rem;
}

.hero-actions,
.user-stack,
.captcha-row,
.detail-actions,
.forum-pagination {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.ghost-btn {
  border: 1px solid var(--forum-line);
  background: rgba(255, 255, 255, 0.75);
  color: var(--forum-ink);
  cursor: pointer;
}

.ghost-btn,
.create-btn,
.small-btn {
  border-radius: 0;
  padding: 0.75rem 1.15rem;
  font-weight: 700;
}

.small-btn,
.small-create {
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
}

.forum-hero-stats,
.attachment-grid,
.reply-list {
  display: grid;
  gap: 1rem;
}

.forum-hero-stats {
  grid-template-columns: 1fr;
}

.hero-stat,
.coin-panel,
.attachment-card,
.reply-item,
.empty-card {
  border-radius: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--forum-line);
  background: rgba(255, 255, 255, 0.85);
}

.hero-stat strong,
.coin-panel strong {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.board-section,
.resource-panel,
.reply-panel,
.detail-body {
  border-radius: 0;
  padding: 1.4rem;
  margin-bottom: 1.25rem;
}

.section-heading,
.section-heading.compact,
.detail-header,
.thread-card-top,
.thread-tags,
.attachment-card,
.reply-item header {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
}

.section-heading h2,
.detail-header h1 {
  margin: 0;
}

.board-strip {
  display: grid;
  gap: 0.75rem;
}

.board-card {
  width: 100%;
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
  border: 1px solid var(--forum-line);
  border-left: 6px solid var(--forum-accent);
  border-radius: 0;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(238,238,238,0.96));
  cursor: pointer;
}

.board-card.active,
.auth-switch-btn.active {
  border-color: var(--forum-accent);
  background: linear-gradient(135deg, rgba(0,0,0,0.12), rgba(0,0,0,0.04));
}

.board-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0;
}

.board-meta {
  white-space: nowrap;
}

.board-meta i {
  font-style: normal;
  margin: 0 0.35rem;
}

.thread-card {
  border-radius: 0;
  border: 1px solid var(--forum-line);
  border-left: 6px solid var(--forum-accent);
  background: rgba(255, 253, 248, 0.92);
  padding: 1.25rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thread-card:hover,
.ghost-btn:hover,
.board-card:hover,
.attachment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(31, 26, 23, 0.1);
}

.thread-card h3,
.detail-header h1 {
  margin: 0.45rem 0 0.6rem;
}

.thread-tags span,
.mini-badge {
  border-radius: 0;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  background: rgba(0, 0, 0, 0.07);
}

.mini-badge.hot { background: rgba(0, 0, 0, 0.16); }
.mini-badge.coin { background: rgba(0, 0, 0, 0.12); }

.detail-shell { border-radius: 0; padding: 1.5rem; }
.detail-header { margin-bottom: 1rem; }
.detail-body { line-height: 1.8; }
.detail-body img, .reply-item img { max-width: 100%; border-radius: 0; }
.detail-body pre, .reply-item pre { overflow: auto; padding: 1rem; background: #f7f3eb; border-radius: 0; }

.coin-panel.small strong { font-size: 1.25rem; }
.attachment-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.attachment-card strong { display: block; margin-bottom: 0.35rem; }

.reply-item { display: grid; gap: 0.75rem; }
.reply-form { display: grid; gap: 1rem; margin-top: 1rem; }

.auth-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.auth-switch-btn,
.captcha-box {
  border: 1px solid var(--forum-line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.9);
}

.auth-switch-btn { padding: 0.8rem 1rem; cursor: pointer; }
.captcha-box { min-height: 58px; display: flex; align-items: center; justify-content: center; }
.captcha-box svg { width: 100%; height: auto; }
.forum-pagination { justify-content: center; padding: 1rem 0 0.5rem; }

@media (max-width: 920px) {
  .forum-hero { grid-template-columns: 1fr; }
  .detail-header { align-items: flex-start; }
  .subtitle,
  .forum-hero-stats,
  .thread-card p,
  .section-heading p {
    display: none;
  }

  .board-card,
  .detail-header,
  .thread-card-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .thread-card {
    padding: 1rem;
  }

  .thread-card h3 {
    margin-bottom: 0.35rem;
  }

  .category-tabs {
    display: none;
  }
}
