:root{
  --bg:#f4f5f7;
  --surface:#ffffff;
  --surface-2:#eef0f3;
  --surface-3:#e4e7eb;
  --text:#171714;
  --muted:#6c7078;
  --line:#dde1e6;
  --accent:#ffd21a;
  --accent-strong:#ffe84a;
  --accent-soft:rgba(255,210,26,.18);
  --gold:#ffb800;
  --danger:#d44747;
  --shadow:0 18px 36px rgba(18,18,16,.12);
  --shadow-soft:0 10px 22px rgba(18,18,16,.08);
  --radius:8px;
  --wrap:1180px;
}

:root[data-theme="dark"]{
  --bg:#0f1012;
  --surface:#191a1d;
  --surface-2:#222327;
  --surface-3:#2b2d31;
  --text:#f7f5ec;
  --muted:#b5b2a8;
  --line:#33343a;
  --accent:#ffd21a;
  --accent-strong:#fff15a;
  --accent-soft:rgba(255,210,26,.18);
  --gold:#ffbf00;
  --danger:#ff6868;
  --shadow:0 18px 36px rgba(0,0,0,.42);
  --shadow-soft:0 10px 22px rgba(0,0,0,.3);
}

*{box-sizing:border-box}
html,body{min-height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  letter-spacing:0;
}

a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 18px}
.muted{color:var(--muted)}

.site-hero{
  position:relative;
  color:#fff;
  background:#11100c;
}
.site-hero:before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(8,8,6,.7), rgba(8,8,6,.84)),
    linear-gradient(90deg, rgba(255,210,26,.32), rgba(0,0,0,0) 55%),
    url('header.jpg') center/cover no-repeat;
}
.site-hero>*{position:relative;z-index:1}

