:root {
  --bg: #0b0a0f;
  --bg2: #13111a;
  --card: #18151f;
  --card2: #201c29;
  --line: #2c2636;
  --text: #ece8f2;
  --muted: #a39cae;
  --gold: #f5b942;
  --gold2: #ffd76e;
  --red: #e5383b;
  --red2: #ff5a5f;
  --forged: #55ff55;
  --tempered: #55ffff;
  --mythic: #ff55ff;
  --divine: #ffaa00;
  --godforged: #ff5555;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* ---------- nav ---------- */
nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 10, 15, .72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Bebas Neue", Impact, sans-serif; font-size: 28px; letter-spacing: 1px; }
.brand svg { width: 34px; height: 34px; }
.brand span b { color: var(--gold); font-weight: 400; }
.links { display: flex; gap: 6px; }
.links a {
  padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 14px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: .2s;
}
.links a:hover, .links a.on { color: var(--text); background: rgba(255, 255, 255, .06); }
.links a.store { color: #1a1300; background: linear-gradient(135deg, var(--gold), var(--gold2)); }
.links a.store:hover { filter: brightness(1.08); }
.burger { display: none; background: none; border: 0; color: var(--text); font-size: 26px; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  position: relative; text-align: center; padding: 90px 0 70px;
  background:
    radial-gradient(1000px 420px at 50% -10%, rgba(229, 56, 59, .28), transparent 70%),
    radial-gradient(700px 360px at 80% 20%, rgba(245, 185, 66, .16), transparent 70%);
}
.emblem { width: 170px; height: 170px; margin: 0 auto 18px; filter: drop-shadow(0 12px 40px rgba(229, 56, 59, .45)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.hero h1 {
  font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400;
  font-size: clamp(56px, 10vw, 112px); line-height: .95; letter-spacing: 2px;
  background: linear-gradient(180deg, #fff 10%, var(--gold2) 55%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 em { font-style: normal; background: linear-gradient(180deg, #ff8a8c, var(--red)); -webkit-background-clip: text; background-clip: text; }
.hero p.tag { color: var(--muted); font-size: 18px; margin: 14px auto 30px; max-width: 620px; }
.ipbar { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; border: 0;
  padding: 15px 24px; border-radius: 12px; font-weight: 700; font-size: 15px; letter-spacing: .04em;
  transition: transform .15s, filter .2s, box-shadow .2s; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn.red { background: linear-gradient(135deg, var(--red), #b51d20); color: #fff; box-shadow: 0 10px 30px rgba(229, 56, 59, .35); }
.btn.gold { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #1a1300; box-shadow: 0 10px 30px rgba(245, 185, 66, .3); }
.btn.ghost { background: rgba(255, 255, 255, .06); color: var(--text); border: 1px solid var(--line); }
.btn.discord { background: #5865f2; color: #fff; box-shadow: 0 10px 30px rgba(88, 101, 242, .35); }
.ip .count { background: rgba(0, 0, 0, .3); padding: 3px 9px; border-radius: 999px; font-size: 12px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(120px);
  background: var(--card2); border: 1px solid var(--line); padding: 12px 20px; border-radius: 12px;
  z-index: 50; transition: transform .3s; font-weight: 600;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- layout ---------- */
section { padding: 60px 0; }
.title { display: flex; align-items: end; justify-content: space-between; margin-bottom: 26px; gap: 16px; flex-wrap: wrap; }
.title h2 { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 44px; letter-spacing: 1px; }
.title h2 span { color: var(--gold); }
.title p { color: var(--muted); max-width: 560px; }
.grid { display: grid; gap: 20px; }
.main { grid-template-columns: 1fr 360px; }
.card {
  background: linear-gradient(180deg, var(--card), var(--bg2));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}

/* ---------- news ---------- */
.post { display: grid; grid-template-columns: 300px 1fr; transition: border-color .2s, transform .2s; }
.post:hover { border-color: rgba(245, 185, 66, .45); transform: translateY(-2px); }
.post .art { min-height: 220px; position: relative; overflow: hidden; }
.post .art .glyph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 74px; }
.post .body { padding: 26px 28px; display: flex; flex-direction: column; }
.badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.badge.latest { background: var(--red); color: #fff; }
.badge.upd { background: rgba(85, 255, 255, .14); color: var(--tempered); }
.badge.evt { background: rgba(245, 185, 66, .16); color: var(--gold2); }
.post h3 { font-size: 24px; margin: 10px 0 8px; line-height: 1.2; }
.post p { color: var(--muted); }
.post .meta { margin-top: auto; padding-top: 18px; color: var(--muted); font-size: 14px; display: flex; gap: 10px; align-items: center; }
.post .meta b { color: var(--gold2); }
.news { display: grid; gap: 20px; }

/* ---------- side ---------- */
.side { display: grid; gap: 20px; align-content: start; }
.status { padding: 20px 22px; background: linear-gradient(135deg, #b51d20, var(--red)); border: 0; cursor: pointer; }
.status .row { display: flex; justify-content: space-between; align-items: center; font-weight: 800; letter-spacing: .04em; }
.status .row .pill { background: rgba(0, 0, 0, .28); padding: 6px 12px; border-radius: 999px; font-size: 13px; }
.status small { display: block; margin-top: 6px; opacity: .85; font-weight: 500; }
.dc .top { background: #5865f2; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; }
.dc .top b { font-size: 22px; display: flex; gap: 10px; align-items: center; }
.dc .list { padding: 16px 22px 20px; }
.dc .list p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.quick { padding: 20px 22px; }
.quick h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.quick a { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line); color: var(--text); }
.quick a:hover { color: var(--gold2); }

/* ---------- features ---------- */
.feats { grid-template-columns: repeat(4, 1fr); }
.feat { padding: 24px; }
.feat .ic { font-size: 30px; margin-bottom: 12px; }
.feat h4 { font-size: 18px; margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: 14px; }

/* ---------- store ---------- */
.notice {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; margin-bottom: 26px;
  border-radius: var(--radius); background: rgba(85, 255, 85, .06); border: 1px solid rgba(85, 255, 85, .22);
}
.notice b { color: var(--forged); }
.tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.tabs button {
  background: var(--card); border: 1px solid var(--line); color: var(--muted); padding: 10px 18px;
  border-radius: 10px; cursor: pointer; font-weight: 700; font-family: inherit; font-size: 14px;
}
.tabs button.on { color: #1a1300; background: linear-gradient(135deg, var(--gold), var(--gold2)); border-color: transparent; }
.ranks { grid-template-columns: repeat(5, 1fr); }
.rank { padding: 24px 20px; display: flex; flex-direction: column; position: relative; transition: transform .2s, border-color .2s, box-shadow .2s; }
.rank:hover { transform: translateY(-4px); }
.rank .name { font-family: "Bebas Neue", Impact, sans-serif; font-size: 34px; letter-spacing: 1px; line-height: 1; }
.rank .price { font-size: 30px; font-weight: 800; margin: 12px 0 2px; }
.rank .price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.rank .pts { color: var(--gold2); font-size: 13px; font-weight: 700; margin-bottom: 16px; }
.rank ul { list-style: none; display: grid; gap: 9px; margin-bottom: 22px; font-size: 14px; color: #d6d0df; }
.rank li::before { content: "\2714"; margin-right: 8px; color: var(--c); }
.rank .btn { margin-top: auto; justify-content: center; width: 100%; }
.rank.hot::after {
  content: "MOST POPULAR"; position: absolute; top: 14px; right: -34px; transform: rotate(35deg);
  background: var(--red); color: #fff; font-size: 10px; font-weight: 800; padding: 4px 36px; letter-spacing: .08em;
}
.rank { --c: var(--gold); }
.rank .name, .rank .btn.buy { color: var(--c); }
.rank:hover { border-color: var(--c); box-shadow: 0 14px 40px -12px var(--c); }
.btn.buy { background: rgba(255, 255, 255, .05); border: 1px solid var(--c); }
.btn.buy:hover { background: var(--c); color: #111 !important; }
.r-forged { --c: var(--forged); } .r-tempered { --c: var(--tempered); } .r-mythic { --c: var(--mythic); }
.r-divine { --c: var(--divine); } .r-godforged { --c: var(--godforged); }
.items { grid-template-columns: repeat(4, 1fr); }
.item { padding: 24px; display: flex; flex-direction: column; }
.item .ic { font-size: 34px; }
.item h4 { font-size: 19px; margin: 10px 0 6px; }
.item p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.item .row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.item .cost { font-weight: 800; font-size: 22px; }
.item .cost small { display: block; font-size: 12px; color: var(--gold2); font-weight: 700; }
.item .bonus { color: var(--forged); font-size: 12px; font-weight: 800; }
.how { grid-template-columns: repeat(3, 1fr); margin-top: 10px; }
.how .card { padding: 22px; }
.how b { color: var(--gold2); font-size: 28px; font-family: "Bebas Neue", Impact, sans-serif; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); margin-top: 10px; }
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .7); display: none; place-items: center; z-index: 60; padding: 20px; }
.modal.show { display: grid; }
.modal .box { width: 100%; max-width: 440px; padding: 28px; }
.modal h3 { font-size: 22px; margin-bottom: 4px; }
.modal p { color: var(--muted); margin-bottom: 18px; font-size: 14px; }
.modal input {
  width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg);
  color: var(--text); font-size: 16px; margin-bottom: 16px; font-family: inherit;
}
.modal .row { display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- staff ---------- */
.staff { grid-template-columns: repeat(4, 1fr); }
.member { padding: 24px; text-align: center; }
.member img { width: 84px; height: 84px; image-rendering: pixelated; border-radius: 12px; margin-bottom: 12px; }
.member b { display: block; font-size: 18px; }
.member span { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: 14px; position: relative; z-index: 1; background: rgba(11, 10, 15, .8); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- small screens ---------- */
@media (max-width: 1080px) {
  .ranks { grid-template-columns: repeat(3, 1fr); }
  .items, .feats, .staff { grid-template-columns: repeat(2, 1fr); }
  .main { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--bg2); padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .links.open { display: flex; }
  .burger { display: block; }
  .ranks, .items, .feats, .staff, .how { grid-template-columns: 1fr; }
  .post { grid-template-columns: 1fr; }
  .post .art { min-height: 140px; }
  .wrap { padding: 0 16px; }
}

/* ---------- changelog ---------- */
.log { display: grid; gap: 20px; max-width: 900px; }
.entry { padding: 26px 28px; }
.entry .when { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 14px; font-weight: 600; }
.entry h3 { font-size: 24px; margin: 10px 0 14px; }
.entry ul { list-style: none; display: grid; gap: 10px; }
.entry li { padding-left: 64px; position: relative; color: #d6d0df; }
.entry li::before {
  position: absolute; left: 0; top: 2px; font-size: 10px; font-weight: 800; letter-spacing: .08em;
  padding: 3px 8px; border-radius: 6px; width: 50px; text-align: center;
}
.entry li.new::before { content: "NEW"; background: rgba(85, 255, 85, .12); color: var(--forged); }
.entry li.chg::before { content: "CHANGE"; background: rgba(85, 255, 255, .12); color: var(--tempered); }
.entry li.fix::before { content: "FIX"; background: rgba(245, 185, 66, .14); color: var(--gold2); }
.entry a { color: var(--gold2); }

/* ---------- guide ---------- */
.guide { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.toc { position: sticky; top: 90px; padding: 18px; }
.toc a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 14px; }
.toc a:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.doc { display: grid; gap: 22px; }
.doc .card { padding: 26px 28px; }
.doc h2 { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 36px; letter-spacing: 1px; margin-bottom: 8px; scroll-margin-top: 90px; }
.doc h2 span { color: var(--gold); }
.doc h4 { margin: 16px 0 6px; font-size: 17px; }
.doc p, .doc li { color: #d6d0df; }
.doc ol, .doc ul { padding-left: 22px; display: grid; gap: 6px; margin: 8px 0; }
.cmds { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.cmds td { padding: 9px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.cmds td:first-child { white-space: nowrap; width: 1%; }
.cmds code, .doc code { background: rgba(245, 185, 66, .1); color: var(--gold2); padding: 2px 7px; border-radius: 6px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.tip { margin-top: 12px; padding: 12px 16px; border-radius: 10px; background: rgba(85, 255, 255, .06); border: 1px solid rgba(85, 255, 255, .2); color: #cfeff0; font-size: 14px; }
.warn { margin-top: 12px; padding: 12px 16px; border-radius: 10px; background: rgba(229, 56, 59, .08); border: 1px solid rgba(229, 56, 59, .3); color: #ffd6d7; font-size: 14px; }
.audience { display: inline-block; margin-bottom: 14px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.audience.public { background: rgba(85, 255, 85, .12); color: var(--forged); }
.audience.staff { background: rgba(85, 255, 255, .12); color: var(--tempered); }
.audience.owner { background: rgba(229, 56, 59, .15); color: var(--red2); }
@media (max-width: 860px) { .guide { grid-template-columns: 1fr; } .toc { position: static; } .cmds td:first-child { white-space: normal; } }

/* ---------- accounts & admin ---------- */
.acct { max-width: 980px; margin: 0 auto; }
.form { display: grid; gap: 14px; max-width: 440px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
.form input, .form select, .form textarea, .inp {
  background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 10px;
  padding: 12px 14px; font: inherit; font-size: 15px; width: 100%; }
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus, .inp:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 185, 66, .15); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.form .check input { width: auto; margin-top: 3px; }
.msg { padding: 11px 14px; border-radius: 10px; font-size: 14px; display: none; }
.msg.err { display: block; background: rgba(229, 56, 59, .1); border: 1px solid rgba(229, 56, 59, .35); color: #ffd6d7; }
.msg.ok { display: block; background: rgba(85, 255, 85, .07); border: 1px solid rgba(85, 255, 85, .3); color: #d5ffd5; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.linkbtn { background: none; border: 0; color: var(--gold2); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.code-big { font-family: ui-monospace, Consolas, monospace; font-size: 34px; letter-spacing: 6px; color: var(--gold2); background: var(--bg2); border: 1px dashed var(--gold); border-radius: 12px; padding: 14px 20px; display: inline-block; user-select: all; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); }
.pill.manager { color: #ff5555; border-color: rgba(255, 85, 85, .5); }
.pill.admin { color: #ffaa00; border-color: rgba(255, 170, 0, .5); }
.pill.moderator { color: #55ffff; border-color: rgba(85, 255, 255, .45); }
.pill.helper { color: #55ff55; border-color: rgba(85, 255, 85, .45); }
.pill.banned, .pill.suspended, .pill.bad { color: #ff5a5f; border-color: rgba(229, 56, 59, .5); }
.pill.good { color: #55ff55; border-color: rgba(85, 255, 85, .45); }
.notice { border-left: 3px solid var(--gold); padding: 10px 14px; background: var(--bg2); border-radius: 8px; margin-top: 10px; }
.notice.warning, .notice.security, .notice.important { border-left-color: var(--red2); }
.notice.unread { box-shadow: 0 0 0 1px rgba(245, 185, 66, .35); }
.notice h5 { margin: 0 0 4px; font-size: 15px; }
.notice p { margin: 0; white-space: pre-wrap; color: var(--muted); font-size: 14px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
.kv b { color: var(--muted); font-weight: 600; }
.mchead { width: 64px; height: 64px; border-radius: 10px; image-rendering: pixelated; }
.split { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 8px; border-top: 1px solid var(--line); vertical-align: top; word-break: break-word; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: rgba(255, 255, 255, .03); }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat b { display: block; font-size: 28px; color: var(--gold2); font-family: "Bebas Neue", sans-serif; letter-spacing: 1px; }
.stat span { color: var(--muted); font-size: 13px; }
.bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.bar .inp { width: auto; flex: 1; min-width: 200px; }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.nav-badge { background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 6px; margin-left: 4px; }
.qr { background: #fff; padding: 10px; border-radius: 10px; display: inline-block; }
.qr img { display: block; width: 180px; height: 180px; image-rendering: pixelated; }
.recovery { font-family: ui-monospace, Consolas, monospace; display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 24px; background: var(--bg2); padding: 14px; border-radius: 10px; }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; } .code-big { font-size: 26px; letter-spacing: 3px; } }

/* ---------- forums ---------- */
.forum { max-width: 1100px; }
.fbar { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.crumbs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 600; }
.crumbs .sep { color: var(--muted); }
.fsearch { display: flex; gap: 8px; }
.fsearch .inp { width: 240px; }
.flist { padding: 6px 0; }
.fcat, .fthread { display: grid; grid-template-columns: 1fr 170px 220px; gap: 16px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); }
.fthread { grid-template-columns: 36px 1fr 150px 180px; }
.flist > :first-child { border-top: 0; }
.fcat-name { font-weight: 700; font-size: 16px; color: var(--text); margin-right: 8px; }
.fcat-name:hover { color: var(--gold2); }
.fcat-main .pill { margin-right: 6px; }
.fcat-num { color: var(--muted); font-size: 13px; }
.fcat-last a { color: var(--text); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gone { opacity: .55; }
.fhead { border-radius: 8px; image-rendering: pixelated; flex: none; }
.fname { font-weight: 700; color: var(--text); }
.fname.r-helper, h2.r-helper { color: #55ff55; } .fname.r-moderator, h2.r-moderator { color: #55ffff; }
.fname.r-admin, h2.r-admin { color: #ffaa00; } .fname.r-manager, h2.r-manager { color: #ff5555; }
.fpost { display: grid; grid-template-columns: 150px 1fr; gap: 20px; margin-top: 14px; }
.fside { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; border-right: 1px solid var(--line); padding-right: 16px; }
.fmain { min-width: 0; }
.fmeta { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.fmeta a { color: var(--muted); }
.fbody { line-height: 1.65; word-wrap: break-word; overflow-wrap: anywhere; }
.fbody p { margin: 0 0 12px; }
.fbody a { color: var(--gold2); }
.fbody code { background: rgba(245, 185, 66, .1); color: var(--gold2); padding: 1px 6px; border-radius: 5px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.fbody pre, .fbody + pre { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; overflow-x: auto; font-size: 13px; white-space: pre-wrap; }
.forum blockquote { margin: 0 0 12px; padding: 8px 14px; border-left: 3px solid var(--gold); background: rgba(255, 255, 255, .03); border-radius: 0 8px 8px 0; color: var(--muted); }
.factions { margin: 6px 0 0; gap: 16px; }
.factions .btn.linkbtn { background: none; box-shadow: none; padding: 0; color: var(--muted); font-size: 13px; text-decoration: none; }
.factions .btn.linkbtn:hover { color: var(--gold2); transform: none; }
.ftools { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0; }
.pager a { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--text); font-size: 14px; }
.pager a.on { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #1a1300; border-color: transparent; }
.fcompose textarea { min-height: 140px; }
@media (max-width: 760px) {
  .fcat, .fthread { grid-template-columns: 1fr; gap: 6px; }
  .fthread .fhead { display: none; }
  .fpost { grid-template-columns: 1fr; }
  .fside { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 10px; }
  .fsearch .inp { width: 100%; }
}

/* ---------- spacing for account, admin, forum and privacy pages ---------- */
[hidden] { display: none !important; }
.acct .card, .admin .card, .forum .card, .card.doc { padding: 26px 28px; }
.forum .card.flist { padding: 4px 0; }
.acct .card + .card, .admin .card + .card { margin-top: 20px; }
.acct h2, .admin h2, .forum h2 { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 36px; letter-spacing: 1px; line-height: 1.05; margin: 0 0 14px; }
.acct h2 span, .admin h2 span, .forum h2 span, .acct h3 span, .admin h3 span { color: var(--gold); }
.acct h3, .admin h3, .forum h3 { font-size: 20px; line-height: 1.25; margin: 0 0 16px; }
.acct h4, .admin h4, .forum h4 { margin: 20px 0 10px; font-size: 16px; }
.acct .card p, .admin .card p, .forum .card p { margin: 0 0 14px; line-height: 1.6; }
.acct .card p:last-child, .admin .card p:last-child { margin-bottom: 0; }
.acct .card > :last-child, .admin .card > :last-child { margin-bottom: 0; }
.form { gap: 16px; }
.form .btn, .form button[type=submit] { justify-self: start; }
.form label { gap: 8px; }
.split { gap: 22px; }
.acct .split, .admin .split { margin-top: 22px !important; }
.acct .bar, .admin .bar { gap: 14px; }
.bar .btn { flex: none; }
.acct .mchead { width: 72px; height: 72px; flex: none; }
.acct #v-dash > .card:first-child .bar { align-items: center; row-gap: 16px; }
.acct #v-dash > .card:first-child h2 { margin: 0 0 4px; }
.acct #d-links { flex-wrap: wrap; }
.pill + .pill { margin-left: 6px; }
.notice { margin: 0 0 12px; padding: 12px 16px; }
.notice h5 { margin: 0 0 6px; }
#tfa-on > p, #link-yes > p { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
#tfa-on .form { margin-top: 16px; }
.tbl th, .tbl td { padding: 10px 12px; }
.admin .tabs { margin-bottom: 22px; }
.admin .stats { margin-bottom: 4px; }
.kv { gap: 8px 18px; }
.stat { padding: 18px 20px; }
.forum .fbar { margin-bottom: 20px; }
.forum .fpost { padding: 22px 24px; }
.forum .ftools { padding: 12px 16px; margin: 0 0 16px; }
.forum .tip, .acct .tip, .admin .tip { margin: 0 0 16px; }
.forum > section > .tip { margin-top: 0; }
@media (max-width: 600px) {
  .acct .card, .admin .card, .forum .card, .card.doc { padding: 20px 18px; }
  .forum .card.flist { padding: 4px 0; }
  .acct h2, .admin h2, .forum h2 { font-size: 30px; }
  .fcat, .fthread { padding: 14px 16px; }
}

/* ---------- admin charts & alerts ---------- */
.charts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.chart { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: var(--muted); }
.chart-head b { font-family: "Bebas Neue", sans-serif; font-size: 26px; letter-spacing: 1px; color: var(--text); }
.chart-svg { width: 100%; height: 70px; display: block; margin: 6px 0; }
.alert-detail { background: rgba(0, 0, 0, .25); border-radius: 8px; padding: 10px 12px; margin: 10px 0 6px; font-size: 12px; white-space: pre-wrap; word-break: break-word; max-height: 220px; overflow: auto; color: #d6d0df; }

/* no copying */
/* Public pages: text can't be selected or copied and images can't be dragged. Typing fields still
   work, and the staff, owner and admin pages (body.allow-copy) can copy normally. */
body:not(.allow-copy) { -webkit-user-select: none; -moz-user-select: none; user-select: none; -webkit-touch-callout: none; }
body:not(.allow-copy) img { -webkit-user-drag: none; user-drag: none; pointer-events: auto; }
input, textarea, select, [contenteditable="true"] { -webkit-user-select: text; -moz-user-select: text; user-select: text; }
