/* Force Mu website: red on black and dark grey, right to left. */

@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;
}

@font-face {
  font-family: "Frank Ruhl Libre";
  src: url("../fonts/frankruhl-hebrew.woff2") format("woff2");
  font-weight: 500 900;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

:root {
  --bg: #070708;
  --frame: #0e0e11;
  --panel: #141418;
  --panel-2: #1a1a1f;
  --panel-3: #222228;
  --row: #17171b;
  --row-alt: #1c1c21;
  --line: #26262d;
  --line-2: #34343c;
  --text: #ebe8e6;
  --text-2: #c9c4c3;
  --muted: #8f8a8d;
  --red: #d61f30;
  --red-2: #ff4251;
  --red-3: #8f0d19;
  --red-dark: #3a0a10;
  --red-glow: rgba(214, 31, 48, .35);
  --ok: #38d26f;
  --warn: #f0a23a;
  --gold: #e9b949;
  --radius: 8px;
  --display: "Cinzel", "Frank Ruhl Libre", "David", Georgia, serif;
  --body: "Heebo", "Segoe UI", Arial, sans-serif;
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 10px 28px rgba(0, 0, 0, .45);
}

*, *::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:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(120, 10, 22, .25), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(90, 8, 18, .22), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 14.5px/1.6 var(--body);
}

a { color: var(--red-2); text-decoration: none; transition: color .15s; }
a:hover { color: #ff7c87; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: .02em; line-height: 1.25; margin: 0 0 .5em; }

p { margin: 0 0 1em; }

code { font-family: Consolas, "Cascadia Mono", monospace; font-size: .9em; background: var(--panel-3); border: 1px solid var(--line-2); padding: 1px 6px; border-radius: 5px; color: var(--text); }

.wrap { width: 100%; }
.narrow { max-width: 560px; margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .86em; }
.strong { font-weight: 600; color: #fff; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
bdi { unicode-bidi: isolate; }

/* ------------------------------------------------------------- icons (masks) */

.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; }

/* ------------------------------------------------------------- top navigation */

.topnav {
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(180deg, rgba(20, 20, 24, .97), rgba(10, 10, 12, .97));
  border-bottom: 1px solid #000;
  box-shadow: 0 1px 0 rgba(214, 31, 48, .45), 0 10px 30px rgba(0, 0, 0, .55);
}
.topnav-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 22px; min-height: 62px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.brand-emblem { filter: drop-shadow(0 4px 12px var(--red-glow)); transition: transform .25s; }
.brand:hover .brand-emblem { transform: rotate(-6deg) scale(1.05); }
.brand-text { direction: ltr; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: .08em; line-height: 1; text-transform: uppercase; display: grid; grid-template-columns: auto auto; column-gap: .3em; }
.brand-force { color: var(--red-2); text-shadow: 0 0 18px var(--red-glow); }
.brand-mu { color: #fff; }
.brand-text small { grid-column: 1 / -1; font-size: 9.5px; letter-spacing: .55em; color: var(--muted); font-weight: 600; margin-top: 5px; }

.nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-2); font: 600 14px/1 var(--body); letter-spacing: .02em;
  padding: 10px 12px; border-radius: 6px; background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .nav-drop:hover > .nav-link, .nav-drop:focus-within > .nav-link { color: #fff; background: rgba(255, 255, 255, .05); }
.nav-link.active, .nav-drop.active > .nav-link { color: #fff; }
.nav-link.active::after, .nav-drop.active > .nav-link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -11px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-2), transparent); box-shadow: 0 0 12px var(--red);
}
.caret { width: 0; height: 0; border-inline: 4px solid transparent; border-top: 5px solid currentColor; opacity: .7; }