.notice-bar{
  background:rgba(0,0,0,.44);
  border-bottom:1px solid rgba(255,255,255,.1);
  backdrop-filter:blur(8px);
}
.notice-inner{
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  font-size:12px;
  font-weight:700;
}
.notice-inner span,.notice-inner a{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.notice-inner a{color:var(--accent-strong)}

.hero-surface{padding-bottom:20px}
.hero-top{
  position:relative;
  z-index:4;
  min-height:78px;
  display:flex;
  align-items:center;
  gap:16px;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-width:max-content;
}
.brand-mark{
  width:58px;
  height:58px;
  border-radius:8px;
  display:grid;
  place-items:center;
  background:rgba(0,0,0,.24);
  box-shadow:0 12px 28px rgba(0,0,0,.3);
  overflow:hidden;
}
.brand-mark img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.brand-copy{display:grid;gap:2px}
.brand-title{
  font-size:21px;
  line-height:1;
  font-weight:900;
  text-transform:uppercase;
  color:#ffe84a;
  text-shadow:0 2px 16px rgba(255,215,0,.18);
}
.brand-sub{
  font-size:11px;
  color:rgba(255,255,255,.68);
  font-weight:700;
}

.nav-toggle{
  margin-left:auto;
  width:42px;
  height:42px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:8px;
  color:#fff;
  background:rgba(255,255,255,.08);
  display:none;
  cursor:pointer;
}
.nav{
  position:relative;
  z-index:5;
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:6px;
}
.nav-link{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:0 11px;
  border-radius:8px;
  color:rgba(255,255,255,.83);
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}
.nav-link:hover,.nav-link.is-active{background:rgba(255,255,255,.1);color:#fff}
.nav-cta{background:var(--accent);color:#171100}
.nav-cta:hover,.nav-cta.is-active{background:var(--accent-strong);color:#120f00}
.nav-admin{background:rgba(240,189,78,.18);color:#fff}
.nav-discord{background:rgba(88,101,242,.16);color:#fff}
.nav-user .u-name{color:#fff}
.nav-icon{
  position:relative;
  width:40px;
  justify-content:center;
  padding:0;
}
.notification-badge{
  position:absolute;
  top:3px;
  right:3px;
  min-width:17px;
  height:17px;
  display:grid;
  place-items:center;
  border-radius:99px;
  background:var(--danger);
  color:#fff;
  font-size:10px;
  font-weight:900;
  line-height:1;
}

.hero-main{
  display:grid;
  grid-template-columns:minmax(0,1fr) 370px;
  gap:28px;
  align-items:end;
  padding-top:18px;
  padding-bottom:22px;
}
.hero-copy{max-width:690px}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--accent-strong);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}
.hero-copy h1{
  margin:10px 0 10px;
  max-width:780px;
  font-size:54px;
  line-height:.98;
  font-weight:900;
  letter-spacing:0;
}
.hero-copy p{
  margin:0;
  max-width:640px;
  color:rgba(255,255,255,.78);
  font-size:15px;
  line-height:1.65;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.btn{
  min-height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:0 14px;
  background:var(--surface);
  color:var(--text);
  box-shadow:var(--shadow-soft);
  font-size:12px;
  font-weight:900;
  cursor:pointer;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn-accent{
  border-color:transparent;
  background:var(--accent);
  color:#171100;
}
.btn-accent:hover{background:var(--accent-strong)}
.btn-glass{
  color:#fff;
  border-color:rgba(255,255,255,.16);
  background:rgba(255,255,255,.08);
  box-shadow:none;
}
.btn-discord{
  border-color:transparent;
  background:#5865f2;
  color:#fff;
}
.btn-discord:hover{background:#6975f5}
.btn-ghost{
  background:transparent;
  box-shadow:none;
}
.btn-danger{
  border-color:rgba(212,71,71,.35);
  background:rgba(212,71,71,.1);
  color:var(--danger);
}
.btn-success{
  border-color:rgba(46,204,113,.35);
  background:rgba(46,204,113,.13);
  color:#2ecc71;
}
.btn-small{
  min-height:34px;
  padding:0 11px;
}

.hero-panel{
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  padding:16px;
  background:rgba(9,9,7,.62);
  box-shadow:0 18px 44px rgba(0,0,0,.34);
  backdrop-filter:blur(10px);
}
.server-status{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13px;
  font-weight:900;
}
.pulse{
  width:10px;
  height:10px;
  border-radius:99px;
  background:var(--accent-strong);
  box-shadow:0 0 0 7px rgba(255,210,26,.18);
}
.hero-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin:14px 0;
}
.hero-stats div{
  padding:12px 10px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:8px;
  background:rgba(255,255,255,.06);
}
.hero-stats strong{
  display:block;
  font-size:22px;
  font-weight:900;
}
.hero-stats span{
  display:block;
  margin-top:2px;
  color:rgba(255,255,255,.62);
  font-size:11px;
  font-weight:800;
}
.hero-search{
  height:44px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 8px 0 12px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:8px;
  background:rgba(0,0,0,.32);
}
.hero-search input{
  min-width:0;
  flex:1;
  border:0;
  outline:0;
  color:#fff;
  background:transparent;
  font-size:13px;
}
.hero-search input::placeholder{color:rgba(255,255,255,.54)}
.hero-search button{
  width:32px;
  height:32px;
  border:0;
  border-radius:8px;
  color:#171100;
  background:var(--accent);
  cursor:pointer;
}

.quick-links{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  transform:translateY(18px);
}
.quick-links a{
  min-height:50px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  color:var(--text);
  box-shadow:var(--shadow-soft);
  font-size:13px;
  font-weight:900;
}
.quick-links i{color:var(--accent)}

.site-main{padding:46px 0 0}
.flash{
  display:grid;
  gap:10px;
  margin-bottom:18px;
}
.flash-item{
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:12px 14px;
  background:var(--surface);
  box-shadow:var(--shadow-soft);
  font-size:13px;
  font-weight:800;
}
.flash-success{border-color:rgba(255,210,26,.34);color:var(--accent)}
.flash-error{border-color:rgba(212,71,71,.3);color:var(--danger)}

.announcement-grid{
  display:grid;
  grid-template-columns:1.1fr 1fr 1fr;
  gap:12px;
  margin-bottom:18px;
}
.announcement{
  min-height:78px;
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  box-shadow:var(--shadow-soft);
}
.announcement i{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:var(--accent-soft);
  color:var(--accent);
  font-size:18px;
}
.announcement-hot i{background:rgba(217,154,37,.14);color:var(--gold)}
.announcement strong{
  display:block;
  font-size:14px;
  font-weight:900;
}
.announcement small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  line-height:1.35;
}

.forum-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:18px;
  align-items:start;
}
.forum-board{display:grid;gap:16px}
.forum-section,.side-widget,.panel{
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  box-shadow:var(--shadow-soft);
  overflow:hidden;
}
.forum-section-head{
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:0 16px;
  border-bottom:1px solid var(--line);
  background:var(--surface-2);
}
.forum-section-head h2{
  margin:0;
  font-size:14px;
  font-weight:900;
  text-transform:uppercase;
}
.forum-section-head span{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
.forum-row{
  display:grid;
  grid-template-columns:48px minmax(0,1fr) 86px 94px minmax(170px,260px);
  gap:14px;
  align-items:center;
  min-height:88px;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
}
.forum-row:last-child{border-bottom:0}
.forum-row:hover{background:var(--surface-2)}
.forum-icon{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:var(--accent-soft);
  color:var(--accent);
  font-size:20px;
}
.forum-main,.forum-count,.forum-last{display:grid;gap:5px;min-width:0}
.forum-main strong,.forum-last strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:14px;
  font-weight:900;
}
.forum-main small,.forum-count small,.forum-last small{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--muted);
  font-size:12px;
}
.forum-count{text-align:center}
.forum-count strong{
  font-size:18px;
  font-weight:900;
}
.forum-last{
  padding-left:14px;
  border-left:1px solid var(--line);
}
.forum-last .u-name{font-size:12px}

.forum-sidebar{display:grid;gap:16px}
.side-widget{padding:14px}
.widget-title{
  display:flex;
  align-items:center;
  gap:9px;
  margin-bottom:12px;
  font-size:13px;
  font-weight:900;
  text-transform:uppercase;
}
.widget-title i{color:var(--accent)}
.stats-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px;
}
.stats-grid div{
  padding:11px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface-2);
}
.stats-grid strong{
  display:block;
  font-size:20px;
  font-weight:900;
}
.stats-grid span{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
}
.mini-list,.ranking-list{display:grid}
.mini-list a{
  display:grid;
  gap:4px;
  padding:10px 0;
  border-top:1px solid var(--line);
}
.mini-list a:first-child{border-top:0;padding-top:0}
.mini-list strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
  font-weight:900;
}
.mini-list small{color:var(--muted);font-size:12px}
.ranking-list a{
  display:grid;
  grid-template-columns:28px minmax(0,1fr) 38px;
  align-items:center;
  gap:8px;
  padding:9px 0;
  border-top:1px solid var(--line);
}
.ranking-list a:first-child{border-top:0}
.ranking-list span{
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:var(--surface-2);
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}
.ranking-list strong{min-width:0}
.ranking-list em{
  color:var(--accent);
  font-style:normal;
  text-align:right;
  font-weight:900;
}
.online-cloud,.roles-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.online-cloud a,.roles-list span{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:30px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface-2);
  font-size:12px;
  font-weight:900;
}
.roles-list span{color:var(--role-color)}

.breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-bottom:12px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}
.breadcrumbs a{color:var(--accent);font-weight:900}
.bar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin:0 0 14px;
}
.bar-left{min-width:0}
.bar-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.page-title{
  margin:0;
  color:var(--text);
  font-size:26px;
  line-height:1.1;
  font-weight:900;
}
.page-sub{
  margin-top:7px;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}
.dot{margin:0 6px;color:var(--muted)}

.topic-head,.topic-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 100px 100px 160px;
  gap:12px;
  align-items:center;
}
.topic-head{
  min-height:44px;
  padding:0 16px;
  border-bottom:1px solid var(--line);
  background:var(--surface-2);
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}
.topic-row{
  min-height:78px;
  padding:13px 16px;
  border-bottom:1px solid var(--line);
}
.topic-row:last-child{border-bottom:0}
.topic-row:hover{background:var(--surface-2)}
.topic-main{min-width:0}
.topic-title{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  font-weight:900;
}
.topic-title a,.topic-title>span:last-child{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.topic-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-top:7px;
  color:var(--muted);
  font-size:12px;
}
.th-center{text-align:center;font-weight:900}
.th-right{text-align:right;font-weight:800;color:var(--muted)}
.tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:24px;
  padding:0 8px;
  border-radius:8px;
  background:var(--surface-3);
  color:var(--muted);
  font-size:11px;
  font-weight:900;
}
.tag-pin{background:rgba(217,154,37,.14);color:var(--gold)}
.tag-lock{background:rgba(212,71,71,.12);color:var(--danger)}
.tag-ban{background:rgba(212,71,71,.12);color:var(--danger)}
.tag-private{background:rgba(88,101,242,.14);color:#6975f5}
.tag-ok{background:rgba(46,204,113,.13);color:#2ecc71}
.empty{
  padding:22px 16px;
  color:var(--muted);
  text-align:center;
  font-size:13px;
  font-weight:800;
}
.empty-compact{padding:10px 0;text-align:left}

.pager{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:16px 0 0;
}
.pager-btn,.pager-info{
  min-width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  box-shadow:var(--shadow-soft);
  font-weight:900;
}
.pager-info{padding:0 12px}

.posts{
  display:grid;
  gap:14px;
}
.post{
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  box-shadow:var(--shadow-soft);
  overflow:hidden;
}
.post-side{
  padding:16px;
  border-right:1px solid var(--line);
  background:var(--surface-2);
}
.post-user-name{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  font-weight:900;
}
.post-user-meta{
  margin-top:7px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}
.post-body{min-width:0;padding:16px}
.post-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
.post-edit-btn{
  min-height:30px;
  padding:0 9px;
  white-space:nowrap;
}
.post-content{
  line-height:1.72;
  font-size:14px;
}
.rich-content{
  min-width:0;
  overflow-wrap:anywhere;
  line-height:1.72;
}
.rich-content br + br{
  display:block;
  content:"";
  margin-top:8px;
}
.rich-heading{
  margin:18px 0 12px;
  line-height:1.15;
  font-weight:900;
}
.rich-h1{font-size:42px}
.rich-h2{font-size:28px}
.rich-h3{font-size:21px}
.rich-color,.rich-size,.rich-highlight{font-weight:inherit}
.rich-highlight{
  border-radius:6px;
  padding:0 4px;
  background:color-mix(in srgb, var(--highlight-color) 28%, transparent);
}
.rich-underline{
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
.rich-small{font-size:.86em}
.rich-big{font-size:1.22em;font-weight:800}
.rich-align{margin:10px 0}
.rich-center{text-align:center}
.rich-left{text-align:left}
.rich-right{text-align:right}
.rich-justify{text-align:justify}
.rich-link{
  color:#4da3ff;
  font-weight:900;
  text-decoration:underline;
  text-underline-offset:3px;
}
.rich-image{
  display:block;
  max-width:100%;
  max-height:560px;
  margin:12px auto;
  border:1px solid var(--line);
  border-radius:8px;
  object-fit:contain;
}
.rich-image-link{
  display:block;
  width:max-content;
  max-width:100%;
  margin:12px auto;
}
.rich-image-link .rich-image{
  margin:0;
}
.rich-image-link:hover .rich-image{
  border-color:var(--accent);
}
.rich-quote{
  margin:12px 0;
  border-left:4px solid var(--accent);
  border-radius:0 8px 8px 0;
  padding:10px 12px;
  background:var(--surface-2);
  color:var(--muted);
}
.rich-code{
  margin:12px 0;
  border:1px solid var(--line);
  border-radius:8px;
  padding:12px;
  overflow:auto;
  background:#0b0d10;
  color:#f0f3f8;
  font-family:Consolas,Monaco,monospace;
  font-size:13px;
  line-height:1.55;
}
.rich-spoiler{
  margin:12px 0;
  border:1px solid var(--line);
  border-radius:8px;
  padding:9px 11px;
  background:var(--surface-2);
}
.rich-spoiler summary{
  cursor:pointer;
  font-weight:900;
}
.rich-list{
  margin:10px 0 10px 22px;
  padding:0;
}
.rich-list li{margin:5px 0}
.rich-hr{
  height:1px;
  border:0;
  margin:18px 0;
  background:var(--line);
}
.post-private{
  display:grid;
  gap:5px;
  border:1px dashed rgba(212,71,71,.38);
  border-radius:8px;
  padding:14px;
  background:rgba(212,71,71,.08);
  color:var(--danger);
  font-size:13px;
  font-weight:800;
}
.post-private i{font-size:18px}
.post-private span{color:var(--muted);font-weight:700}
.private-note{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:28px;
  margin-bottom:10px;
  border:1px solid rgba(255,210,26,.28);
  border-radius:8px;
  padding:0 9px;
  background:var(--accent-soft);
  color:var(--accent);
  font-size:12px;
  font-weight:900;
}
.private-topic-note{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:12px;
  align-items:center;
  margin:0 0 14px;
  border:1px solid rgba(88,101,242,.28);
  border-radius:8px;
  padding:13px 14px;
  background:rgba(88,101,242,.1);
  box-shadow:var(--shadow-soft);
}
.private-topic-note>i{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:rgba(88,101,242,.18);
  color:#6975f5;
}
.private-topic-note strong{display:block;font-size:14px;font-weight:900}
.private-topic-note span{display:block;margin-top:3px;color:var(--muted);font-size:13px;line-height:1.45}
.private-topic-note a{color:#6975f5;font-weight:900}
.appeal-decision{
  display:grid;
  gap:8px;
  margin:0 0 14px;
}
.appeal-decision-main{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:0 14px;
  background:var(--surface);
  box-shadow:var(--shadow-soft);
  font-size:14px;
  font-weight:900;
}
.appeal-accepted{border-color:rgba(46,204,113,.34);color:#2ecc71}
.appeal-rejected,.appeal-closed{border-color:rgba(212,71,71,.35);color:var(--danger)}

.form{padding:16px}
.form-grid{display:grid;gap:12px}
.field{display:grid;gap:7px}
.field-label{
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}
.input,.textarea,.select{
  width:100%;
  border:1px solid var(--line);
  border-radius:8px;
  padding:11px 12px;
  outline:0;
  background:var(--surface);
  color:var(--text);
  font-size:14px;
}
.textarea{resize:vertical}
.input:focus,.textarea:focus,.select:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 4px var(--accent-soft);
}
.field-hint{
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  line-height:1.45;
}
.attachment-field .input{
  padding:9px;
}
.attachment-upload-list{
  display:grid;
  gap:8px;
}
.attachment-upload-item{
  display:grid;
  gap:7px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:10px;
  background:var(--surface-2);
}
.attachment-upload-item.is-done{
  border-color:rgba(46,204,113,.35);
}
.attachment-upload-item.is-error{
  border-color:rgba(212,71,71,.38);
  background:rgba(212,71,71,.08);
}
.attachment-upload-main{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:0;
}
.attachment-upload-main strong{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
  font-weight:900;
}
.attachment-upload-main small{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}
.attachment-upload-bar{
  height:7px;
  overflow:hidden;
  border-radius:99px;
  background:var(--surface);
}
.attachment-upload-bar span{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:var(--accent);
  transition:width .15s ease;
}
.attachment-upload-item.is-error .attachment-upload-bar span{
  background:var(--danger);
}
.attachment-image-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,320px));
  gap:10px;
  margin-top:14px;
}
.attachment-image{
  margin:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface-2);
}
.attachment-image>a{
  display:block;
  background:#0b0d10;
}
.attachment-image img{
  display:block;
  width:100%;
  max-height:360px;
  object-fit:contain;
}
.attachment-image figcaption{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:9px 10px;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
.attachment-image figcaption span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.attachment-image figcaption a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--accent);
  font-weight:900;
  white-space:nowrap;
}
.attachment-list{
  display:grid;
  gap:8px;
  margin-top:14px;
}
.attachment-card{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:10px;
  background:var(--surface-2);
  transition:background .15s ease,border-color .15s ease,transform .15s ease;
}
.attachment-card:hover{
  border-color:var(--accent);
  background:var(--accent-soft);
  transform:translateY(-1px);
}
.attachment-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:var(--surface);
  color:var(--accent);
  font-size:18px;
}
.attachment-copy{
  display:grid;
  gap:3px;
  min-width:0;
}
.attachment-copy strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
  font-weight:900;
}
.attachment-copy small{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
.attachment-download{
  min-height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border-radius:8px;
  padding:0 10px;
  background:var(--accent);
  color:#171100;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}
.rich-editor{align-items:stretch}
.editor-toolbar{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  border:1px solid var(--line);
  border-radius:8px 8px 0 0;
  padding:8px;
  background:var(--surface-2);
}
.editor-btn,.editor-emote,.editor-swatch,.editor-color,.editor-select{
  height:34px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  color:var(--text);
  box-shadow:none;
}
.editor-btn,.editor-emote,.editor-swatch{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-weight:900;
}
.editor-btn{
  min-width:34px;
  gap:7px;
  padding:0 9px;
  font-size:12px;
}
.editor-btn:hover,.editor-emote:hover,.editor-swatch:hover{
  border-color:var(--accent);
  background:var(--accent-soft);
}
.editor-sep{
  width:1px;
  height:26px;
  background:var(--line);
}
.editor-select{
  min-width:94px;
  padding:0 8px;
  font-size:12px;
  font-weight:900;
}
.editor-swatches,.editor-emotes{
  display:inline-flex;
  align-items:center;
  flex-wrap:wrap;
  gap:5px;
}
.editor-swatch{
  width:26px;
  min-width:26px;
  height:26px;
  border-radius:99px;
  background:var(--swatch);
}
.editor-color{
  width:38px;
  padding:3px;
  cursor:pointer;
}
.editor-emote{
  min-width:30px;
  padding:0 5px;
  font-size:17px;
  line-height:1;
}
.rich-compose{
  min-height:var(--editor-min-height,220px);
  border:1px solid var(--line);
  border-top:0;
  border-radius:0 0 8px 8px;
  padding:12px;
  outline:0;
  background:var(--surface);
  color:var(--text);
  font-size:14px;
  line-height:1.72;
  overflow:auto;
  overflow-wrap:anywhere;
}
.rich-compose:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 4px var(--accent-soft);
}
.rich-compose:empty:before{
  content:attr(data-placeholder);
  color:var(--muted);
  pointer-events:none;
}
.rich-compose blockquote,
.rich-compose pre,
.rich-compose details,
.rich-compose ul,
.rich-compose ol,
.rich-compose h1,
.rich-compose h2,
.rich-compose h3{
  white-space:normal;
}
.rich-compose .rich-image,
.rich-compose img{
  max-width:100%;
  max-height:360px;
}
.rich-source{
  display:none;
}
.editor-preview{
  border:1px solid var(--line);
  border-radius:8px;
  padding:14px;
  background:var(--surface);
  box-shadow:var(--shadow-soft);
}
.form-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}
.form-two{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.auth{
  display:flex;
  justify-content:center;
}
.auth-card{
  width:min(100%,520px);
}
.auth-social{
  display:grid;
  gap:9px;
  margin:14px 0;
}
.auth-social .btn{
  width:100%;
}
.form-separator{
  display:flex;
  align-items:center;
  gap:10px;
  margin:16px 0;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}
.form-separator:before,.form-separator:after{
  content:"";
  height:1px;
  flex:1;
  background:var(--line);
}
.auth-foot{
  margin-top:14px;
  color:var(--muted);
  text-align:center;
  font-size:13px;
  font-weight:700;
}
.auth-foot a{color:var(--accent);font-weight:900}

.u-name{
  display:inline-flex;
  align-items:center;
  gap:7px;
  max-width:100%;
  color:var(--u-color,#222);
  font-weight:900;
}
.u-name span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.u-name i{opacity:.9}

.profile-shell{
  background:var(--profile-bg,var(--surface));
}
.profile-banner{
  min-height:150px;
  border-bottom:1px solid var(--line);
  background-position:center;
  background-size:cover;
}
.profile{padding:18px}
.profile-with-avatar{
  display:grid;
  grid-template-columns:82px minmax(0,1fr);
  gap:14px;
  align-items:center;
}
.profile-avatar{
  width:72px;
  height:72px;
  border-radius:8px;
  object-fit:cover;
  border:2px solid var(--profile-accent,var(--line));
  background:var(--surface-2);
}
.profile-avatar-empty{
  display:grid;
  place-items:center;
  color:var(--muted);
  font-size:24px;
}
.profile-main-info{min-width:0}
.profile-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.profile-name{
  font-size:26px;
  font-weight:900;
}
.profile-sub{
  margin-top:6px;
  color:var(--muted);
  font-weight:800;
}
.profile-bio{
  max-width:760px;
  margin-top:12px;
  border-left:3px solid var(--profile-accent,var(--accent));
  padding:9px 0 9px 12px;
  color:var(--text);
  font-size:13px;
  line-height:1.55;
}
.profile-grid{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:16px;
}
.profile-card{
  padding:14px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface-2);
}
.pc-title{
  color:var(--muted);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}
.pc-val{
  margin-top:6px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:16px;
  font-weight:900;
}
.profile-signature{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 16px;
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}
.profile-signature i{color:var(--accent)}
.profile-badges{overflow:hidden}
.badge-list{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  padding:14px 16px;
}
.badge-list span{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:0 11px;
  background:var(--surface-2);
  color:var(--text);
  font-size:12px;
  font-weight:900;
}
.badge-list i{color:var(--accent)}
.profile-columns{
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:16px;
  align-items:start;
}
.status-form{margin-bottom:14px}
.status-list{display:grid;gap:10px}
.status-item{
  display:grid;
  gap:9px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:12px;
  background:var(--surface-2);
}
.status-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
.status-head a{font-weight:900}
.status-content{
  color:var(--text);
  font-size:13px;
  line-height:1.6;
}
.status-mini-list{display:grid;gap:9px}
.status-mini-list a{
  display:grid;
  gap:4px;
  border-top:1px solid var(--line);
  padding:10px 0;
}
.status-mini-list a:first-child{border-top:0;padding-top:0}
.status-mini-list strong{font-size:13px;font-weight:900}
.status-mini-list small,.status-mini-list em{
  color:var(--muted);
  font-size:11px;
  font-style:normal;
  font-weight:800;
}
.status-mini-list span{
  color:var(--text);
  font-size:12px;
  line-height:1.45;
}

.search-results{display:grid;gap:10px}
.search-result{
  display:grid;
  gap:7px;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
}
.search-result:last-child{border-bottom:0}
.search-result strong{font-size:15px;font-weight:900}
.search-result small{color:var(--muted);font-size:12px;line-height:1.45}

.admin-tabs{
  position:relative;
  z-index:2;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:14px;
}
.admin-tabs a{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  font-size:12px;
  font-weight:900;
}
.admin-tabs a.is-active{background:var(--accent);border-color:var(--accent);color:#171100}
.admin-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-bottom:14px;
}
.admin-card{
  padding:15px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  box-shadow:var(--shadow-soft);
}
.admin-card small{
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}
.admin-card strong{
  display:block;
  margin-top:7px;
  font-size:28px;
  font-weight:900;
}
.admin-split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.admin-table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}
.admin-table th,.admin-table td{
  padding:11px 12px;
  border-bottom:1px solid var(--line);
  text-align:left;
  vertical-align:middle;
}
.admin-table th{
  color:var(--muted);
  background:var(--surface-2);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}
