/* Force Mu forums (forum.<domain>): their own site and look, a light vBulletin style skin in red and black. */

@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Heebo"; src: url("../fonts/heebo-hebrew.woff2") format("woff2"); font-weight: 300 800; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; src: url("../fonts/heebo-latin.woff2") format("woff2"); font-weight: 300 800; font-display: swap; 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 {
  --page: #e4e4e7;
  --card: #ffffff;
  --row: #ffffff;
  --row-alt: #f6f6f8;
  --row-hover: #fff4f5;
  --line: #dddde1;
  --line-2: #c6c6cc;
  --text: #1d1d22;
  --text-2: #45454d;
  --muted: #7b7b84;
  --red: #c8102e;
  --red-2: #e0283c;
  --red-dark: #8f0d19;
  --link: #b00f22;
  --dark: #17171b;
  --dark-2: #26262d;
  --ok: #1fa456;
  --gold: #d49b1c;
  --body: "Heebo", "Segoe UI", Tahoma, Arial, sans-serif;
  --display: "Cinzel", Georgia, serif;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 14px rgba(0, 0, 0, .07);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--page); color: var(--text); font: 14px/1.55 var(--body); }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--red-2); text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.3; font-weight: 800; }
p { margin: 0 0 .8em; }
code { font-family: Consolas, "Cascadia Mono", monospace; font-size: .9em; background: #f0f0f3; border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; }
bdi { unicode-bidi: isolate; }
.muted { color: var(--muted); }
.small { font-size: .86em; }
.num { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.inline-form { display: inline; margin: 0; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--link); cursor: pointer; }
.fx-wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 16px; }
.icon-mask { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.15em; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; flex: none; }

/* ------------------------------------------------------------- strip, header, navbar */

