@font-face {
  font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/forum/assets/manrope-cyrillic.woff2) format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/forum/assets/manrope-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  color-scheme: light;
  --ink: #1b3834;
  --muted: #516e68;
  --paper: #f0f5f2;
  --surface: #fcfefd;
  --line: #d3e2da;
  --line-strong: #a7c3b6;
  --accent: #28614f;
  --accent-dark: #19493c;
  --soft: #e8f1ec;
  --danger: #983d35;
  --shadow: 0 7px 22px #244c3c0c;
}
*, *::before, *::after { box-sizing: border-box; }
html { font: 16px/1.53 Manrope, "Segoe UI", Arial, sans-serif; scroll-padding-top: 1rem; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #388668; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.9rem, 3.2vw, 2.85rem); font-weight: 800; letter-spacing: -.042em; }
h2 { font-size: 1.16rem; font-weight: 800; letter-spacing: -.022em; }
h3 { font-size: 1rem; font-weight: 800; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
input:not([type=hidden]), textarea, select {
  border: 1px solid var(--line-strong); border-radius: 7px; color: var(--ink); padding: .62rem .72rem;
  background: #fff; min-width: 0; max-width: 100%; outline-offset: 2px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid #78ab97; }
input::placeholder { color: var(--muted); opacity: 1; }
input[type=file] { font-size: .88rem; }
textarea { min-height: 8rem; resize: vertical; }
p, li, dd { overflow-wrap: anywhere; }
.shell { width: min(1190px, calc(100% - 3.25rem)); margin-inline: auto; }
.site-header { background: #f9fcfa; border-bottom: 1px solid #c5d8ce; position: relative; z-index: 1; }
.site-header::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, #bed0bb, #4a7565, #bed0bb); }
.header-layout { min-height: 75px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(.85rem, 3vw, 3rem); }
.brand { display: flex; align-items: center; }
.brand img { width: 140px; height: auto; display: block; }
.site-nav, .account-nav, .language { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.site-nav > a { display: inline-flex; min-height: 42px; align-items: center; padding-inline: .62rem; font-size: .89rem; font-weight: 800; }
.site-nav > a[aria-current] { border-radius: 6px; background: var(--soft); }
.account-nav { justify-content: flex-end; gap: .55rem; }
.account-nav form, .post-actions form { display: inline; }
.account-name { font-size: .9rem; font-weight: 800; }
.language { font-size: .76rem; gap: .35rem; padding-right: .38rem; }
.language a, .language strong { min-width: 31px; min-height: 32px; padding: 6px 5px; text-align: center; border-radius: 5px; }
.language strong { color: var(--accent-dark); background: var(--soft); }
.hero {
  background: #233e36;
  background-image: linear-gradient(90deg,#122b2a 3%,#15302c 31%,#15302cef 43%,#203a31a3 61%,#0a1d1b32), url(/forum/assets/forge.webp);
  background-repeat: no-repeat;
  background-size: cover, min(70vw, 980px) auto;
  background-position: center, right 32%;
  border-bottom: 3px solid #72988a;
  color: #f4fbf7;
}
.hero-content { min-height: 188px; display: flex; flex-direction: column; justify-content: center; padding-block: 2rem; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.05rem); font-weight: 800; letter-spacing: -.055em; }
.hero p { margin-top: .5rem; color: #d2e8de; font-size: 1.02rem; }
.main { flex: 1; min-height: 50vh; padding-block: 1.65rem 2.5rem; }
.board-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 305px); gap: 1.15rem; align-items: start; }
.board-sidebar { display: grid; gap: .85rem; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); min-width: 0; }
.panel-header {
  padding: .92rem 1.1rem; border-bottom: 1px solid var(--line); border-top-left-radius: inherit; border-top-right-radius: inherit;
  background: linear-gradient(102deg,#e1efe8,#edf5f0); color: #20473a;
}
.section-row, .topic-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 4rem minmax(7.5rem, 27%);
  align-items: center; gap: .95rem; padding: .9rem 1.1rem;
}
.section-row + .section-row, .topic-row + .topic-row, .activity-row + .activity-row, .admin-row + .admin-row { border-top: 1px solid var(--line); }
.section-main { display: flex; align-items: center; min-width: 0; gap: .76rem; }
.section-main h3 a, .topic-info h3 a { color: var(--ink); }
.section-main p, .topic-info p { margin-top: .29rem; color: var(--muted); font-size: .86rem; }
.section-icon { display: grid; place-items: center; width: 43px; height: 43px; background: var(--soft); border: 1px solid #ccded3; color: #376d5b; border-radius: 9px; flex: none; }
.section-icon i { display: block; width: 18px; height: 15px; border: 1.6px solid currentColor; border-radius: 3px; position: relative; }
.section-icon i::after { content: ""; display: block; width: 9px; height: 1.5px; background: currentColor; position: absolute; top: 4px; left: 3px; box-shadow: 0 4px currentColor; }
.icon-recruitment { color: #65603d; background: #f1eee1; border-color: #e4dcc0; }
.icon-recruitment i { border-radius: 100% 100% 2px 2px; height: 13px; }
.icon-recruitment i::after { left: 6px; width: 4px; height: 4px; border-radius: 100%; top: -8px; box-shadow: none; }
.icon-guides i { border-radius: 2px 5px 5px 2px; border-left-width: 3px; }
.icon-discussion i { border-radius: 5px; }
.icon-discussion i::after { width: 5px; height: 5px; box-shadow: none; transform: skewY(-38deg); top: 11px; left: 2px; }
.icon-bugs { color: #885846; background: #f4ebe6; border-color: #ebd7ca; }
.icon-bugs i { width: 15px; height: 15px; border-radius: 50%; }
.icon-bugs i::after { left: 5px; top: 2px; width: 1.6px; height: 5px; box-shadow: 0 5px currentColor; }
.section-count { text-align: center; display: grid; }
.section-count strong { font-size: .98rem; line-height: 1.1; color: var(--ink); }
.section-count span, .last-item span, .activity-row span { color: var(--muted); font-size: .79rem; }
.last-item, .activity-row { min-width: 0; display: grid; gap: .2rem; }
.last-item a, .activity-row a { font-size: .87rem; font-weight: 800; overflow-wrap: anywhere; }
.last-item a { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.activity-row { padding: .76rem 1.1rem; }
.activity-row .activity-section { font-size: .75rem; font-weight: 700; justify-self: start; }
.activity-row p { font-size: .88rem; color: var(--muted); }
.search-form { display: flex; align-items: stretch; gap: .42rem; }
.search-form input { flex: 1; }
.button, button.quiet {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-height: 41px;
  padding: .55rem .78rem; border: 1px solid var(--line-strong); border-radius: 7px; background: #fcfffd;
  color: var(--accent-dark); font-size: .88rem; font-weight: 800; line-height: 1.24; text-align: center;
}
.button:hover, button.quiet:hover { background: var(--soft); text-decoration: none; }
.button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.button.primary:hover { background: var(--accent-dark); }
.button.small, button.small { font-size: .8rem; min-height: 35px; padding: .44rem .6rem; }
.button:disabled { opacity: .67; cursor: not-allowed; }
.button.full, .button.social { width: 100%; }
.button.social { margin-top: .45rem; }
.button.telegram { color: #115b80; border-color: #95bdce; background: #f0f8fc; }
.button.steam { color: #233b62; background: #f0f4fc; }
.button.danger, .link-button.danger { color: var(--danger); }
.button[aria-current] { background: var(--soft); border-color: #74a08c; }
button.quiet { background: transparent; border-color: transparent; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--muted); font-size: .88rem; margin-bottom: .95rem; }
.breadcrumbs > a + a::before { content: "/"; margin-right: .5rem; color: var(--muted); }
.page-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.05rem; }
.page-header p { color: var(--muted); margin-top: .35rem; }
.toolbar { margin-bottom: .9rem; width: min(100%, 29rem); }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin: .95rem 0; color: var(--muted); font-size: .86rem; }
.empty { padding: 1.2rem; color: var(--muted); }
.topic-flags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .28rem; }
.topic-flags:empty { display: none; }
.topic-flags span, .staff-label {
  display: inline-flex; align-items: center; gap: .2rem; border-radius: 4px; padding: .1rem .37rem;
  background: var(--soft); color: var(--accent-dark); font-size: .75rem; font-weight: 800;
}
.topic-flags .lang-flag { text-transform: uppercase; }
.topic-header h1 { margin-top: .22rem; }
.topic-admin { margin: .75rem 0; padding: .6rem .8rem; }
.topic-admin summary { font-size: .88rem; font-weight: 800; }
.topic-admin form, .admin-row form, .admin-tabs { display: flex; flex-wrap: wrap; gap: .42rem; }
.topic-admin form { margin-top: .7rem; }
.topic-admin select { padding: .35rem .52rem; font-size: .85rem; }
.post { display: grid; grid-template-columns: 152px minmax(0,1fr); margin: .75rem 0; }
.post:target { outline: 2px solid #7da896; }
.post-author {
  border-radius: 10px 0 0 10px; background: #eef5f0; border-right: 1px solid var(--line);
  padding: 1rem .7rem; display: flex; align-items: center; flex-direction: column; gap: .45rem; text-align: center;
}
.avatar-link { display: inline-flex; align-items: center; }
.avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover; background: #dbece3; color: #2b594b; display: inline-grid; place-items: center; font-weight: 800; }
.avatar.staff { background: #316454; color: #fff; }
.post-author .avatar { width: 62px; height: 62px; font-size: 1.25rem; }
.author-name { font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.post-content { min-width: 0; padding: .9rem 1.15rem; }
.post-meta { display: flex; justify-content: space-between; gap: .55rem; color: var(--muted); font-size: .81rem; padding-bottom: .66rem; margin-bottom: .78rem; border-bottom: 1px solid #e6efe8; }
.markdown { overflow-wrap: anywhere; overflow-x: auto; }
.markdown > :first-child { margin-top: 0; }
.markdown > :last-child { margin-bottom: 0; }
.markdown h2 { font-size: 1.32rem; margin: 1.2rem 0 .58rem; }
.markdown h3 { font-size: 1.08rem; margin: 1rem 0 .55rem; }
.markdown p, .markdown blockquote { margin: .7rem 0; }
.markdown ul, .markdown ol { padding-left: 1.45rem; }
.markdown img { display: block; max-width: 100%; height: auto; border-radius: 6px; }
.markdown img[src$="guide-party-colors.webp"] { max-width: min(100%, 413px); aspect-ratio: 413 / 395; }
.markdown img[src$="guide-dps-meter.webp"] { aspect-ratio: 1198 / 461; }
.markdown a { text-decoration: underline; text-underline-offset: .14em; }
.markdown table { width: max-content; min-width: min(100%, 38rem); border-collapse: collapse; margin-block: .75rem; }
.markdown td, .markdown th { padding: .46rem .58rem; border: 1px solid var(--line); text-align: left; }
.markdown th { background: var(--soft); }
.markdown blockquote { border-left: 3px solid #87ad9c; padding-left: .8rem; color: var(--muted); }
.markdown pre { overflow: auto; padding: .7rem; background: var(--soft); border-radius: 5px; }
.post-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; margin-top: .8rem; font-size: .84rem; }
.post-actions form { display: flex; flex-wrap: wrap; gap: .7rem; }
.link-button { display: inline; font: inherit; color: var(--accent-dark); border: 0; background: transparent; padding: 0; }
.link-button:hover { text-decoration: underline; }
.edited { margin-top: .55rem; color: var(--muted); font-size: .77rem; }
.callout { margin-top: .85rem; padding: .85rem 1rem; }
.form-panel { width: min(100%, 33rem); padding: clamp(1.02rem, 3vw, 1.65rem); }
.form-panel.wide, .form-panel.reply-form { width: min(100%, 58rem); }
.auth-panel { margin: .7rem auto; }
.form-panel h1 { font-size: clamp(1.75rem, 4vw, 2.15rem); margin-bottom: .78rem; }
.form-panel h2 { margin-bottom: .65rem; }
.form-panel p { margin: .55rem 0; }
.form-panel form + form, .auth-form { margin-top: .8rem; }
.form-panel label { display: grid; font-size: .91rem; font-weight: 800; margin: .68rem 0 .8rem; gap: .3rem; }
.form-panel label small { color: var(--muted); font-weight: 600; }
.form-panel input:not([type=hidden]), .form-panel textarea { width: 100%; font-weight: 500; }
.form-panel select { width: fit-content; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: .68rem; }
.form-actions > span, .muted { color: var(--muted); font-size: .87rem; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .45rem; margin-top: .7rem; font-size: .85rem; }
.notice { padding: .55rem .75rem; border-radius: 5px; background: var(--soft); color: var(--accent-dark); margin: .55rem 0; }
.profile-card { display: flex; flex-wrap: wrap; align-items: center; gap: .95rem; padding: 1.1rem; }
.profile-card .avatar { width: 72px; height: 72px; font-size: 1.5rem; }
.profile-card .button { margin-left: auto; }
.profile-card p { color: var(--muted); margin-top: .3rem; }
.profile-card .bio { white-space: pre-wrap; color: var(--ink); }
.profile-activity, .settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; margin-top: 1rem; }
.profile-activity h2 { margin-bottom: .65rem; }
.profile-activity .topic-row { grid-template-columns: minmax(0,1fr) 4rem; }
.profile-activity .topic-row .last-item { display: none; }
.admin-tabs { margin: .55rem 0 .9rem; }
.admin-row { padding: .75rem 1rem; display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.admin-user { min-width: 9.5rem; display: grid; gap: .2rem; }
.admin-user a { font-weight: 800; }
.admin-user span { font-size: .81rem; color: var(--muted); }
.admin-row form { margin-left: auto; }
.report-row { grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .5rem; }
.site-footer { border-top: 1px solid #cadaD1; background: #e9f1eb; }
.footer-layout { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .55rem; padding-block: 1.1rem; font-size: .82rem; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 960px) {
  .shell { width: calc(100% - 2rem); }
  .header-layout { gap: .7rem; }
  .site-nav, .account-nav { gap: .35rem; }
  .board-grid { grid-template-columns: minmax(0,1fr) minmax(225px, 260px); gap: .8rem; }
  .section-row, .topic-row { gap: .62rem; padding-inline: .85rem; }
}
@media (max-width: 760px) {
  .hero { background-size: cover, max(88vw, 520px) auto; }
  .hero-content { min-height: 150px; }
  .board-grid, .profile-activity, .settings-grid { grid-template-columns: minmax(0,1fr); }
  .board-sidebar { display: contents; }
  .sidebar-search { grid-row: 1; }
  .header-layout { grid-template-columns: auto 1fr; gap: .25rem .4rem; padding: .22rem 0 .45rem; }
  .brand { grid-area: 1 / 1; }
  .brand img { width: 115px; }
  .site-nav { grid-area: 2 / 1 / 3 / 3; }
  .account-nav { grid-area: 1 / 2; }
  .site-nav > a { min-height: 34px; padding-inline: .5rem; font-size: .85rem; }
}
@media (max-width: 520px) {
  .shell { width: calc(100% - 1.25rem); }
  .main { padding-top: .9rem; }
  .hero-content { min-height: 124px; }
  .section-row, .topic-row { grid-template-columns: minmax(0,1fr) 3.25rem; row-gap: .3rem; padding: .72rem .72rem; }
  .section-row .last-item { grid-column: 1 / -1; margin-left: 2.95rem; }
  .topic-row .last-item { grid-column: 1 / -1; }
  .section-icon { width: 36px; height: 36px; }
  .section-main { gap: .69rem; }
  .last-item { display: flex; flex-wrap: wrap; gap: .18rem .43rem; }
  .last-item a { max-width: 100%; white-space: normal; }
  .post { display: block; }
  .post-author { flex-direction: row; padding: .62rem .7rem; border: 0; border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; }
  .post-author .avatar { width: 37px; height: 37px; font-size: .95rem; }
  .post-content { padding: .7rem .75rem; }
  .profile-card .button, .admin-row form { margin-left: 0; }
}