.nav-drop { position: relative; }
.nav-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 200px; z-index: 70;
  display: none; flex-direction: column; padding: 6px;
  background: #141418; border: 1px solid var(--line-2); border-top: 2px solid var(--red); border-radius: 0 0 8px 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .6);
}
.nav-menu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-drop:hover > .nav-menu, .nav-drop:focus-within > .nav-menu, .nav-drop.open > .nav-menu { display: flex; }
.nav-drop-end .nav-menu { inset-inline-start: auto; inset-inline-end: 0; }
.nav-menu a, .nav-menu-button { display: block; padding: 9px 12px; border-radius: 5px; color: var(--text-2); font: 500 14px/1.3 var(--body); text-align: start; background: none; border: 0; width: 100%; cursor: pointer; }
.nav-menu a:hover, .nav-menu-button:hover { background: rgba(214, 31, 48, .14); color: #fff; }

.nav-user { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.nav-account { gap: 7px; }
.nav-account .icon-mask { color: var(--red-2); }
.nav-icon { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; color: var(--text-2); }
.nav-icon:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.nav-icon .icon-mask { width: 19px; height: 19px; }
.nav-icon.has-new { color: #fff; }
.nav-count { position: absolute; top: 2px; inset-inline-end: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font: 700 11px/18px var(--body); text-align: center; box-shadow: 0 0 10px var(--red-glow); }

.nav-toggle, .nav-burger { display: none; }

.inline-form { display: inline; margin: 0; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.link-button:hover { color: var(--red-2); }

/* ------------------------------------------------------------- banner */

.banner {
  position: relative; overflow: hidden; text-align: center;
  min-height: 230px; display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid #000;
}
.banner-art {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 8, .92) 0%, rgba(7, 7, 8, .35) 30%, rgba(7, 7, 8, .25) 60%, rgba(7, 7, 8, .9) 100%),
    linear-gradient(180deg, rgba(7, 7, 8, .3) 0%, rgba(7, 7, 8, .15) 50%, var(--bg) 100%),
    url("../img/banner-knight.jpg") 50% 22% / cover no-repeat;
  filter: saturate(1.05);
}
.banner-home { min-height: 470px; padding-bottom: 70px; }
.banner-home .banner-art { background-position: 0 0, 0 0, 50% 18%; }
.banner-embers {
  position: absolute; inset: -40% 0 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(2px 2px at 12% 80%, #ff6a5a, transparent),
    radial-gradient(1.5px 1.5px at 28% 60%, #ff8a5a, transparent),
    radial-gradient(2px 2px at 44% 90%, #ff4a4a, transparent),
    radial-gradient(1.5px 1.5px at 61% 70%, #ffa060, transparent),
    radial-gradient(2.5px 2.5px at 77% 85%, #ff5050, transparent),
    radial-gradient(1.5px 1.5px at 90% 65%, #ff9060, transparent);
  background-size: 100% 50%;
  animation: embers 16s linear infinite;
}
@keyframes embers { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .banner-embers, .badge-live, .tag-live { animation: none !important; } }

.banner-inner { position: relative; z-index: 1; padding: 26px 20px; max-width: 760px; }
.banner-logo { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; }
.banner-logo img { filter: drop-shadow(0 10px 40px rgba(214, 31, 48, .6)); }
.banner-title {
  direction: ltr; font: 800 clamp(26px, 5.4vw, 64px)/1.05 var(--display); letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #efe4e4 45%, #a99496 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .8));
}
.banner-title span { background: linear-gradient(180deg, #ff7a84 0%, #e3192b 55%, #8f0d19 100%); -webkit-background-clip: text; background-clip: text; }
.page-inner .banner-title { font-size: clamp(22px, 3.4vw, 38px); }
.banner-tagline { margin: 14px auto 22px; color: #e9e2e1; font-size: 17px; text-shadow: 0 2px 10px #000; max-width: 640px; }
.banner-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.banner-status {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin-top: 8px; padding: 7px 16px; border-radius: 999px; font-size: 13px; color: var(--text-2);
  background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(6px);
}
.banner-status strong { color: #fff; font-variant-numeric: tabular-nums; }
.banner-sep { opacity: .35; }

.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #55555c; flex: none; }
.status-dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(56, 210, 111, .15), 0 0 10px rgba(56, 210, 111, .6); }
.status-dot.off { background: var(--red); box-shadow: 0 0 0 3px rgba(214, 31, 48, .15); }

/* ------------------------------------------------------------- frame */

.frame-outer { flex: 1; padding: 0 14px 50px; }
.frame {
  position: relative; max-width: 1280px; margin: -1px auto 0; padding: 22px;
  background:
    linear-gradient(180deg, rgba(214, 31, 48, .05), transparent 220px),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 14px),
    var(--frame);
  border: 1px solid #222228; border-top: 0;
  box-shadow: 0 0 0 1px #000, 0 30px 80px rgba(0, 0, 0, .7);
}
.frame::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--red), transparent); box-shadow: 0 0 16px var(--red); }
.page-home .frame { margin-top: -70px; border-top: 1px solid #222228; border-radius: 10px 10px 0 0; }

/* Titles of the inner pages (also the older pages' page-head). */
.page-title, .page-head { text-align: center; padding: 8px 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); position: relative; }
.page-title::after, .page-head::after { content: ""; position: absolute; bottom: -1px; left: 50%; width: 160px; margin-left: -80px; height: 1px; background: var(--red); box-shadow: 0 0 10px var(--red); }
.page-title h1, .page-head h1 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 6px; color: #fff; }
.page-title p, .page-head p { color: var(--text-2); margin: 0 auto; max-width: 760px; }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--red-2); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 7px; border: 1px solid transparent;
  font: 700 14.5px/1 var(--body); letter-spacing: .02em;
  cursor: pointer; transition: transform .12s, box-shadow .2s, background .2s, border-color .2s, color .2s;
  white-space: nowrap; user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn-red {
  color: #fff;
  background: linear-gradient(180deg, #f0303f 0%, #c3192a 55%, #9c1220 100%);
  border-color: #ff5a66 #a5121f #6e0b15;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 18px rgba(214, 31, 48, .3);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
}
.btn-red:hover { color: #fff; background: linear-gradient(180deg, #ff4251 0%, #d61f30 55%, #ad1524 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 26px rgba(214, 31, 48, .55); }
.btn-gold {
  color: #fff; background: linear-gradient(180deg, #e3343f, #8f0d19); border-color: #ff8a92 #8f0d19 #5a0710;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 0 18px rgba(214, 31, 48, .55), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.btn-gold:hover { color: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 0 26px rgba(255, 66, 81, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, .03); border-color: var(--line-2); }
.btn-ghost:hover { color: #fff; border-color: var(--red); background: rgba(214, 31, 48, .1); }
.btn-danger { color: #ffb3b9; background: rgba(214, 31, 48, .1); border-color: rgba(214, 31, 48, .5); }
.btn-danger:hover { color: #fff; background: var(--red); }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn.disabled { opacity: .55; pointer-events: none; }

.badge { display: inline-block; font: 700 10.5px/1 var(--body); letter-spacing: .05em; padding: 4px 7px; border-radius: 4px; vertical-align: middle; }
.badge-staff { color: #fff; background: linear-gradient(180deg, var(--red-2), var(--red-3)); box-shadow: 0 0 10px var(--red-glow); }
.badge-live { color: #07130b; background: var(--ok); animation: pulse 1.6s infinite; }
.badge-pin { color: #fff; background: var(--red-3); }
.badge-lock { color: var(--text-2); background: var(--panel-3); border: 1px solid var(--line-2); }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(56, 210, 111, 0), 0 0 14px rgba(56, 210, 111, .7); } }

.panel { position: relative; background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel.empty, .panel .empty { padding: 26px; color: var(--muted); text-align: center; margin: 0; }
.panel.empty p { margin: 0; }

.alert { padding: 11px 14px; border-radius: 7px; margin-bottom: 16px; font-size: 14px; border: 1px solid; }
.alert-error { background: rgba(214, 31, 48, .1); border-color: rgba(214, 31, 48, .45); color: #ffc2c7; }
.alert-ok { background: rgba(56, 210, 111, .08); border-color: rgba(56, 210, 111, .4); color: #b9f3cd; }

/* ------------------------------------------------------------- boxes (home sidebars) */

.box { background: linear-gradient(180deg, #17171c, #121216); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 14px 16px; }
.box-head { display: flex; align-items: center; gap: 10px; margin: -2px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); position: relative; }
.box-head::before { content: ""; position: absolute; bottom: -1px; inset-inline-start: 0; width: 60px; height: 1px; background: var(--red); box-shadow: 0 0 8px var(--red); }
.box-head h2 { flex: 1; margin: 0; font-size: 15.5px; color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.box-head::after { content: ""; width: 30px; height: 30px; flex: none; background: url("../img/emblem.svg") center / contain no-repeat; opacity: .9; filter: drop-shadow(0 0 8px rgba(214, 31, 48, .45)); }
.box-link { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.box-link:hover { color: var(--red-2); }
.box-empty { color: var(--muted); text-align: center; padding: 14px 6px; margin: 0; font-size: 13.5px; }
.box-note { color: var(--muted); font-size: 11.5px; margin: 10px 0 0; text-align: center; }
.box-sub { font: 700 12.5px/1 var(--body); color: var(--text-2); margin: 14px 0 8px; letter-spacing: .03em; }

/* ------------------------------------------------------------- home */

.home { display: grid; grid-template-columns: 272px minmax(0, 1fr) 272px; gap: 18px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.box-server { padding-top: 12px; }
.server-card { display: flex; align-items: center; gap: 12px; padding: 4px 2px 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.server-card img { filter: drop-shadow(0 0 10px var(--red-glow)); }
.server-card-text { display: flex; flex-direction: column; gap: 2px; }
.server-card-text strong { font-family: var(--display); letter-spacing: .06em; color: #fff; font-size: 15px; }
.server-card-text > span { font-size: 12.5px; color: var(--muted); }
.server-list { list-style: none; margin: 0; padding: 0; }
.server-list li { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 9px; align-items: center; padding: 8px 2px; border-top: 1px solid var(--line); }
.server-list li:first-child { border-top: 0; }
.server-list .status-dot { grid-row: 1 / 3; }
.server-name { font-weight: 700; color: #fff; }
.server-state { font: 800 10.5px/1 var(--body); letter-spacing: .06em; padding: 4px 7px; border-radius: 4px; }
.server-state.on { color: #06140b; background: var(--ok); }
.server-state.off { color: #fff; background: var(--red-3); }
.server-players { grid-column: 2 / 4; font-size: 12px; color: var(--muted); }
.server-times { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); text-align: center; }
.server-times strong { color: var(--text); font-variant-numeric: tabular-nums; }

.stat-table { margin: 0; display: flex; flex-direction: column; gap: 3px; }
.stat-table > div { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 4px; background: linear-gradient(270deg, rgba(214, 31, 48, .13), rgba(214, 31, 48, .03)); border: 1px solid rgba(214, 31, 48, .14); font-size: 13px; }
.stat-table dt { color: var(--text-2); }
.stat-table dd { margin: 0; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }

.mini-table { width: 100%; border-collapse: separate; border-spacing: 0 3px; font-size: 13px; }
.mini-table th { font: 700 11.5px/1 var(--body); color: var(--muted); text-align: start; padding: 4px 6px 6px; }
.mini-table td { padding: 6px; background: linear-gradient(270deg, rgba(214, 31, 48, .12), rgba(214, 31, 48, .02)); border-top: 1px solid rgba(214, 31, 48, .12); border-bottom: 1px solid rgba(0, 0, 0, .4); }
.mini-table td:first-child { border-start-start-radius: 4px; border-end-start-radius: 4px; }
.mini-table td:last-child { border-start-end-radius: 4px; border-end-end-radius: 4px; }
.mini-table .num { text-align: end; font-variant-numeric: tabular-nums; font-weight: 700; color: #fff; }
.mini-table .name-cell { font-weight: 600; color: #fff; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-table tbody tr:hover td { background: linear-gradient(270deg, rgba(214, 31, 48, .24), rgba(214, 31, 48, .06)); }

.rank-no { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 5px; font: 800 11.5px/1 var(--body); background: var(--panel-3); color: var(--text-2); border: 1px solid var(--line-2); }
.rank-no.rank-1 { background: linear-gradient(180deg, #ffd56a, #b98a1c); color: #2a1b00; border-color: #ffe28f; box-shadow: 0 0 12px rgba(255, 196, 70, .45); }
.rank-no.rank-2 { background: linear-gradient(180deg, #f2f2f5, #9a9aa3); color: #1a1a1d; border-color: #fff; }
.rank-no.rank-3 { background: linear-gradient(180deg, #e7a06b, #9a5a2b); color: #241104; border-color: #f4bf93; }

.class-tag { display: inline-block; min-width: 34px; text-align: center; font: 800 10px/1 var(--body); letter-spacing: .05em; padding: 4px 5px; border-radius: 4px; color: #fff; background: #3a3a42; }
.class-dw { background: #3d5bd6; }
.class-dk { background: #b9242f; }
.class-elf { background: #2f9e5b; }
.class-mg { background: #7a3fd0; }
.class-dl { background: #b98a1c; color: #1e1400; }
.class-sum { background: #c03f8e; }
.class-rf { background: #d4661e; }

.guild-mark { flex: none; border-radius: 2px; background: #000; box-shadow: 0 0 0 1px var(--line-2); vertical-align: middle; }
.guild-cell { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.mark-empty { display: inline-block; width: 100%; height: 100%; min-width: 18px; min-height: 18px; background: repeating-linear-gradient(45deg, #1c1c21 0 4px, #141418 4px 8px); border: 1px solid var(--line-2); border-radius: 3px; }
.mark-empty.small { width: 18px; height: 18px; }

/* Castle box */
.castle-owner { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 6px; background: radial-gradient(ellipse at 20% 50%, rgba(214, 31, 48, .18), transparent 70%), rgba(0, 0, 0, .25); border: 1px solid rgba(214, 31, 48, .2); }
.castle-mark { width: 80px; height: 80px; flex: none; padding: 2px; background: #000; border: 1px solid #3c2a2c; box-shadow: 0 0 18px rgba(214, 31, 48, .3); display: grid; place-items: center; }
.castle-mark .guild-mark { width: 100%; height: 100%; box-shadow: none; }
.castle-mark.big { width: 136px; height: 136px; }
.castle-owner-text { display: flex; flex-direction: column; min-width: 0; }
.castle-label { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.castle-guild { font: 800 18px/1.2 var(--display); color: #fff; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; }
.castle-guild.big { font-size: 28px; }
.castle-master { color: var(--text-2); font-weight: 600; font-size: 13.5px; }
.castle-wins { margin-top: 4px; font-size: 12px; color: var(--gold); font-weight: 700; }
.reg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.reg-list li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; font-size: 13px; background: rgba(214, 31, 48, .08); border: 1px solid rgba(214, 31, 48, .14); border-radius: 4px; }
.reg-name { flex: 1; font-weight: 600; color: #fff; }
.reg-marks { color: var(--gold); font-weight: 800; font-variant-numeric: tabular-nums; }
.castle-countdown { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 14px 0 12px; padding: 10px; text-align: center; border-radius: 6px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.castle-countdown > span { font-size: 12px; color: var(--muted); }
.castle-countdown strong { font: 800 24px/1.2 var(--display); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.castle-countdown strong .u { font-size: .55em; color: var(--red-2); margin-inline: 1px 6px; }
.castle-countdown small { font-size: 11.5px; color: var(--muted); }
.castle-countdown.running { border-color: rgba(56, 210, 111, .4); }
.castle-countdown.running strong { color: var(--ok); }
.castle-countdown.big strong { font-size: 34px; }

.crew-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.crew-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 9px; font-size: 13px; border-radius: 4px; background: rgba(214, 31, 48, .08); border: 1px solid rgba(214, 31, 48, .12); }
.crew-title { color: var(--muted); }
.crew-name { font-weight: 700; }
.crew-name.staff { color: var(--red-2); text-shadow: 0 0 10px var(--red-glow); }
.crew-name.mod { color: #6fb7ff; }

.event-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.event-list li { padding: 7px 9px; border-radius: 5px; background: linear-gradient(270deg, rgba(214, 31, 48, .1), rgba(214, 31, 48, .02)); border: 1px solid rgba(214, 31, 48, .12); }
.event-list li.running { background: linear-gradient(270deg, rgba(56, 210, 111, .18), rgba(56, 210, 111, .03)); border-color: rgba(56, 210, 111, .45); }
.event-list li.next { background: linear-gradient(270deg, rgba(214, 31, 48, .3), rgba(214, 31, 48, .06)); border-color: rgba(255, 66, 81, .45); }
.event-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.event-title { font-weight: 700; color: #fff; font-size: 13.5px; }
.event-sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.event-count { font: 700 13px/1 var(--body); color: #fff; font-variant-numeric: tabular-nums; }
.event-list li.running .event-count { color: var(--ok); }
.event-tag { font: 800 10px/1 var(--body); letter-spacing: .05em; padding: 3px 7px; border-radius: 999px; }
.tag-live { color: #06140b; background: var(--ok); animation: pulse 1.6s infinite; }
.tag-next { color: #fff; background: var(--red); }

.box-login .login-box { display: flex; flex-direction: column; gap: 9px; }
.input-icon { position: relative; display: block; }
.input-icon::before { content: ""; position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: var(--muted); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; pointer-events: none; }
.icon-user-field { --i: var(--icon-user); }
.icon-lock-field { --i: var(--icon-lock); }
.input-icon input { padding-right: 36px !important; } /* the inputs are left to right: the icon sits at their end */
.login-links { display: flex; justify-content: space-between; font-size: 12.5px; }
.login-links a { color: var(--text-2); }
.login-links a:hover { color: var(--red-2); }
.box-login .human-field, .box-login .captcha-field { margin: 0; display: flex; flex-direction: column; align-items: center; }
.box-login .captcha-field label { display: none; }
.box-login .captcha-image { width: 100%; height: auto; max-width: 190px; }
.box-login .captcha-input { max-width: none; }
.welcome-user { margin: 0 0 10px; color: var(--text-2); }
.welcome-user strong { color: #fff; }
.account-links { display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px; }
.account-links a { padding: 8px 10px; border-radius: 5px; color: var(--text-2); background: rgba(214, 31, 48, .07); border: 1px solid rgba(214, 31, 48, .12); font-size: 13.5px; }
.account-links a:hover { color: #fff; background: rgba(214, 31, 48, .18); }

.discord-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 6px; color: #fff; background: linear-gradient(135deg, #5865f2, #3c45a5); }
.discord-card:hover { color: #fff; filter: brightness(1.1); }
.discord-card .social { width: 34px; height: 34px; background: #fff; }
.discord-card span { display: flex; flex-direction: column; }
.discord-card small { opacity: .85; font-size: 12px; }

/* Middle column */
.welcome { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: #101013; }
.welcome-art { height: 210px; background: linear-gradient(180deg, transparent 40%, #101013 100%), url("../img/art-battle.jpg") 50% 30% / cover no-repeat; }
.welcome-body { padding: 0 26px 22px; margin-top: -40px; position: relative; text-align: center; }
.welcome h1 { font-size: clamp(22px, 2.6vw, 30px); color: #fff; text-shadow: 0 2px 14px #000; text-transform: uppercase; }
.welcome p { color: var(--text-2); max-width: 620px; margin-inline: auto; }
.welcome-strong { color: #fff !important; font-weight: 700; }
.quick-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; font-size: 13.5px; }
.quick-links a { color: var(--red-2); font-weight: 600; padding: 0 10px; border-inline-start: 1px solid var(--line-2); }
.quick-links a:first-child { border-inline-start: 0; }
.quick-links a:hover { color: #fff; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.feature { padding: 14px 12px; text-align: center; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(214, 31, 48, .08), transparent 70%), var(--panel); box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.feature:hover { transform: translateY(-2px); border-color: rgba(214, 31, 48, .5); }
.feature h3 { font-size: 14px; margin: 8px 0 4px; color: #fff; }
.feature p { color: var(--muted); font-size: 12.5px; margin: 0; line-height: 1.45; }
.feature-icon { display: inline-block; width: 38px; height: 38px; border-radius: 9px; background: linear-gradient(180deg, rgba(214, 31, 48, .32), rgba(214, 31, 48, .08)); border: 1px solid rgba(214, 31, 48, .45); position: relative; }
.feature-icon::after { content: ""; position: absolute; inset: 9px; background: #ff6b76; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }

.main-block { background: linear-gradient(180deg, #17171c, #121216); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line); position: relative; }
.block-head::before { content: ""; position: absolute; bottom: -1px; inset-inline-start: 0; width: 80px; height: 1px; background: var(--red); box-shadow: 0 0 8px var(--red); }
.block-head h2 { margin: 0; font-size: 18px; color: #fff; }

.news-card { display: flex; gap: 14px; padding: 14px; border-radius: 6px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); margin-bottom: 10px; transition: border-color .2s; }
.news-card:last-child { margin-bottom: 0; }
.news-card:hover { border-color: rgba(214, 31, 48, .5); }
.news-icon { width: 46px; height: 46px; flex: none; border-radius: 50%; background: linear-gradient(180deg, var(--red-2), var(--red-3)); box-shadow: 0 0 16px var(--red-glow); position: relative; }
.news-icon::after { content: ""; position: absolute; inset: 12px; background: #fff; -webkit-mask: var(--icon-news) center / contain no-repeat; mask: var(--icon-news) center / contain no-repeat; }
.news-content { min-width: 0; flex: 1; }
.news-card h3 { font-size: 17px; margin: 0 0 4px; }
.news-card h3 a { color: #fff; }
.news-card h3 a:hover { color: var(--red-2); }
.news-card p { color: var(--text-2); margin: 8px 0 6px; font-size: 14px; }
.news-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.news-date { color: var(--red-2); font-weight: 700; }
.news-more { font-size: 13px; font-weight: 700; }

.activity-list { list-style: none; margin: 0; padding: 0; }
.activity-list li { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-top: 1px solid var(--line); }
.activity-list li:first-child { border-top: 0; }
.activity-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.activity-title { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-title:hover { color: var(--red-2); }
.activity-meta { font-size: 12px; color: var(--muted); }
.activity-meta a { color: var(--text-2); }
.activity-count { min-width: 30px; text-align: center; padding: 3px 6px; border-radius: 4px; background: var(--panel-3); font-size: 12px; font-weight: 700; color: var(--text-2); }

/* ------------------------------------------------------------- avatars */

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

/* ------------------------------------------------------------- forms */

.form-panel { padding: 24px; }
.form-panel.compact { padding: 18px; margin-bottom: 16px; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-weight: 700; font-size: 13px; letter-spacing: .03em; color: var(--text-2); margin-bottom: 6px; }
.optional { color: var(--muted); font-weight: 400; letter-spacing: 0; }
.field small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 5px; }
input:not([type=checkbox]):not([type=hidden]):not([type=file]), textarea, select {
  width: 100%; padding: 10px 12px; border-radius: 6px;
  border: 1px solid var(--line-2); background: #0b0b0e; color: #fff;
  font: 14.5px/1.4 var(--body);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
select { padding: 8px 10px; }
textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--red); background: #101014; box-shadow: 0 0 0 3px rgba(214, 31, 48, .2); }
input[dir=ltr] { text-align: left; }
input::placeholder, textarea::placeholder { color: #6d686c; }
.hp-field { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.captcha-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.captcha-image { border-radius: 6px; border: 1px solid var(--line-2); background: #1c181a; }
.captcha-input { text-align: center; text-transform: uppercase; letter-spacing: .35em; font-weight: 700 !important; max-width: 240px; }
.human-field { display: flex; justify-content: center; min-height: 78px; }
.check { display: flex; align-items: flex-start; gap: 9px; margin: 4px 0 16px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.form-foot { text-align: center; margin: 14px 0 0; font-size: 14px; color: var(--text-2); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.form-actions.center { justify-content: center; }

.auth-layout { display: grid; grid-template-columns: minmax(0, 520px) 300px; gap: 20px; justify-content: center; align-items: start; }
.auth-layout.single { grid-template-columns: minmax(0, 520px); }
.auth-side { padding: 22px; background: linear-gradient(180deg, rgba(214, 31, 48, .12), transparent 60%), var(--panel); }
.auth-side h2 { font-size: 18px; color: #fff; }
.tick-list { list-style: none; padding: 0; margin: 0 0 18px; }
.tick-list li { position: relative; padding: 6px 0; padding-inline-start: 26px; color: var(--text-2); border-bottom: 1px solid var(--line); }
.tick-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 11px; width: 12px; height: 7px; border: solid var(--red-2); border-width: 0 0 2px 2px; transform: rotate(-45deg); }

.success-panel { text-align: center; }
.success-panel h2 { font-size: 24px; color: #fff; }
.success-panel .form-actions { justify-content: center; }
.success-mark { width: 62px; height: 62px; margin: 4px auto 14px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #ff5966, #9c1220); box-shadow: 0 0 30px var(--red-glow); position: relative; }
.success-mark::after { content: ""; position: absolute; left: 23px; top: 14px; width: 14px; height: 26px; border: solid #fff; border-width: 0 5px 5px 0; transform: rotate(45deg); }

/* ------------------------------------------------------------- tables, tabs, chips */

.table-panel { padding: 6px 0; margin-bottom: 16px; }
.table-title { font-size: 15px; padding: 14px 18px 6px; margin: 0; color: #fff; }
.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: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line-2); white-space: nowrap; background: rgba(0, 0, 0, .2); }
.table th a { color: var(--text-2); }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td.wrap-cell { white-space: normal; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .012); }
.table tbody tr:hover td { background: rgba(214, 31, 48, .07); }
.table .num { text-align: end; font-variant-numeric: tabular-nums; }
.rank-table tr.top td { background: linear-gradient(270deg, rgba(214, 31, 48, .1), transparent 60%); }

.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line-2); margin-bottom: 16px; }
.tab { padding: 10px 18px; color: var(--text-2); font: 700 15px/1 var(--display); letter-spacing: .02em; border: 1px solid transparent; border-bottom: 0; border-radius: 7px 7px 0 0; margin-bottom: -1px; }
.tab:hover { color: #fff; }
.tab.active { color: #fff; background: var(--panel-2); border-color: var(--line-2); box-shadow: inset 0 2px 0 var(--red); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip { padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--panel); border: 1px solid var(--line-2); }
.chip-sm { padding: 4px 10px; }
.chip:hover { color: #fff; border-color: var(--red); }
.chip.active { color: #fff; background: linear-gradient(180deg, var(--red), var(--red-3)); border-color: var(--red-2); box-shadow: 0 0 14px var(--red-glow); }

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

/* ------------------------------------------------------------- events page, download, info, account */

.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.event-card { padding: 18px 20px; overflow: hidden; }
.event-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--red-3), var(--red-2), var(--red-3)); opacity: .7; }
.event-card.running { border-color: rgba(56, 210, 111, .45); box-shadow: var(--shadow), 0 0 26px rgba(56, 210, 111, .12); }
.event-card.running::before { background: linear-gradient(90deg, #1d7a43, var(--ok), #1d7a43); }
.event-top { display: flex; justify-content: space-between; align-items: center; min-height: 22px; }
.event-kind { font-size: 13px; color: var(--muted); font-weight: 700; }
.event-name { font-size: 19px; margin: 8px 0 12px; color: #fff; }
.event-countdown { padding: 11px 13px; border-radius: 7px; background: #0b0b0e; border: 1px solid var(--line-2); margin-bottom: 12px; display: flex; justify-content: space-between; align-items: baseline; }
.event-label { font-size: 13px; color: var(--muted); font-weight: 700; }
.event-countdown strong { font: 800 19px/1 var(--display); color: var(--red-2); font-variant-numeric: tabular-nums; }
.event-card.running .event-countdown strong { color: var(--ok); }
.event-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13.5px; }
.event-facts dt { color: var(--muted); }
.event-facts dd { margin: 0; color: var(--text-2); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 12px; }
.section-head h2 { font-size: 20px; margin: 0; }
.section-link { font-size: 13px; font-weight: 600; }
.side-title { font-size: 15.5px; margin: 0 0 12px; color: #fff; }
.account-grid, .download-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.download-main, .download-side { padding: 22px; }
.download-main h2 { font-size: 19px; }
.download-item { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 8px; background: #0b0b0e; border: 1px solid var(--line-2); margin-bottom: 20px; }
.download-icon { width: 44px; height: 44px; flex: none; border-radius: 10px; background: linear-gradient(180deg, var(--red-2), var(--red-3)); box-shadow: 0 0 18px var(--red-glow); position: relative; }
.download-icon::after { content: ""; position: absolute; inset: 11px; background: #fff; -webkit-mask: var(--icon-download) center / contain no-repeat; mask: var(--icon-download) center / contain no-repeat; }
.download-text { flex: 1; display: flex; flex-direction: column; }
.download-text p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-block: 4px 16px; padding-inline-start: 48px; color: var(--text-2); }
.steps li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 800 14px/1 var(--display); color: #fff; background: var(--panel-3); border: 1px solid var(--red); box-shadow: 0 0 12px var(--red-glow); }
.steps li strong { color: #fff; }
.req-list { list-style: none; margin: 0; padding: 0; }
.req-list li { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.req-list li:first-child { border-top: 0; }
.req-list span { color: var(--muted); }
.req-list strong { color: var(--text); text-align: end; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-grid > .panel { padding: 20px 22px; }
.info-wide { grid-column: 1 / -1; }
.rules { margin: 0; padding-inline-start: 22px; color: var(--text-2); }
.rules li { margin-bottom: 10px; padding-inline-start: 6px; }
.rules li::marker { color: var(--red-2); font-weight: 800; }
.rules strong { color: #fff; }
.error-page { text-align: center; padding-top: 40px; }
.error-code { font: 800 clamp(90px, 18vw, 160px)/1 var(--display); background: linear-gradient(180deg, #ff6b76, #8f0d19); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 10px 40px var(--red-glow)); }
.error-page p { color: var(--text-2); }

/* ------------------------------------------------------------- castle siege page */

.cs-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; margin-bottom: 16px; align-items: start; }
.cs-bottom { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
.cs-owner-body { display: flex; gap: 16px; align-items: center; }
.cs-owner-body p { margin: 4px 0 0; color: var(--text-2); }
.phase-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.phase-list li { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 5px; background: rgba(214, 31, 48, .07); border: 1px solid rgba(214, 31, 48, .12); }
.phase-list li.current { background: rgba(56, 210, 111, .12); border-color: rgba(56, 210, 111, .45); }
.phase-when { min-width: 62px; text-align: center; font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.phase-when strong { font-size: 15px; color: #fff; font-variant-numeric: tabular-nums; }
.phase-text { display: flex; flex-direction: column; font-size: 13.5px; }
.phase-text strong { color: #fff; }
.phase-text .event-tag { align-self: flex-start; margin: 3px 0; }
.phase-text small { color: var(--muted); font-size: 12px; }

/* ------------------------------------------------------------- forum: bar, notices */

.forum-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 8px 10px; margin-bottom: 10px; border-radius: 7px; background: linear-gradient(180deg, #1d1d23, #141418); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.forum-tabs { display: flex; flex-wrap: wrap; gap: 2px; }
.forum-tabs a { padding: 7px 11px; border-radius: 5px; color: var(--text-2); font-weight: 600; font-size: 13.5px; }
.forum-tabs a:hover { color: #fff; background: rgba(214, 31, 48, .14); }
.forum-search { display: flex; align-items: center; background: #0b0b0e; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 4px; }
.forum-search input { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 6px 10px !important; width: 200px !important; font-size: 13.5px !important; }
.forum-search button { border: 0; background: none; color: var(--muted); width: 32px; height: 30px; cursor: pointer; display: grid; place-items: center; }
.forum-search button:hover { color: var(--red-2); }
.forum-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px 12px; margin-bottom: 16px; border-radius: 6px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.forum-crumbs strong { color: #fff; font-weight: 600; }
.crumb-sep { color: var(--muted); }
.forum-crumbs .icon-mask { color: var(--red-2); }
.forum-notice { padding: 12px 16px; margin-bottom: 16px; border-radius: 7px; text-align: center; background: linear-gradient(180deg, rgba(214, 31, 48, .16), rgba(214, 31, 48, .05)); border: 1px solid rgba(214, 31, 48, .35); color: var(--text-2); }
.forum-notice strong { color: #fff; display: block; margin-bottom: 2px; }

.announce-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-bottom: 18px; }
.announce { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 40px 10px 10px 40px; background: linear-gradient(90deg, #1d1d23, #121216); border: 1px solid var(--line-2); color: var(--text); box-shadow: var(--shadow); }
[dir=rtl] .announce { border-radius: 10px 40px 40px 10px; }
.announce:hover { border-color: var(--red); color: var(--text); }
.announce-icon { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 2px solid var(--red-2); position: relative; box-shadow: 0 0 14px var(--red-glow); }
.announce-icon::after { content: ""; position: absolute; inset: 10px; 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: var(--red-2); font-weight: 700; }
.announce-text strong { color: #fff; font-size: 16px; line-height: 1.3; }
.announce-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }

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

/* ------------------------------------------------------------- forum: sections and rows */

.forum-section { margin-bottom: 16px; border-radius: 8px; overflow: hidden; border: 1px solid #2a2a31; background: var(--panel); box-shadow: var(--shadow); }
.forum-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px; background: linear-gradient(180deg, #3b0b12 0%, #22070b 100%), var(--red-dark); border-bottom: 1px solid #000; box-shadow: inset 0 1px 0 rgba(255, 120, 130, .18); }
.forum-section-head h2 { margin: 0; font-size: 16px; color: #fff; text-shadow: 0 1px 2px #000; }
.collapse-btn { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .3); cursor: pointer; display: grid; place-items: center; }
.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 { box-shadow: 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: 7px 16px; font: 700 12px/1.2 var(--body); color: var(--muted); background: #101013; border-bottom: 1px solid var(--line); }
.forum-table-head { grid-template-columns: minmax(0, 1fr) 76px 76px 230px; }
.forum-table-head span:first-child { padding-inline-start: 58px; }
.thread-table-head { grid-template-columns: 34px minmax(0, 1fr) 70px 70px 190px; }
.thread-table-head a { color: var(--muted); }
.thread-table-head a:hover { color: #fff; }
.num { text-align: center; }

.forum-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 76px 76px 230px; gap: 14px; align-items: center; padding: 13px 16px; border-top: 1px solid var(--line); background: var(--row); transition: background .12s; }
.forum-row:nth-child(odd) { background: var(--row-alt); }
.forum-row:hover { background: #211b1d; }
.forum-table-head + .forum-row { border-top: 0; }
.forum-icon { width: 44px; height: 44px; border-radius: 50%; position: relative; background: radial-gradient(circle at 50% 35%, #2c2c33, #16161a); border: 1px solid var(--line-2); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .6); }
.forum-icon::after { content: ""; position: absolute; inset: 11px; background: #77727a; -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%, #ff4b5a, #8f0d19); border-color: #ff7a84; box-shadow: 0 0 16px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, .3); }
.forum-row.unread .forum-icon::after { background: #fff; }
.forum-icon.big { width: 58px; height: 58px; }
.forum-icon.big::after { inset: 14px; background: var(--red-2); }
.forum-main-cell { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.forum-name { font: 700 15.5px/1.3 var(--body); color: #fff; }
.forum-name:hover { color: var(--red-2); }
.forum-row.unread .forum-name { color: #ff8892; }
.forum-desc { color: var(--muted); font-size: 13px; }
.subforums { font-size: 12.5px; color: var(--muted); }
.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: 8px; height: 8px; margin-top: -4px; border-radius: 2px; background: #4a4a52; }
.subforums a.unread::before { background: var(--red-2); }
.forum-num { font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.forum-last { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 12.5px; }
.forum-last-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.forum-last-title { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forum-last-title:hover { color: var(--red-2); }
.forum-last a { color: var(--text-2); }

.forum-head { display: flex; align-items: center; gap: 16px; padding: 16px 18px; margin-bottom: 14px; border-radius: 8px; background: linear-gradient(90deg, rgba(214, 31, 48, .14), transparent 70%), var(--panel); border: 1px solid var(--line-2); }
.forum-head h1 { margin: 0 0 2px; font-size: 24px; color: #fff; }
.forum-head p { margin: 0; color: var(--text-2); font-size: 14px; }
.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) 70px 70px 190px; gap: 14px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--row); }
.thread-row:nth-child(odd) { background: var(--row-alt); }
.thread-row:hover { background: #211b1d; }
.thread-row.pinned { background: linear-gradient(270deg, rgba(214, 31, 48, .14), rgba(214, 31, 48, .03) 60%), var(--row); }
.thread-table-head + .thread-row { border-top: 0; }
.thread-divider { padding: 6px 16px; font: 700 12px/1.2 var(--body); color: var(--muted); background: #101013; border-top: 1px solid var(--line); }
.thread-state { width: 26px; height: 26px; border-radius: 50%; display: inline-block; position: relative; background: radial-gradient(circle at 50% 35%, #2c2c33, #16161a); border: 1px solid var(--line-2); vertical-align: middle; }
.thread-state::after { content: ""; position: absolute; inset: 7px; background: #6a656d; -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%, #ff4b5a, #8f0d19); border-color: #ff7a84; box-shadow: 0 0 12px var(--red-glow); }
.thread-state.new::after { background: #fff; }
.thread-state.locked::after { -webkit-mask-image: var(--icon-lock); mask-image: var(--icon-lock); background: #b0aab0; }
.thread-main { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.thread-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.thread-title { font-weight: 600; font-size: 14.5px; color: #fff; }
.thread-row.unread .thread-title { font-weight: 800; }
.thread-title:hover { color: var(--red-2); }
.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); font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--muted); padding: 4px 2px; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend .thread-state { width: 18px; height: 18px; }
.legend .thread-state::after { inset: 4px; }
.staff-name { color: var(--red-2) !important; font-weight: 700; text-shadow: 0 0 10px var(--red-glow); }
.mod-name { color: #6fb7ff !important; font-weight: 700; }

/* "What's going on" box and the forum 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: 700 14px/1.3 var(--body); color: #fff; margin: 0 0 4px; display: flex; align-items: center; gap: 7px; }
.whats-on-block h3 .icon-mask { color: var(--red-2); }
.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: 600; }
.stats-inline { list-style: none; display: flex; gap: 18px; padding: 0; margin: 4px 0; font-size: 13px; color: var(--muted); }
.stats-inline strong { color: #fff; }

.forum-side { display: flex; flex-direction: column; gap: 14px; }
.side-box { border-radius: 8px; overflow: hidden; border: 1px solid #2a2a31; background: var(--panel); box-shadow: var(--shadow); }
.side-box-head { padding: 10px 14px; text-align: center; background: linear-gradient(180deg, #3b0b12, #22070b); border-bottom: 1px solid #000; }
.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; }
.recent-list li { padding: 9px 11px; border-radius: 6px; background: var(--row-alt); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.recent-title { color: #fff; font-weight: 700; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-title:hover { color: var(--red-2); }
.recent-meta { font-size: 11.5px; color: var(--muted); }
.recent-meta a { color: var(--text-2); }
.recent-forum { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 3px; background: rgba(214, 31, 48, .15); color: #ff8892; }
.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; }

/* ------------------------------------------------------------- forum: thread and posts */

.thread-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.thread-head h1 { margin: 0; font-size: clamp(20px, 2.6vw, 28px); color: #fff; font-family: var(--body); font-weight: 800; letter-spacing: 0; }
.mod-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 9px 12px; margin-bottom: 12px; border-radius: 7px; border: 1px dashed rgba(214, 31, 48, .5); background: rgba(214, 31, 48, .06); }
.mod-label { font-size: 12px; font-weight: 800; color: var(--red-2); margin-inline-end: auto; }
.mod-move { display: inline-flex; gap: 6px; align-items: center; }
.mod-move select { width: auto; padding: 6px 8px; font-size: 13px; }

.posts { display: flex; flex-direction: column; gap: 14px; margin-bottom: 12px; }
.post { border-radius: 8px; overflow: hidden; border: 1px solid #2a2a31; background: var(--panel); box-shadow: var(--shadow); scroll-margin-top: 80px; }
.post:target { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 0 26px var(--red-glow); }
.post-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 14px; font-size: 12.5px; color: var(--text-2); background: linear-gradient(180deg, #2a0a0f, #1a070a); border-bottom: 1px solid #000; }
.post-staff .post-head { background: linear-gradient(180deg, #4a0d15, #2a080c); }
.post-date { display: inline-flex; align-items: center; gap: 6px; }
.post-no { color: #fff; font-weight: 800; }
.post-grid { display: grid; grid-template-columns: 190px minmax(0, 1fr); }
.postbit { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; padding: 16px 12px; background: linear-gradient(180deg, #18181d, #121216); border-inline-end: 1px solid var(--line); }
.postbit-avatar { margin-bottom: 4px; }
.postbit-name { display: inline-flex; align-items: center; gap: 6px; font-size: 15.5px; font-weight: 800; color: #fff; word-break: break-word; }
.postbit-title { font-size: 12.5px; color: var(--muted); }
.rank-pips { display: inline-flex; gap: 3px; margin: 2px 0 4px; }
.pip { width: 11px; height: 11px; border-radius: 2px; transform: rotate(45deg); background: #2c2c33; border: 1px solid #3a3a42; }
.pip.on { background: linear-gradient(180deg, #ff6b76, #a5121f); border-color: #ff8a92; box-shadow: 0 0 6px var(--red-glow); }
.pip.on.staff { background: linear-gradient(180deg, #ffe28f, #b98a1c); border-color: #ffe9a8; box-shadow: 0 0 6px rgba(255, 196, 70, .5); }
.postbit-facts { width: 100%; margin: 6px 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: rgba(0, 0, 0, .25); }
.postbit-facts dt { color: var(--muted); }
.postbit-facts dd { margin: 0; color: var(--text); font-weight: 600; }
.post-content { padding: 16px 20px 14px; min-width: 0; display: flex; flex-direction: column; }
.post-title { font-size: 18px; color: #fff; font-family: var(--body); font-weight: 800; letter-spacing: 0; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.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 var(--line-2); font-size: 13px; color: var(--text-2); max-height: 220px; overflow: hidden; }
.post-likes { margin-top: 12px; padding: 7px 10px; border-radius: 5px; background: rgba(214, 31, 48, .08); border: 1px solid rgba(214, 31, 48, .18); font-size: 12.5px; color: var(--text-2); }
.post-likes .icon-mask { color: var(--red-2); }
.post-likes a { color: #fff; }
.post-foot { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 4px; padding: 7px 12px; background: #101013; border-top: 1px solid var(--line); }
.post-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 5px; font: 600 12.5px/1 var(--body); color: var(--text-2); background: transparent; border: 1px solid transparent; cursor: pointer; }
.post-btn:hover { color: #fff; background: rgba(214, 31, 48, .14); border-color: rgba(214, 31, 48, .3); }
.post-btn.liked { color: var(--red-2); }
.post-btn.danger:hover { background: var(--red-3); }

.reply-form, .post-form { padding: 16px 18px; }
.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; }
.review-head strong { color: #fff; }
.report-reason { color: #ffc2c7; margin: 6px 0; }
.search-excerpt { margin: 0; color: var(--text-2); font-size: 13.5px; }
.search-form { padding: 16px 18px; 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: 16px; padding: 14px 16px; border-radius: 7px; border: 1px dashed var(--line-2); background: rgba(0, 0, 0, .25); }
.preview-label { display: inline-block; margin-bottom: 8px; font: 700 11.5px/1 var(--body); color: var(--red-2); letter-spacing: .05em; }
.narrow-section { max-width: 760px; margin-inline: auto; }

/* Editor */
.editor { border: 1px solid var(--line-2); border-radius: 7px; background: #0b0b0e; margin-bottom: 12px; }
.editor:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(214, 31, 48, .18); }
.editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 5px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #1b1b20, #141418); border-radius: 7px 7px 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: 600 13px/1 var(--body); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.editor-toolbar button:hover { background: rgba(214, 31, 48, .16); border-color: rgba(214, 31, 48, .3); color: #fff; }
.editor-sep { width: 1px; height: 20px; background: var(--line-2); 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: #17171c; border: 1px solid var(--line-2); border-radius: 6px; box-shadow: 0 14px 30px rgba(0, 0, 0, .6); }
.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(255, 255, 255, .2) !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); }
.editor textarea { border: 0 !important; box-shadow: none !important; border-radius: 0 0 7px 7px; background: transparent !important; min-height: 140px; }

/* Members, profile, online, settings, admin, messages */
.member-cell { display: inline-flex; align-items: center; gap: 9px; color: #fff; }
.profile-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; 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; color: #fff; font-family: var(--body); }
.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: 6px 12px 6px 6px; border-radius: 999px; background: var(--row-alt); border: 1px solid var(--line); color: #fff; }
.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: 7px; background: var(--row-alt); border: 1px solid var(--line); }
.admin-forum h3 { font-size: 15px; color: #fff; margin: 0 0 8px; }
.admin-new { border-style: dashed; border-color: rgba(214, 31, 48, .45); }
.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; }
.pm-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pm-top .tabs { flex: 1; margin-bottom: 0; border-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: var(--muted); font-weight: 700; background: #101013 !important; border-top: 0; }
.pm-row.unread .pm-subject { font-weight: 800; color: #fff; }
.pm-subject { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-actions { padding: 10px 16px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------- BBCode in posts */

.bb strong { color: #fff; }
.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: 4px; vertical-align: middle; }
.bb-quote { margin: 10px 0; padding: 0; border: 1px solid var(--line-2); border-inline-start: 3px solid var(--red); border-radius: 5px; background: rgba(0, 0, 0, .28); }
.bb-quote-head { padding: 6px 12px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.bb-quote-head strong { color: var(--text-2); }
.bb-quote-link { margin-inline-start: 4px; }
.bb-quote-body { padding: 9px 12px; color: var(--text-2); }
.bb-code { margin: 10px 0; padding: 10px 12px; max-height: 420px; overflow: auto; border-radius: 5px; background: #08080a; border: 1px solid var(--line-2); font: 13px/1.5 Consolas, "Cascadia Mono", monospace; color: #e6e1d8; text-align: left; white-space: pre; }
.bb-code code { background: none; border: 0; padding: 0; font-size: inherit; }
.bb-spoiler { margin: 10px 0; border: 1px solid var(--line-2); border-radius: 5px; background: rgba(0, 0, 0, .25); }
.bb-spoiler summary { cursor: pointer; padding: 7px 12px; font-weight: 700; font-size: 13px; color: var(--red-2); }
.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; }
.main-block .bb-video { max-width: none; }

/* ------------------------------------------------------------- footer */

.site-footer { border-top: 1px solid #000; box-shadow: 0 -1px 0 rgba(214, 31, 48, .35); background: linear-gradient(180deg, #111114, #070708); padding: 30px 20px 24px; font-size: 13.5px; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; gap: 18px 36px; align-items: center; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand strong { font-family: var(--display); letter-spacing: .08em; color: #fff; }
.footer-brand p { margin: 2px 0 0; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: var(--red-2); }
.footer-social { display: flex; gap: 8px; }
.social { display: inline-block; width: 36px; height: 36px; border-radius: 50%; background-color: var(--text-2); -webkit-mask: var(--i) center / 58% no-repeat; mask: var(--i) center / 58% no-repeat; }
.footer-social .social { -webkit-mask: none; mask: none; background: radial-gradient(circle at 50% 35%, #2c2c33, #16161a); border: 1px solid var(--line-2); position: relative; }
.footer-social .social::after { content: ""; position: absolute; inset: 9px; background: var(--text-2); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.footer-social .social:hover { border-color: var(--red); box-shadow: 0 0 12px var(--red-glow); }
.footer-social .social:hover::after { background: #fff; }
.social-discord { --i: var(--icon-discord); }
.social-facebook { --i: var(--icon-facebook); }
.social-youtube { --i: var(--icon-youtube); }
.footer-note { grid-column: 1 / -1; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); color: #66626a; font-size: 12px; text-align: center; }

/* ------------------------------------------------------------- icon shapes */

: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-bolt: 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='M13 2 3 14h9l-1 8 10-12h-9l1-8z'/%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-download: 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%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10l5 5 5-5M12 15V3'/%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-discord: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M20 4.5A17 17 0 0 0 15.8 3l-.5 1.1a15.6 15.6 0 0 0-6.6 0L8.2 3A17 17 0 0 0 4 4.5C1.4 8.4.7 12.2 1 16a17 17 0 0 0 5.2 2.6l1.1-1.8c-.6-.2-1.2-.5-1.7-.8l.4-.3a12 12 0 0 0 12 0l.4.3c-.5.3-1.1.6-1.7.8l1.1 1.8A17 17 0 0 0 23 16c.4-4.4-.7-8.2-3-11.5zM8.7 13.7c-1 0-1.9-1-1.9-2.1s.8-2.1 1.9-2.1 1.9 1 1.9 2.1-.8 2.1-1.9 2.1zm6.6 0c-1 0-1.9-1-1.9-2.1s.8-2.1 1.9-2.1 1.9 1 1.9 2.1-.8 2.1-1.9 2.1z'/%3E%3C/svg%3E");
  --icon-facebook: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M14 8V6c0-.9.6-1 1-1h3V1h-4c-3.5 0-4.5 2.6-4.5 4.4V8H7v4h2.5v11H14V12h3.4l.6-4z'/%3E%3C/svg%3E");
  --icon-youtube: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M23 7.5s-.2-1.7-1-2.4c-.9-1-2-1-2.5-1C16.2 4 12 4 12 4s-4.2 0-7.5.1c-.5.1-1.6.1-2.5 1-.8.7-1 2.4-1 2.4S1 9.4 1 11.3v1.4c0 1.9.2 3.8.2 3.8s.2 1.7 1 2.4c.9 1 2.2.9 2.8 1 2 .2 8.5.2 8.5.2s4.2 0 7.5-.2c.5-.1 1.6-.1 2.5-1 .8-.7 1-2.4 1-2.4s.2-1.9.2-3.8v-1.4c0-1.9-.2-3.8-.2-3.8zM9.7 15.1V8.6l5.9 3.3z'/%3E%3C/svg%3E");
}

.icon-sword { --i: var(--icon-sword); }
.icon-clock { --i: var(--icon-clock); }
.icon-shield { --i: var(--icon-shield); }
.icon-bolt { --i: var(--icon-bolt); }
.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: 1180px) {
  .home { grid-template-columns: 250px minmax(0, 1fr); }
  .home > .col-side:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .cs-top { grid-template-columns: 1fr 1fr; }
  .cs-top .cs-owner { grid-column: 1 / -1; }
  .features { grid-template-columns: repeat(2, 1fr); }
}

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

@media (max-width: 900px) {
  .topnav-inner { min-height: 58px; }
  .nav-burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; margin-inline-start: auto; width: 42px; height: 42px; padding: 10px; border-radius: 8px; border: 1px solid var(--line-2); cursor: pointer; }
  .nav-burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 18px; background: rgba(12, 12, 14, .99); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0, 0, 0, .6); max-height: calc(100vh - 60px); overflow-y: auto; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav-link { padding: 12px 10px; justify-content: space-between; width: 100%; }
  .nav-link.active::after, .nav-drop.active > .nav-link::after { left: auto; right: 0; top: 10px; bottom: 10px; width: 3px; height: auto; background: var(--red-2); }
  .nav-menu { position: static; display: none; box-shadow: none; border: 0; border-inline-start: 2px solid var(--red); border-radius: 0; margin: 0 10px 6px; background: transparent; }
  .nav-drop:hover > .nav-menu { display: none; }
  .nav-drop.open > .nav-menu { display: flex; }
  .nav-user { margin: 10px 0 0; padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
  .banner-home { min-height: 400px; }
  .home { grid-template-columns: 1fr; }
  .home > .col-side:last-child { display: flex; grid-column: auto; }
  .home > .col-side:first-child { order: 2; }
  .home > .col-main { order: 1; }
  .home > .col-side:last-child { order: 3; }
  .settings-grid, .cs-top { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .frame { padding: 14px 12px; }
  .frame-outer { padding: 0 6px 30px; }
  .page-home .frame { margin-top: -40px; }
  .field-row, .info-grid { grid-template-columns: 1fr; }
  .form-panel { padding: 18px; }
  .hide-sm { display: none; }
  .features { grid-template-columns: 1fr 1fr; }
  .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 var(--line); 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: 40px minmax(0, 1fr); }
  .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; }
  .search-form, .admin-grid { grid-template-columns: 1fr; }
  .admin-wide { grid-column: auto; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-social { justify-content: center; }
  .forum-search input { width: 140px !important; }
  .download-item { flex-wrap: wrap; }
}
