/* Brass Rain feature board. Dark olive/charcoal, brass accent. No external assets. */
@font-face {
  font-family: "Stardos Stencil";
  src: url("/static/fonts/stardos-stencil-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  --bg: #17190f;
  --bg2: #1e2116;
  --surface: #23271b;
  --surface2: #2b3021;
  --line: #3a4030;
  --text: #ece7d6;
  --muted: #bdb9a0;
  --brass: #c9a13b;
  --brass-hi: #e3bb55;
  --brass-ink: #1a1405;
  --olive: #556b2f;
  --red: #c0644a;
  --green: #84a85a;
  --steel: #7d9db0;
  --radius: 10px;
  --stencil: "Stardos Stencil", "Impact", "Arial Narrow Bold", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg) linear-gradient(180deg, #23271a 0, var(--bg) 340px) no-repeat;
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brass-hi); }
a:hover { color: #f4d47f; }
:focus-visible { outline: 3px solid var(--brass-hi); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brass); color: var(--brass-ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
code { background: var(--bg2); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
[hidden] { display: none !important; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(20, 22, 14, .85); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-logo { display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--stencil); font-size: 1.55rem; letter-spacing: .06em; color: var(--brass); }
.brand-sub { font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.main-nav a:not(.btn) { color: var(--text); text-decoration: none; padding: 8px 10px; border-radius: 6px; font-weight: 600; }
.main-nav a:not(.btn):hover, .main-nav a[aria-current="page"] { background: var(--surface2); color: var(--brass-hi); }
.account { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.muted-link { color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface2); color: var(--text); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; min-height: 40px; }
.btn:hover { border-color: var(--brass); color: var(--text); }
.btn-brass { background: linear-gradient(180deg, var(--brass-hi), var(--brass)); color: var(--brass-ink); border-color: #8f6f1f; }
.btn-brass:hover { color: var(--brass-ink); filter: brightness(1.07); }
.btn-danger { background: #4a2018; border-color: #7a3424; }
.btn-small { padding: 5px 10px; min-height: 32px; font-size: .875rem; }
.btn-steam { background: #1b2838; border-color: #2a475e; color: #fff; }
.btn-discord { background: #5865f2; border-color: #4752c4; color: #fff; }
.link-btn { background: none; border: 0; color: var(--brass-hi); font: inherit; font-size: .875rem; cursor: pointer; padding: 2px 4px; text-decoration: underline; }
.link-btn.danger { color: #e08a72; }
.inline { display: inline; margin: 0; }

/* layout bits */
main { padding: 26px 18px 60px; }
.intro h1, .page h1, .post-full h1, h2, h3 { font-family: var(--stencil); letter-spacing: .03em; font-weight: 700; }
.intro h1 { font-size: 2.1rem; margin: 4px 0 6px; color: var(--text); }
.lead { color: var(--muted); margin: 0 0 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.flash { padding: 10px 14px; border-radius: 8px; margin: 0 0 14px; background: #2d3a1f; border: 1px solid #4f6a2e; }
.flash-error { background: #3b1f18; border-color: #7a3424; }
.notice { padding: 10px 14px; border-radius: 8px; margin: 0 0 14px; background: var(--bg2); border: 1px dashed var(--line); }
.notice-mod { border-color: var(--brass); }
.back { margin: 0 0 12px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.tab { padding: 10px 18px; text-decoration: none; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  font-size: .9rem; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab.is-active { color: var(--brass-hi); border-color: var(--brass); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filters input[type="search"] { flex: 1 1 220px; }
input, select, textarea { font: inherit; color: var(--text); background: var(--bg2); border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 11px; min-height: 40px; max-width: 100%; }
textarea { width: 100%; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brass); outline: none; box-shadow: 0 0 0 2px rgba(201, 161, 59, .35); }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack > label { font-weight: 600; }
.stack input:not([type="checkbox"]), .stack select { width: 100%; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.row label { display: flex; flex-direction: column; gap: 4px; flex: 1 1 240px; font-weight: 600; font-size: .95rem; }
.check { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 8px; font-weight: 500 !important; flex: 0 0 auto !important; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* posts */
.post-list { display: flex; flex-direction: column; gap: 12px; }
.post-card, .post-full { display: flex; gap: 16px; align-items: flex-start; }
.post-main { flex: 1; min-width: 0; }
.post-title { margin: 0 0 4px; font-size: 1.15rem; line-height: 1.3; font-family: inherit; letter-spacing: 0; }
.post-title a { color: var(--text); text-decoration: none; }
.post-title a:hover { color: var(--brass-hi); }
.post-full .post-title { font-family: var(--stencil); font-size: 1.9rem; letter-spacing: .02em; margin: 6px 0 8px; }
.excerpt { margin: 0 0 8px; color: #cfcab6; overflow-wrap: anywhere; }
.meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .85rem; }
.cat { border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; color: #d6d0b8; font-size: .8rem; }
.prose { overflow-wrap: anywhere; }
.prose p { margin: .6em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }

.vote button { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; min-height: 64px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); color: var(--muted); cursor: pointer; font: inherit; gap: 2px; }
.vote button:hover:not(:disabled) { border-color: var(--brass); color: var(--brass-hi); }
.vote .count { font-weight: 800; font-size: 1.1rem; color: var(--text); }
.vote.is-voted button { background: linear-gradient(180deg, #3a3214, #2a250f); border-color: var(--brass); color: var(--brass-hi); }
.vote.is-voted .count { color: var(--brass-hi); }
.vote button:disabled { opacity: .55; cursor: default; }

.badge { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; background: var(--surface2); color: var(--text); border: 1px solid var(--line); vertical-align: middle; }
.status-consideration { background: #2e3524; color: #d8d3b8; }
.status-planned { background: #1f3340; color: #a9d0e6; border-color: #33576b; }
.status-progress { background: #3a3214; color: var(--brass-hi); border-color: #6e5a1e; }
.status-done { background: #24381a; color: #b7dc8c; border-color: #456b2c; }
.status-notplanned { background: #3b231b; color: #e8a58f; border-color: #6c3a2b; }
.status-pending, .status-archived, .status-deleted { background: #2b2b2b; color: #c9c9c9; border-style: dashed; }
.badge-team, .badge-dev { background: var(--brass); color: var(--brass-ink); border-color: #8f6f1f; }
.badge-note { background: #2a2f3a; color: #b8c4dc; }
.badge-verified { background: #1f2e3a; color: #9cc7e0; border-color: #33576b; text-transform: none; }

.reactions { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 0; }
.react { border: 1px solid var(--line); background: var(--bg2); border-radius: 999px; padding: 3px 10px; font-size: .95rem; cursor: pointer;
  color: var(--text); display: inline-flex; gap: 5px; align-items: center; min-height: 32px; }
.react span { font-size: .8rem; font-weight: 700; color: var(--muted); }
.react.is-zero { opacity: .55; }
.react.is-zero:hover, .react:hover { opacity: 1; border-color: var(--brass); }
.react.is-mine { border-color: var(--brass); background: #2f2a12; }
.react.is-mine span { color: var(--brass-hi); }

.author { display: inline-flex; align-items: center; gap: 6px; color: #d6d0b8; font-weight: 600; }
.avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--olive); color: #eef0de; display: inline-flex; align-items: center;
  justify-content: center; font-size: .68rem; font-weight: 800; }

.comments { margin-top: 26px; }
.comments h2 { font-size: 1.4rem; }
.comment { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 10px; }
.comment.is-dev { border-color: var(--brass); background: linear-gradient(180deg, #2c2915, var(--surface)); }
.comment.is-note { border-style: dashed; border-color: #4b5a78; background: #1f232d; }
.comment.is-pending { opacity: .8; border-style: dashed; }
.replies { margin-left: 28px; border-left: 2px solid var(--line); padding-left: 14px; }
.comment-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.comment-actions .reactions { margin: 0; }
.comment-form { margin-top: 16px; }
.comment-form h3 { margin: 0; }
.report summary, .inline-details summary { cursor: pointer; color: var(--muted); font-size: .85rem; }
.report { margin-top: 10px; }
.report form, .inline-details form { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.inline-details { display: inline-block; }
.mod-inline { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; border-left: 1px solid var(--line); padding-left: 8px; }

.mod-tools { margin-top: 14px; border-color: #6e5a1e; }
.mod-tools h2 { margin: 0 0 10px; font-size: 1.1rem; color: var(--brass-hi); }
.mod-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 8px; }
.mod-row label { display: inline-flex; gap: 6px; align-items: center; }

.similar { background: #2a2712; border: 1px solid #6e5a1e; border-radius: 8px; padding: 10px 14px; }
.similar p { margin: 0 0 6px; }
.similar ul { margin: 0; padding-left: 1.2em; }

.empty { text-align: center; padding: 30px; }
.pager { display: flex; justify-content: center; gap: 14px; align-items: center; margin-top: 20px; }

.queue h2 { margin-top: 26px; font-size: 1.25rem; }
.bulk-bar { position: sticky; top: 66px; z-index: 3; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px;
  background: var(--surface2); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 14px; }
.queue-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; justify-content: space-between; }
.queue-item > div { flex: 1; min-width: 0; }
.queue-title { font-weight: 700; color: var(--text); }
.settings-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
table.log { width: 100%; border-collapse: collapse; font-size: .85rem; }
table.log th, table.log td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.log th { color: var(--muted); font-weight: 600; }
.login-box .btn { width: 100%; }
.page h1 { margin-top: 0; }


.site-footer { margin-top: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 18px; }
.footer-inner nav { display: flex; gap: 14px; }
.footer-inner a { color: var(--muted); }

@media (max-width: 640px) {
  .header-inner { gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .brand-name { font-size: 1.3rem; }
  .main-nav { order: 3; width: 100%; margin-left: 0; justify-content: space-between; }
  .main-nav .btn { padding: 8px 12px; }
  .account { margin-left: auto; }
  .intro h1 { font-size: 1.7rem; }
  .post-card, .post-full { gap: 12px; }
  .card { padding: 14px; }
  .vote button { width: 50px; min-height: 58px; }
  .post-full .post-title { font-size: 1.5rem; }
  .replies { margin-left: 10px; padding-left: 10px; }
  .site-header { position: static; }
  .bulk-bar { top: 0; }
  table.log td:nth-child(5), table.log th:nth-child(5) { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