.admin-table tr:last-child td{border-bottom:0}
.admin-table .table-actions{
  display:flex;
  justify-content:flex-end;
  gap:7px;
  flex-wrap:wrap;
}
.inline-form{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.inline-form .input,.inline-form .select{width:auto;min-width:120px}
.stack{display:grid;gap:14px}
.subheading{
  margin:0 0 12px;
  font-size:16px;
  font-weight:900;
}
.admin-list{
  display:grid;
  gap:9px;
}
.admin-item{
  display:grid;
  grid-template-columns:minmax(160px,1fr) 100px auto auto;
  align-items:center;
  gap:8px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface-2);
}
.admin-item-wide{
  grid-template-columns:150px minmax(150px,1fr) minmax(180px,1.2fr) 110px 74px auto auto;
}
.admin-topic-item{
  grid-template-columns:minmax(220px,1fr) 190px auto auto auto auto;
}
.admin-user-item{
  grid-template-columns:minmax(240px,1fr) 210px auto;
}
.admin-user-manage{
  grid-template-columns:minmax(220px,1.2fr) 130px 220px 180px minmax(160px,1fr) auto;
}
.admin-user-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  flex-wrap:wrap;
}
.admin-topic-title{
  display:grid;
  gap:4px;
  min-width:0;
}
.admin-topic-title strong{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:900;
}
.admin-topic-title small{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}
.input-short{max-width:130px}
.input-xs{max-width:78px}
.check{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}
.check input{accent-color:var(--accent)}
.rank-preview{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  color:var(--role-color);
}
.moderation-status{
  display:grid;
  gap:5px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:12px;
  background:var(--surface-2);
}
.moderation-status strong{font-weight:900}
.moderation-status span{color:var(--muted);font-size:13px}
.moderation-status-danger{
  border-color:rgba(212,71,71,.32);
  background:rgba(212,71,71,.08);
}
.notification-list{display:grid;gap:8px}
.notification-item{
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  gap:10px;
  align-items:start;
  border:1px solid var(--line);
  border-radius:8px;
  padding:11px;
  background:var(--surface-2);
}
.notification-item.is-unread{
  border-color:rgba(255,210,26,.4);
  background:var(--accent-soft);
}
.notification-icon{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:var(--surface);
  color:var(--accent);
}
.notification-copy{
  display:grid;
  gap:4px;
  min-width:0;
}
.notification-copy strong{font-size:14px;font-weight:900}
.notification-copy small{color:var(--muted);font-size:13px;line-height:1.4}
.notification-copy em{color:var(--muted);font-size:11px;font-style:normal;font-weight:800}

