:root {
  color-scheme: dark;
  --background: #131313;
  --panel: #202020;
  --panel-raised: #262524;
  --line: #39332e;
  --text: #f5f2ee;
  --muted: #b6afa8;
  --accent: #ff8c43;
  --accent-hover: #ffa060;
  --corner: 17px;
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; background: var(--background); color: var(--text); }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
svg { width: 22px; height: 22px; flex: none; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
.top { border-bottom: 1px solid #292522; background: var(--background); }
.top-inner { display: flex; align-items: center; gap: 30px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand strong { font-size: 24px; font-weight: 850; letter-spacing: .045em; }
.brand > span:last-child { color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; font-size: 14px; }
.top nav { align-self: stretch; display: flex; gap: 20px; align-items: stretch; }
.top nav a { display: grid; place-items: center; color: var(--muted); font-size: 14px; white-space: nowrap; border-bottom: 2px solid transparent; }
.top nav a:hover, .top nav a[aria-current] { color: var(--accent); }
.top nav a[aria-current] { border-color: var(--accent); }
.search { margin-left: auto; flex: 0 1 232px; display: flex; align-items: center; gap: 7px; color: var(--muted); border: 1px solid var(--line); border-radius: 7px; background: var(--background); padding: 0 10px; }
.search svg { width: 17px; height: 17px; }
.search input { width: 100%; padding: 8px 0; border: 0; background: transparent; color: var(--text); font-size: 14px; }
.search:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.search input:focus { outline: 0; }
.account { display: flex; gap: 12px; align-items: center; font-size: 14px; font-weight: 650; }
.account a:hover, .quiet:hover { color: var(--accent); }
.quiet { background: transparent; color: var(--muted); border: 0; padding: 6px 0; }
.button { display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-height: 42px; padding: 8px 15px; border: 1px solid transparent; border-radius: 7px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.button svg { width: 18px; height: 18px; }
.primary { color: #20170d; background: var(--accent); }
.primary:hover { background: var(--accent-hover); }
.outline { border-color: var(--line); background: var(--panel); color: var(--text); }
.outline:hover { border-color: var(--accent); color: var(--accent); }
.top .outline { border-color: #785f43; color: var(--accent); }

.main { padding-block: 28px 52px; min-height: 72vh; }
.home-head { padding-block: 2px 6px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); align-items: start; gap: 23px; margin-top: 21px; }
.sections { display: grid; gap: 15px; }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--corner); background: var(--panel); }
.panel-title, .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 45px; padding: 9px 16px; background: var(--panel-raised); border-bottom: 1px solid var(--line); }
.panel-title, .panel-heading h2 { font-size: 17px; line-height: 1.25; font-weight: 720; }
.panel-heading h2 { display: flex; gap: 8px; align-items: center; }
.panel-heading svg { color: var(--accent); width: 18px; height: 18px; }
.panel-heading > a { color: var(--accent); font-size: 13px; font-weight: 650; }
.categories li + li, .topic-row + .topic-row { border-top: 1px solid var(--line); }
.category-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 13px; min-height: 67px; padding: 10px 15px; }
.category-row:hover { background: #2a2521; }
.section-icon { width: 37px; height: 37px; display: grid; place-items: center; color: var(--accent); background: #2a2723; border: 1px solid #3c332a; border-radius: 7px; }
.section-icon svg { width: 20px; height: 20px; }
.row-copy { min-width: 0; overflow-wrap: anywhere; }
.row-title { font-size: 15px; font-weight: 700; margin-right: 4px; }
a.row-title:hover, .category-row:hover .row-title { color: var(--accent); }
.small { display: block; color: var(--muted); font-size: 13px; }
.row-marker { color: var(--muted); font-size: 13px; white-space: nowrap; }
.row-marker svg, .category-row > svg { width: 15px; height: 15px; color: var(--muted); }
.topic-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; min-height: 64px; }
.activity .topic-row { align-items: start; flex-direction: column; gap: 1px; }
.activity .topic-row > .small { color: var(--accent); font-size: 12px; }
.tally { text-align: right; white-space: nowrap; }
.empty { padding: 20px 16px; color: var(--muted); font-size: 14px; }
.forum-stats { display: grid; gap: 8px; margin: 0; padding: 13px 16px; font-size: 14px; }
.forum-stats div { display: flex; justify-content: space-between; gap: 10px; }
.forum-stats dt { color: var(--muted); }
.forum-stats dd { margin: 0; font-variant-numeric: tabular-nums; }
.footer { display: flex; gap: 18px; border-top: 1px solid var(--line); color: var(--muted); padding-block: 19px 28px; font-size: 13px; }
.footer a:hover { color: var(--accent); }

.crumb { display: flex; gap: 5px; align-items: center; margin-bottom: 15px; color: var(--muted); font-size: 14px; }
.crumb svg { width: 14px; height: 14px; }
.crumb a:hover { color: var(--accent); }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.page-head h1 { font-size: clamp(29px, 4vw, 42px); line-height: 1.15; letter-spacing: -.035em; overflow-wrap: anywhere; }
.page-head p { color: var(--muted); margin-top: 8px; }
.tabs { display: flex; flex-wrap: wrap; gap: 5px 16px; margin-bottom: 12px; font-size: 14px; }
.tabs a { padding-block: 5px; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs a:hover, .tabs a[aria-current] { color: var(--accent); }
.tabs a[aria-current] { border-color: var(--accent); }
.tag { display: inline-block; vertical-align: middle; margin-right: 5px; background: #2e2921; border: 1px solid #4d3e2e; border-radius: 5px; padding: 2px 6px; color: var(--accent); font-size: 11px; font-weight: 700; }
.tag.neutral { background: var(--panel-raised); border-color: var(--line); color: var(--muted); }
.topic-tags:empty, .post-actions:empty { display: none; }
.topic-tags { margin-bottom: 14px; }
.notice { margin-bottom: 15px; border: 1px solid #4d3e2e; border-radius: 8px; background: #231f1a; color: #e8cba7; padding: 12px 15px; }
.post { padding: 18px; margin-bottom: 14px; }
.post header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; flex: none; border-radius: 7px; background: #302719; color: var(--accent); font-weight: 750; }
.post-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.post-body p + p { margin-top: .9em; }
.post-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.search-page { display: flex; align-items: stretch; gap: 8px; max-width: 620px; margin-bottom: 15px; }
.search-page input, .editor input, .editor textarea, .editor select { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--background); color: var(--text); padding: 9px 10px; }
.editor { display: grid; gap: 9px; max-width: 720px; padding: 18px; }
.editor.auth { max-width: 430px; }
.editor label { font-size: 14px; font-weight: 700; }
.editor input + label, .editor select + label { margin-top: 6px; }
.editor button { justify-self: start; margin-top: 5px; }
.editor a { color: var(--accent); font-size: 14px; }
.editor textarea { resize: vertical; }
.pair-steps { margin: 4px 0; padding-left: 21px; color: var(--muted); }
.pair-steps li + li { margin-top: 8px; }
.game-command { display: block; margin-top: 6px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--background); overflow-wrap: anywhere; }
.pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-block: 15px; color: var(--muted); font-size: 14px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 3; background: var(--accent); color: var(--background); padding: 8px 12px; }

@media (max-width: 960px) {
  .wrap { width: calc(100% - 40px); }
  .top-inner { gap: 18px; }
  .top nav { gap: 12px; }
  .home-grid { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 15px; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 28px); }
  .top-inner { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding-top: 12px; }
  .top-inner > .button, .account { grid-area: 1 / 2; justify-self: end; }
  .top nav { grid-row: 3; grid-column: 1 / -1; gap: 20px; }
  .top nav a { padding: 4px 0 8px; }
  .search { grid-row: 2; grid-column: 1 / -1; margin: 0; }
  .main { padding-top: 16px; }
  .brand strong { font-size: 19px; }
  .home-head { gap: 10px; }
  .home-grid { grid-template-columns: minmax(0, 1fr); margin-top: 15px; }
  .category-row { padding-inline: 11px; gap: 9px; }
  .count-unit { display: none; }
  .page-head { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 360px) {
  .brand > span:last-child { display: none; }
  .category-row { gap: 7px; }
  .row-marker { display: none; }
}