.fx-strip { background: #0d0d10; color: #bdbdc4; font-size: 13px; border-bottom: 1px solid #000; }
.fx-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; flex-wrap: wrap; }
.fx-strip-start, .fx-strip-end { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fx-strip a { color: #d9d9de; }
.fx-strip a:hover { color: #fff; text-decoration: none; }
.fx-strip-site { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.fx-strip-status { display: inline-flex; align-items: center; gap: 6px; color: #9b9ba3; }
.fx-strip-link { display: inline-flex; align-items: center; gap: 5px; }
.fx-strip-link.has-new { color: #ff6b78 !important; font-weight: 700; }
.fx-hello strong { color: #fff; }
.fx-pill { display: inline-block; padding: 5px 16px; border-radius: 999px; font: 700 12.5px/1.3 var(--body); color: #fff !important; background: #2b2b33; border: 1px solid #3d3d46; cursor: pointer; }
.fx-pill:hover { background: #393942; text-decoration: none; }
.fx-pill-red { background: linear-gradient(180deg, #e3343f, #a5121f); border-color: #ff6b76 #8f0d19 #6e0b15; box-shadow: 0 0 12px rgba(214, 31, 48, .4); }
.fx-pill-red:hover { background: linear-gradient(180deg, #f0404b, #b81828); }

.fx-header { position: relative; height: 250px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.fx-header-art {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, .25) 0%, rgba(10, 10, 12, .1) 45%, var(--page) 100%),
    linear-gradient(90deg, rgba(10, 10, 12, .85), rgba(10, 10, 12, .2) 35%, rgba(10, 10, 12, .2) 65%, rgba(10, 10, 12, .85)),
    url("../img/banner-knight.jpg") 50% 24% / cover no-repeat;
}
.fx-logo { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; color: #fff; margin-top: -10px; }
.fx-logo:hover { text-decoration: none; color: #fff; }
.fx-logo img { filter: drop-shadow(0 8px 28px rgba(214, 31, 48, .7)); }
.fx-logo-text {
  font: 800 54px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; margin-top: -6px;
  background: linear-gradient(180deg, #ffffff, #e9e3e3 45%, #9c8e90); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .9));
}
.fx-logo-text span { background: linear-gradient(180deg, #ff7a84, #e3192b 55%, #8f0d19); -webkit-background-clip: text; background-clip: text; }
.fx-plaque {
  margin-top: 6px; padding: 5px 34px; font: 800 20px/1.2 var(--body); color: #fff; letter-spacing: .04em;
  background: linear-gradient(180deg, #7d1220, #3d0810); border: 2px solid #c9a35b; border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .2);
  clip-path: polygon(6% 0, 94% 0, 100% 50%, 94% 100%, 6% 100%, 0 50%);
}

.fx-navbar {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: -26px; padding: 6px 10px; border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #ececef 55%, #dcdce0 100%);
  border: 1px solid #bdbdc4; box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}
.fx-tabs { display: flex; flex-wrap: wrap; gap: 2px; }
.fx-tabs a { position: relative; padding: 9px 14px; border-radius: 6px; color: #2b2b31; font-weight: 700; font-size: 14px; }
.fx-tabs a:hover { background: rgba(200, 16, 46, .08); color: var(--red); text-decoration: none; }
.fx-tabs a.active { color: var(--red); }
.fx-tabs a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--red); }
.fx-tab-gold { color: #8a5a00 !important; }
.fx-search { display: flex; align-items: center; background: #fff; border: 1px solid #c3c3c9; border-radius: 999px; padding: 2px 4px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .08); }
.fx-search input { border: 0 !important; box-shadow: none !important; background: transparent !important; width: 210px !important; padding: 6px 10px !important; font-size: 13.5px !important; }
.fx-search button { border: 0; background: none; color: var(--muted); width: 32px; height: 30px; cursor: pointer; display: grid; place-items: center; }
.fx-search button:hover { color: var(--red); }
.fx-nav-toggle, .fx-burger { display: none; }

.fx-main { flex: 1; padding: 14px 0 40px; }
body > .fx-wrap { flex: 1; display: flex; flex-direction: column; }

.fx-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 7px 12px; margin-bottom: 14px; font-size: 13px; color: var(--muted); background: linear-gradient(180deg, #fafafb, #ededf0); border: 1px solid #cfcfd5; border-radius: 6px; }
.fx-crumbs strong { color: var(--text); font-weight: 700; }
.fx-crumbs a { color: var(--text-2); }
.fx-crumb-home { color: var(--red) !important; display: inline-flex; }
.crumb-sep { color: #a0a0a8; }

.fx-footer { margin-top: auto; background: #0f0f12; color: #8d8d95; font-size: 12.5px; border-top: 3px solid var(--red); }
.fx-footer-inner { padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.fx-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.fx-footer a { color: #d0d0d6; font-weight: 600; }
.fx-footer a:hover { color: #fff; }
.fx-footer p { margin: 0; }

/* ------------------------------------------------------------- buttons, badges, alerts, forms */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 18px; border-radius: 6px; border: 1px solid transparent; font: 700 14px/1 var(--body); cursor: pointer; white-space: nowrap; transition: filter .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; }
.btn-red { color: #fff !important; background: linear-gradient(180deg, #e8323f 0%, #c3192a 55%, #9c1220 100%); border-color: #ff5a66 #a5121f #6e0b15; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 3px 10px rgba(200, 16, 46, .3); }
.btn-red:hover { filter: brightness(1.08); }
.btn-ghost { color: var(--text) !important; background: linear-gradient(180deg, #fff, #ececef); border-color: #c3c3c9; }
.btn-ghost:hover { border-color: var(--red); color: var(--red) !important; }
.btn-danger { color: #fff !important; background: linear-gradient(180deg, #555, #333); border-color: #222; }
.btn-danger:hover { background: var(--red-dark); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn.disabled { opacity: .55; pointer-events: none; }

.badge { display: inline-block; font: 700 10.5px/1 var(--body); padding: 3px 7px; border-radius: 3px; vertical-align: middle; }
.badge-pin { color: #fff; background: var(--red); }
.badge-lock { color: #fff; background: #5a5a63; }
.badge-staff { color: #fff; background: var(--red); }

.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 14px; border: 1px solid; }
.alert-error { background: #fdecee; border-color: #f2a3ad; color: #8f0d19; }
.alert-ok { background: #e9f8ef; border-color: #9fdcb7; color: #11643a; }

.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-weight: 700; font-size: 13px; color: var(--text-2); margin-bottom: 5px; }
.field small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
input:not([type=checkbox]):not([type=hidden]):not([type=file]), textarea, select {
  width: 100%; padding: 9px 11px; border-radius: 5px; border: 1px solid #bfbfc6; background: #fff; color: var(--text);
  font: 14px/1.4 var(--body); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06);
}
select { padding: 7px 9px; }
textarea { resize: vertical; min-height: 100px; line-height: 1.55; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200, 16, 46, .15); }
.check { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 14px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.form-actions.center { justify-content: center; }

/* ------------------------------------------------------------- forum home: notice, showcase, announcements */

.forum-notice { padding: 12px 16px; margin-bottom: 14px; border-radius: 8px; text-align: center; color: #e4e4e8; background: linear-gradient(180deg, #24242b, #151519); border: 1px solid #000; box-shadow: var(--shadow); }
.forum-notice strong { color: #fff; display: block; font-size: 15px; }
.forum-notice a { color: #ff6b78; font-weight: 700; }

.fx-showcase { position: relative; height: 150px; margin-bottom: 14px; border-radius: 10px; overflow: hidden; border: 1px solid #000; box-shadow: var(--shadow); background: linear-gradient(90deg, rgba(12, 12, 14, .9) 0%, rgba(12, 12, 14, .35) 45%, rgba(12, 12, 14, .1) 100%), url("../img/art-battle.jpg") 50% 30% / cover no-repeat; display: flex; align-items: center; padding: 0 28px; }
.fx-showcase-text { position: relative; color: #fff; max-width: 520px; }
.fx-showcase-text h2 { font-size: 24px; margin: 0 0 4px; text-shadow: 0 2px 10px #000; }
.fx-showcase-text p { margin: 0 0 10px; color: #e0dcdc; text-shadow: 0 1px 6px #000; }

.announce-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-bottom: 16px; }
.announce { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 10px 44px 44px 10px; background: linear-gradient(180deg, #2a2a31, #17171b); border: 1px solid #000; color: #fff; box-shadow: var(--shadow); }
.announce:hover { text-decoration: none; color: #fff; filter: brightness(1.12); }
.announce-icon { width: 52px; height: 52px; flex: none; border-radius: 50%; border: 3px solid #fff; position: relative; }
.announce-icon::after { content: ""; position: absolute; inset: 11px; background: #fff; -webkit-mask: var(--icon-news) center / contain no-repeat; mask: var(--icon-news) center / contain no-repeat; }
.announce-text { display: flex; flex-direction: column; min-width: 0; }
.announce-text small { color: #ff8a94; font-weight: 700; }
.announce-text strong { font-size: 17px; line-height: 1.3; }
.announce-meta { font-size: 12px; color: #a9a9b1; margin-top: 3px; }

.forum-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: start; }
.forum-main { min-width: 0; }
.forum-actions { display: flex; justify-content: flex-end; margin-bottom: 10px; }

/* ------------------------------------------------------------- category blocks and forum rows */

.forum-section { margin-bottom: 16px; border-radius: 8px; overflow: hidden; background: var(--card); border: 1px solid #b9b9c0; box-shadow: var(--shadow); }
.forum-section-head {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px;
  background: linear-gradient(90deg, rgba(23, 23, 27, .96) 0%, rgba(23, 23, 27, .82) 60%, rgba(60, 8, 16, .75) 100%), url("../img/art-battle.jpg") 50% 40% / cover no-repeat;
  border-bottom: 2px solid var(--red);
}
.forum-section-head h2 { margin: 0; font-size: 17px; color: #fff; text-shadow: 0 1px 3px #000; padding-inline-start: 12px; border-inline-start: 4px solid var(--red-2); line-height: 1.2; }
.collapse-btn { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); background: rgba(0, 0, 0, .3); cursor: pointer; display: grid; place-items: center; padding: 0; }
.collapse-btn span { width: 10px; height: 2px; background: #fff; display: block; }
.forum-section.collapsed [data-collapse-body] { display: none; }
.forum-section.collapsed .collapse-btn span::after { content: ""; display: block; width: 2px; height: 10px; background: #fff; margin: -4px auto 0; }

.forum-table-head, .thread-table-head { display: grid; gap: 14px; padding: 6px 16px; font: 700 12px/1.3 var(--body); color: #5f5f68; background: linear-gradient(180deg, #f4f4f6, #e4e4e8); border-bottom: 1px solid #cfcfd5; }
.forum-table-head { grid-template-columns: minmax(0, 1fr) 70px 70px 240px; }
.forum-table-head span:first-child { padding-inline-start: 66px; }
.thread-table-head { grid-template-columns: 34px minmax(0, 1fr) 66px 66px 200px; }
.thread-table-head a { color: #5f5f68; }

.forum-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 70px 70px 240px; gap: 14px; align-items: center; padding: 14px 16px; background: var(--row); border-top: 1px solid var(--line); }
.forum-row:nth-child(odd) { background: var(--row-alt); }
.forum-row:hover { background: var(--row-hover); }
.forum-table-head + .forum-row { border-top: 0; }
.forum-icon { width: 52px; height: 52px; border-radius: 50%; position: relative; background: radial-gradient(circle at 50% 35%, #45454e, #1c1c21 70%); border: 3px solid #dcdce1; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.forum-icon::after { content: ""; position: absolute; inset: 13px; background: #c9c9cf; -webkit-mask: var(--i, var(--icon-chat)) center / contain no-repeat; mask: var(--i, var(--icon-chat)) center / contain no-repeat; }
.forum-row.unread .forum-icon { background: radial-gradient(circle at 50% 35%, #ff5a66, #a5121f 70%); border-color: #ffc2c8; box-shadow: 0 0 12px rgba(224, 40, 60, .55); }
.forum-row.unread .forum-icon::after { background: #fff; }
.forum-icon.big { width: 64px; height: 64px; }
.forum-icon.big::after { inset: 16px; }
.forum-main-cell { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.forum-name { font-size: 16px; font-weight: 800; color: var(--link); }
.forum-row.unread .forum-name { color: var(--red); }
.forum-desc { color: var(--text-2); font-size: 13px; }
.subforums { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.subforums a { color: var(--text-2); margin-inline-start: 8px; padding-inline-start: 14px; position: relative; }
.subforums a::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; width: 9px; height: 9px; margin-top: -4px; border-radius: 2px; background: #9a9aa2; }
.subforums a.unread::before { background: var(--red); }
.forum-num { font-weight: 700; color: var(--text); }
.forum-last { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 12.5px; color: var(--muted); }
.forum-last-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.45; }
.forum-last-title { color: var(--text); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forum-last a { color: var(--text-2); }

.forum-head { display: flex; align-items: center; gap: 16px; padding: 14px 18px; margin-bottom: 12px; border-radius: 8px; background: var(--card); border: 1px solid #c3c3ca; box-shadow: var(--shadow); }
.forum-head h1 { margin: 0 0 2px; font-size: 24px; color: var(--text); }
.forum-head p { margin: 0; color: var(--text-2); }
.forum-head > div:nth-child(2) { flex: 1; min-width: 0; }
.list-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; font-size: 13px; }

.thread-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 66px 66px 200px; gap: 14px; align-items: center; padding: 10px 16px; background: var(--row); border-top: 1px solid var(--line); }
.thread-row:nth-child(odd) { background: var(--row-alt); }
.thread-row:hover { background: var(--row-hover); }
.thread-row.pinned { background: #fff7e6; }
.thread-table-head + .thread-row { border-top: 0; }
.thread-divider { padding: 5px 16px; font: 700 12px/1.3 var(--body); color: #5f5f68; background: #ececef; border-top: 1px solid var(--line); }
.thread-state { width: 28px; height: 28px; border-radius: 50%; display: inline-block; position: relative; background: radial-gradient(circle at 50% 35%, #55555e, #222227 70%); border: 2px solid #dcdce1; vertical-align: middle; }
.thread-state::after { content: ""; position: absolute; inset: 6px; background: #d6d6db; -webkit-mask: var(--icon-chat) center / contain no-repeat; mask: var(--icon-chat) center / contain no-repeat; }
.thread-state.new { background: radial-gradient(circle at 50% 35%, #ff5a66, #a5121f 70%); border-color: #ffc2c8; }
.thread-state.new::after { background: #fff; }
.thread-state.locked::after { -webkit-mask-image: var(--icon-lock); mask-image: var(--icon-lock); }
.thread-main { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.thread-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.thread-title { font-weight: 700; font-size: 14.5px; color: var(--text); }
.thread-row.unread .thread-title { font-weight: 800; color: var(--link); }
.thread-by { font-size: 12.5px; color: var(--muted); }
.thread-by a { color: var(--text-2); }
.thread-pages a { margin: 0 2px; }
.go-new { font: 800 10px/1 var(--body); padding: 3px 6px; border-radius: 3px; background: var(--red); color: #fff !important; }
.thread-row .num { color: var(--text-2); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--muted); padding: 2px; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend .thread-state { width: 20px; height: 20px; }
.legend .thread-state::after { inset: 4px; }
.box-empty { color: var(--muted); text-align: center; padding: 18px 10px; margin: 0; }
.staff-name { color: var(--red) !important; font-weight: 800; }
.mod-name { color: #1b62c4 !important; font-weight: 800; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #b7b7bd; flex: none; }
.status-dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(31, 164, 86, .18); }
.status-dot.off { background: var(--red); }

/* "What's going on" and the sidebar */
.whats-on-body { display: flex; flex-direction: column; }
.whats-on-block { padding: 12px 16px; border-top: 1px solid var(--line); }
.whats-on-block:first-child { border-top: 0; }
.whats-on-block h3 { font-size: 14px; margin: 0 0 4px; display: flex; align-items: center; gap: 7px; color: var(--text); }
.whats-on-block h3 .icon-mask { color: var(--red); }
.whats-on-block p { margin: 4px 0; font-size: 13px; }
.online-names { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.online-names a { color: var(--text-2); font-weight: 700; }
.stats-inline { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; padding: 0; margin: 4px 0; font-size: 13px; color: var(--muted); }
.stats-inline strong { color: var(--text); }

.forum-side { display: flex; flex-direction: column; gap: 14px; }
.side-box { border-radius: 8px; overflow: hidden; background: var(--card); border: 1px solid #b9b9c0; box-shadow: var(--shadow); }
.side-box-head { padding: 10px 14px; text-align: center; background: linear-gradient(180deg, #2a2a31, #17171b); border-bottom: 2px solid var(--red); }
.side-box-head h2 { margin: 0; font-size: 15px; color: #fff; }
.recent-list { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 6px; background: #f1f1f4; }
.recent-list li { padding: 8px 11px; border-radius: 6px; background: #fff; border: 1px solid #d6d6dc; display: flex; flex-direction: column; gap: 1px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.recent-title { color: var(--text); font-weight: 800; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-meta { font-size: 11.5px; color: var(--muted); }
.recent-meta a { color: var(--link); font-weight: 700; }
.recent-forum { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 3px; background: #ffe5e8; color: var(--red-dark) !important; }
.bb-help { list-style: none; margin: 0; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.bb-help li { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--text-2); }
.bb-help code { direction: ltr; font-size: 11.5px; }

/* ------------------------------------------------------------- thread and posts (vBulletin postbit) */

.thread-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.thread-head h1 { margin: 0; font-size: 24px; }
.mod-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px 12px; margin-bottom: 12px; border-radius: 6px; border: 1px dashed #e0a0a8; background: #fff6f7; }
.mod-label { font-size: 12px; font-weight: 800; color: var(--red); margin-inline-end: auto; }
.mod-move { display: inline-flex; gap: 6px; align-items: center; }
.mod-move select { width: auto; }

.posts { display: flex; flex-direction: column; gap: 14px; margin-bottom: 12px; }
.post { border-radius: 8px; overflow: hidden; background: var(--card); border: 1px solid #b9b9c0; box-shadow: var(--shadow); scroll-margin-top: 20px; }
.post:target { border-color: var(--red); box-shadow: 0 0 0 2px rgba(200, 16, 46, .35); }
.post-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 14px; font-size: 12.5px; color: #cfcfd5; background: linear-gradient(180deg, #2f2f37, #1a1a1f); }
.post-staff .post-head { background: linear-gradient(180deg, #7d1220, #4a0a13); color: #ffdfe3; }
.post-date { display: inline-flex; align-items: center; gap: 6px; }
.post-no { color: #fff; font-weight: 800; }
.post-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); }
.postbit { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 16px 12px; background: linear-gradient(180deg, #f5f5f7, #ececf0); border-inline-end: 1px solid #d3d3d9; }
.postbit-avatar { margin-bottom: 4px; }
.postbit-name { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 800; color: var(--link); word-break: break-word; }
.postbit-title { font-size: 12.5px; color: var(--muted); }
.rank-pips { display: inline-flex; gap: 3px; margin: 3px 0; }
.pip { width: 11px; height: 11px; border-radius: 2px; transform: rotate(45deg); background: #d5d5da; border: 1px solid #bdbdc3; }
.pip.on { background: linear-gradient(180deg, #ff6b76, #a5121f); border-color: #8f0d19; }
.pip.on.staff { background: linear-gradient(180deg, #ffd56a, #b98a1c); border-color: #8a6410; }
.postbit-facts { width: 100%; margin: 8px 0 0; font-size: 12px; display: flex; flex-direction: column; gap: 2px; }
.postbit-facts > div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 8px; border-radius: 4px; background: #fff; border: 1px solid #dcdce1; }
.postbit-facts dt { color: var(--muted); }
.postbit-facts dd { margin: 0; color: var(--text); font-weight: 700; }
.post-content { padding: 16px 20px 14px; min-width: 0; display: flex; flex-direction: column; }
.post-title { font-size: 17px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--text); }
.post-body { color: var(--text); overflow-wrap: anywhere; line-height: 1.75; font-size: 14.5px; flex: 1; }
.post-edited { margin: 14px 0 0; font-size: 12px; color: var(--muted); font-style: italic; }
.signature { margin-top: 16px; padding-top: 10px; border-top: 1px dashed #c9c9cf; font-size: 13px; color: var(--text-2); max-height: 220px; overflow: hidden; }
.post-likes { margin-top: 12px; padding: 6px 10px; border-radius: 5px; background: #fff3f4; border: 1px solid #f3c4ca; font-size: 12.5px; color: var(--text-2); }
.post-likes .icon-mask { color: var(--red); }
.post-likes a { font-weight: 700; }
.post-foot { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 4px; padding: 6px 12px; background: linear-gradient(180deg, #f6f6f8, #e7e7eb); border-top: 1px solid #d3d3d9; }
.post-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 4px; font: 700 12.5px/1 var(--body); color: var(--text-2) !important; background: transparent; border: 1px solid transparent; cursor: pointer; }
.post-btn:hover { color: var(--red) !important; background: #fff; border-color: #d3d3d9; text-decoration: none; }
.post-btn.liked { color: var(--red) !important; }
.post-btn.danger:hover { color: #fff !important; background: var(--red-dark); }

.reply-form, .post-form { padding: 14px 16px; }
.review-list { display: flex; flex-direction: column; }
.review-item { padding: 12px 16px; border-top: 1px solid var(--line); }
.review-item:first-child { border-top: 0; }
.review-head { margin-bottom: 6px; font-size: 13px; }
.report-reason { color: var(--red-dark); margin: 6px 0; font-weight: 600; }
.search-excerpt { margin: 0; color: var(--text-2); font-size: 13.5px; }
.search-form { padding: 14px 16px; display: grid; grid-template-columns: 1fr 240px auto auto; gap: 12px; align-items: end; }
.search-form .field, .search-form .check { margin: 0; }
.preview { margin-bottom: 14px; padding: 12px 14px; border-radius: 6px; border: 1px dashed #c3c3ca; background: #fafafb; }
.preview-label { display: inline-block; margin-bottom: 8px; font: 800 11.5px/1 var(--body); color: var(--red); }
.narrow-section { max-width: 760px; margin-inline: auto; }

/* Editor */
.editor { border: 1px solid #bfbfc6; border-radius: 6px; background: #fff; margin-bottom: 12px; }
.editor:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(200, 16, 46, .12); }
.editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 5px; border-bottom: 1px solid #d3d3d9; background: linear-gradient(180deg, #fbfbfc, #ebebef); border-radius: 6px 6px 0 0; }
.editor-toolbar button { min-width: 30px; height: 30px; padding: 0 7px; border-radius: 4px; border: 1px solid transparent; background: transparent; color: var(--text-2); font: 700 13px/1 var(--body); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.editor-toolbar button:hover { background: #fff; border-color: #c9c9cf; color: var(--red); }
.editor-sep { width: 1px; height: 20px; background: #cfcfd5; margin: 0 4px; }
.editor-drop { position: relative; }
.editor-drop > div { display: none; position: absolute; top: 100%; inset-inline-start: 0; z-index: 20; padding: 6px; background: #fff; border: 1px solid #c3c3ca; border-radius: 6px; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.editor-drop.open > div { display: grid; }
.editor-palette { grid-template-columns: repeat(6, 22px); gap: 4px; }
.editor-palette button { min-width: 22px !important; width: 22px; height: 22px !important; padding: 0 !important; border-radius: 4px !important; border: 1px solid rgba(0, 0, 0, .25) !important; }
.editor-menu { grid-template-columns: 1fr; min-width: 70px; }
.editor-emoji { grid-template-columns: repeat(5, 32px); gap: 2px; }
.editor-emoji button { font-size: 18px; }
.color-swatch { width: 14px; height: 14px; border-radius: 3px; background: linear-gradient(135deg, #ff4251, #ffd34d 50%, #4aa3ff); }
.caret { width: 0; height: 0; border-inline: 4px solid transparent; border-top: 5px solid currentColor; opacity: .7; }
.editor textarea { border: 0 !important; box-shadow: none !important; border-radius: 0 0 6px 6px; min-height: 130px; }

/* Members, profile, online, settings, admin, messages */
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.chip { padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--text-2); background: #fff; border: 1px solid #c9c9cf; }
.chip-sm { padding: 3px 9px; }
.chip:hover { border-color: var(--red); color: var(--red); text-decoration: none; }
.chip.active { color: #fff; background: var(--red); border-color: var(--red-dark); }
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: start; font: 700 12.5px/1 var(--body); color: #5f5f68; padding: 10px 14px; background: linear-gradient(180deg, #f4f4f6, #e4e4e8); border-bottom: 1px solid #cfcfd5; white-space: nowrap; }
.table th a { color: #5f5f68; }
.table td { padding: 9px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table tbody tr:nth-child(even) td { background: var(--row-alt); }
.table tbody tr:hover td { background: var(--row-hover); }
.table .num { text-align: end; }
.member-cell { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; }
.profile-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.profile-card { padding: 20px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.profile-card h1 { font-size: 22px; margin: 8px 0 0; }
.profile-online { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.online-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.online-card { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: #f4f4f6; border: 1px solid #d3d3d9; color: var(--text); font-weight: 700; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.avatar-settings { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.avatar-form { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 200px; }
.admin-list { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.admin-row { display: grid; gap: 10px; align-items: center; }
.admin-sections { grid-template-columns: minmax(0, 1fr) 90px auto; }
.admin-head { font-size: 12px; color: var(--muted); font-weight: 700; }
.admin-buttons { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.admin-forum { padding: 14px; border-radius: 6px; background: var(--row-alt); border: 1px solid var(--line); }
.admin-forum h3 { font-size: 15px; margin: 0 0 8px; }
.admin-new { border-style: dashed; border-color: #e0a0a8; }
.admin-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.admin-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 700; }
.admin-wide { grid-column: span 2; }
.admin-checks { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 10px; }
.admin-checks .check { margin: 0; font-size: 13px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid #c3c3ca; margin-bottom: 14px; }
.tab { padding: 9px 18px; color: var(--text-2); font-weight: 800; border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; margin-bottom: -1px; }
.tab:hover { color: var(--red); text-decoration: none; }
.tab.active { color: var(--text); background: #fff; border-color: #c3c3ca; box-shadow: inset 0 3px 0 var(--red); }
.pm-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pm-top .tabs { flex: 1; margin-bottom: 0; }
.pm-table { display: flex; flex-direction: column; }
.pm-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 160px 140px; gap: 12px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--row); }
.pm-row:nth-child(odd) { background: var(--row-alt); }
.pm-head { font-size: 12px; color: #5f5f68; font-weight: 700; background: linear-gradient(180deg, #f4f4f6, #e4e4e8) !important; border-top: 0; }
.pm-row.unread .pm-subject { font-weight: 800; }
.pm-subject { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-actions { padding: 10px 16px; border-top: 1px solid var(--line); }

.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 3px; margin: 0; }
.pager a, .pager span { min-width: 30px; height: 30px; padding: 0 9px; display: inline-grid; place-items: center; border-radius: 4px; font-weight: 700; font-size: 13px; border: 1px solid #c3c3ca; background: #fff; color: var(--text-2); }
.pager a:hover { border-color: var(--red); color: var(--red); text-decoration: none; }
.pager .current { background: var(--red); border-color: var(--red-dark); color: #fff; }
.pager .pager-gap { border: 0; background: none; }

.avatar-img { display: block; border-radius: 6px; object-fit: cover; background: #fff; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); flex: none; }
.avatar-letter { display: inline-grid; place-items: center; flex: none; border-radius: 6px; font-family: var(--display); font-weight: 800; color: #fff; background: linear-gradient(160deg, #e0283c, #8f0d19 75%); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); text-transform: uppercase; }

/* ------------------------------------------------------------- BBCode */

.bb strong { color: inherit; }
.bb-left { text-align: left; }
.bb-center { text-align: center; }
.bb-right { text-align: right; }
.bb-size-1 { font-size: 10px; }
.bb-size-2 { font-size: 12px; }
.bb-size-3 { font-size: 14.5px; }
.bb-size-4 { font-size: 18px; }
.bb-size-5 { font-size: 24px; }
.bb-size-6 { font-size: 32px; line-height: 1.3; }
.bb-size-7 { font-size: 46px; line-height: 1.2; }
.bb-img { max-width: 100%; height: auto; border-radius: 3px; vertical-align: middle; }
.bb-quote { margin: 10px 0; border: 1px solid #d3d3d9; border-inline-start: 4px solid var(--red); border-radius: 4px; background: #f6f6f8; }
.bb-quote-head { padding: 5px 12px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid #e0e0e4; background: #ececf0; }
.bb-quote-head strong { color: var(--text); }
.bb-quote-link { margin-inline-start: 4px; }
.bb-quote-body { padding: 8px 12px; color: var(--text-2); }
.bb-code { margin: 10px 0; padding: 10px 12px; max-height: 420px; overflow: auto; border-radius: 5px; background: #1b1b20; border: 1px solid #000; font: 13px/1.5 Consolas, "Cascadia Mono", monospace; color: #e8e4dc; text-align: left; white-space: pre; }
.bb-code code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
.bb-spoiler { margin: 10px 0; border: 1px solid #d3d3d9; border-radius: 4px; background: #fafafb; }
.bb-spoiler summary { cursor: pointer; padding: 6px 12px; font-weight: 800; font-size: 13px; color: var(--red); }
.bb-spoiler > div { padding: 4px 12px 10px; }
.bb-list { margin: 6px 0; padding-inline-start: 24px; }
.bb-video { position: relative; width: 100%; max-width: 640px; aspect-ratio: 16 / 9; margin: 10px 0; }
.bb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 6px; }

/* ------------------------------------------------------------- icons */

:root {
  --icon-sword: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 17.5 3 6V3h3l11.5 11.5M13 19l6-6M16 16l4 4M19 21l2-2'/%3E%3C/svg%3E");
  --icon-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
  --icon-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
  --icon-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-7 8-7s8 3 8 7'/%3E%3C/svg%3E");
  --icon-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2 21c0-4 3-7 7-7s7 3 7 7M16 4a4 4 0 0 1 0 8M22 21c0-3-2-6-5-7'/%3E%3C/svg%3E");
  --icon-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
  --icon-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
  --icon-news: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10v4a1 1 0 0 0 1 1h3l6 4V5L7 9H4a1 1 0 0 0-1 1zM16.5 8.5a5 5 0 0 1 0 7M19.5 5.5a9 9 0 0 1 0 13'/%3E%3C/svg%3E");
  --icon-book: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20V2H6.5A2.5 2.5 0 0 0 4 4.5v15A2.5 2.5 0 0 0 6.5 22H20v-5'/%3E%3C/svg%3E");
  --icon-flag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1zM4 22v-7'/%3E%3C/svg%3E");
  --icon-coins: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M18.1 10.4A6 6 0 1 1 10.3 18M7 6h1v4M16.7 13.9l.7.7-2.8 2.8'/%3E%3C/svg%3E");
  --icon-bug: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='6' width='8' height='14' rx='4'/%3E%3Cpath d='M3 13h5M16 13h5M4 7l4 2M20 7l-4 2M4 19l4-2M20 19l-4-2M9.5 3.5 10.5 6M14.5 3.5 13.5 6'/%3E%3C/svg%3E");
  --icon-bulb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 22h4M12 2a7 7 0 0 0-4 12.7V17h8v-2.3A7 7 0 0 0 12 2z'/%3E%3C/svg%3E");
  --icon-help: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.1 9a3 3 0 0 1 5.8 1c0 2-3 3-3 3M12 17h.01'/%3E%3C/svg%3E");
  --icon-coffee: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 8h1a4 4 0 0 1 0 8h-1M3 8h14v9a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4zM6 1v3M10 1v3M14 1v3'/%3E%3C/svg%3E");
  --icon-trophy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v5a5 5 0 0 1-10 0zM17 5h3v2a3 3 0 0 1-3 3M7 5H4v2a3 3 0 0 0 3 3'/%3E%3C/svg%3E");
  --icon-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E");
  --icon-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 2 3.1 6.3 6.9 1-5 4.9 1.2 6.8-6.2-3.2L5.8 21 7 14.2 2 9.3l6.9-1z'/%3E%3C/svg%3E");
  --icon-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 6-10 7L2 6'/%3E%3C/svg%3E");
  --icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  --icon-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 10 9-7 9 7v10a2 2 0 0 1-2 2h-4v-7H9v7H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
  --icon-chart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18M8 17v-5M13 17V8M18 17v-9'/%3E%3C/svg%3E");
  --icon-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 21s-7.5-4.6-10-9.3C.4 8.5 2.2 4 6.3 4c2.4 0 4 1.4 5.7 3.4C13.7 5.4 15.3 4 17.7 4c4.1 0 5.9 4.5 4.3 7.7C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E");
  --icon-quote: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M3 21c3 0 7-1 7-8V5H3v7h4c0 4-1 6-4 6zm11 0c3 0 7-1 7-8V5h-7v7h4c0 4-1 6-4 6z'/%3E%3C/svg%3E");
  --icon-edit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E");
  --icon-trash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4h8v2M19 6l-1 14H6L5 6M10 11v6M14 11v6'/%3E%3C/svg%3E");
}
.icon-sword { --i: var(--icon-sword); }
.icon-clock { --i: var(--icon-clock); }
.icon-shield { --i: var(--icon-shield); }
.icon-user { --i: var(--icon-user); }
.icon-users { --i: var(--icon-users); }
.icon-lock { --i: var(--icon-lock); }
.icon-chat { --i: var(--icon-chat); }
.icon-news { --i: var(--icon-news); }
.icon-book { --i: var(--icon-book); }
.icon-flag { --i: var(--icon-flag); }
.icon-coins { --i: var(--icon-coins); }
.icon-bug { --i: var(--icon-bug); }
.icon-bulb { --i: var(--icon-bulb); }
.icon-help { --i: var(--icon-help); }
.icon-coffee { --i: var(--icon-coffee); }
.icon-trophy { --i: var(--icon-trophy); }
.icon-image { --i: var(--icon-image); }
.icon-star { --i: var(--icon-star); }
.icon-mail { --i: var(--icon-mail); }
.icon-search { --i: var(--icon-search); }
.icon-home { --i: var(--icon-home); }
.icon-chart { --i: var(--icon-chart); }
.icon-heart { --i: var(--icon-heart); }
.icon-quote { --i: var(--icon-quote); }
.icon-edit { --i: var(--icon-edit); }
.icon-trash { --i: var(--icon-trash); }

/* ------------------------------------------------------------- small screens */

@media (max-width: 1020px) {
  .forum-layout, .profile-layout { grid-template-columns: 1fr; }
  .forum-row { grid-template-columns: 52px minmax(0, 1fr) 60px 60px; }
  .forum-table-head { grid-template-columns: minmax(0, 1fr) 60px 60px; }
  .forum-row .forum-last, .forum-table-head span:last-child { display: none; }
  .thread-row, .thread-table-head { grid-template-columns: 30px minmax(0, 1fr) 58px 58px; }
  .thread-row .forum-last, .thread-table-head > :last-child { display: none; }
  .search-form, .admin-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .fx-header { height: 190px; }
  .fx-logo img { width: 74px; height: 74px; }
  .fx-logo-text { font-size: 36px; }
  .fx-plaque { font-size: 16px; }
  .fx-navbar { flex-wrap: wrap; }
  .fx-burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 38px; padding: 9px; border-radius: 6px; border: 1px solid #c3c3ca; cursor: pointer; background: #fff; }
  .fx-burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
  .fx-tabs { display: none; width: 100%; order: 3; flex-direction: column; }
  .fx-nav-toggle:checked ~ .fx-tabs { display: flex; }
  .fx-search { flex: 1; }
  .fx-search input { width: 100% !important; }
  .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .fx-strip-status { display: none; }
  .field-row, .search-form, .admin-grid { grid-template-columns: 1fr; }
  .admin-wide { grid-column: auto; }
  .post-grid { grid-template-columns: 1fr; }
  .postbit { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; text-align: start; border-inline-end: 0; border-bottom: 1px solid #d3d3d9; padding: 10px 12px; }
  .postbit .avatar-img, .postbit .avatar-letter { width: 44px !important; height: 44px !important; font-size: 20px !important; }
  .postbit-facts { display: none; }
  .forum-row { grid-template-columns: 44px minmax(0, 1fr); }
  .forum-icon { width: 44px; height: 44px; }
  .forum-icon::after { inset: 11px; }
  .forum-row .forum-num, .forum-table-head .num { display: none; }
  .forum-table-head { grid-template-columns: 1fr; }
  .thread-row, .thread-table-head { grid-template-columns: 26px minmax(0, 1fr) 54px; }
  .thread-row > .num:nth-of-type(2), .thread-table-head > :nth-child(4) { display: none; }
  .pm-row { grid-template-columns: 24px minmax(0, 1fr) 110px; }
  .pm-row > :last-child { display: none; }
  .fx-showcase { height: 120px; padding: 0 16px; }
  .fx-showcase-text h2 { font-size: 19px; }
}