.ranking-page-list{display:grid}
.ranking-page-row{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 100px 100px 160px;
  gap:12px;
  align-items:center;
  min-height:72px;
  padding:12px 16px;
  border-bottom:1px solid var(--line);
}
.ranking-page-row:last-child{border-bottom:0}
.ranking-page-row:hover{background:var(--surface-2)}
.ranking-place{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:var(--accent);
  color:#171100;
  font-size:13px;
  font-weight:900;
}
.ranking-user{display:grid;gap:4px;min-width:0}
.ranking-user strong,.ranking-user small{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.ranking-user small{color:var(--muted);font-size:12px;font-weight:700}
.staff-board{display:grid;gap:16px}
.staff-list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  padding:14px 16px;
}
.staff-card{
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  gap:11px;
  align-items:center;
  min-height:64px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:10px;
  background:var(--surface-2);
}
.staff-card:hover{border-color:var(--staff-color)}
.staff-avatar{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:color-mix(in srgb, var(--staff-color) 18%, transparent);
  color:var(--staff-color);
}
.staff-copy{display:grid;gap:4px;min-width:0}
.staff-copy strong,.staff-copy small{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.staff-copy small{color:var(--muted);font-size:12px;font-weight:700}
.activity-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  align-items:start;
}

.footer{
  margin-top:36px;
  border-top:1px solid var(--line);
  background:var(--surface);
}
.footer-inner{
  min-height:86px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.footer-title{font-weight:900}
.footer-sub{
  margin-top:5px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}
.footer-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}
.footer-discord{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  gap:9px;
  border:1px solid rgba(88,101,242,.35);
  border-radius:8px;
  padding:0 12px;
  background:rgba(88,101,242,.12);
  color:#5865f2;
  font-size:12px;
  font-weight:900;
}
.theme-toggle{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  gap:9px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:0 12px;
  background:var(--surface-2);
  color:var(--text);
  cursor:pointer;
  font-size:12px;
  font-weight:900;
}

@media (max-width:1100px){
  .hero-main{grid-template-columns:1fr}
  .hero-panel{max-width:620px}
  .forum-layout{grid-template-columns:1fr}
  .forum-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:860px){
  .nav-toggle{display:grid;place-items:center}
  .nav{
    position:absolute;
    z-index:20;
    top:72px;
    left:18px;
    right:18px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    padding:10px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:8px;
    background:rgba(9,9,7,.94);
    box-shadow:0 18px 34px rgba(0,0,0,.34);
  }
  .nav.open{display:flex}
  .nav-link{justify-content:flex-start}
  .quick-links{grid-template-columns:repeat(2,minmax(0,1fr))}
  .announcement-grid{grid-template-columns:1fr}
  .forum-row{
    grid-template-columns:44px minmax(0,1fr) 80px;
    gap:10px;
  }
  .forum-row .forum-count + .forum-count,.forum-last{display:none}
  .topic-head{display:none}
  .topic-row{grid-template-columns:1fr;gap:7px}
  .th-center,.th-right{text-align:left}
  .post{grid-template-columns:1fr}
  .post-side{border-right:0;border-bottom:1px solid var(--line)}
  .post-top{align-items:flex-start;flex-direction:column}
  .profile-columns{grid-template-columns:1fr}
  .staff-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .activity-grid{grid-template-columns:1fr}
  .ranking-page-row{grid-template-columns:44px minmax(0,1fr);gap:8px}
  .ranking-page-row .th-center,.ranking-page-row .th-right{grid-column:2;text-align:left}
  .profile-grid,.admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .form-two{grid-template-columns:1fr}
  .admin-split{grid-template-columns:1fr}
  .admin-item,.admin-item-wide,.admin-topic-item,.admin-user-item,.admin-user-manage{grid-template-columns:1fr}
  .input-short,.input-xs{max-width:none}
}

@media (max-width:600px){
  .wrap{padding:0 14px}
  .notice-inner{align-items:flex-start;flex-direction:column;padding-top:9px;padding-bottom:9px}
  .hero-top{min-height:68px}
  .brand-title{font-size:17px}
  .brand-sub{display:none}
  .hero-copy h1{font-size:34px}
  .hero-stats{grid-template-columns:1fr}
  .quick-links{grid-template-columns:1fr}
  .bar{align-items:flex-start;flex-direction:column}
  .bar-right{justify-content:flex-start}
  .forum-sidebar{grid-template-columns:1fr}
  .forum-row{grid-template-columns:42px minmax(0,1fr)}
  .forum-count{display:none}
  .attachment-card{grid-template-columns:42px minmax(0,1fr)}
  .attachment-download{grid-column:2;justify-self:start}
  .staff-list{grid-template-columns:1fr}
  .profile-grid,.admin-grid{grid-template-columns:1fr}
  .footer-inner{align-items:flex-start;flex-direction:column;padding-top:18px;padding-bottom:18px}
  .footer-right{justify-content:flex-start}
}
