:root {
  --bg: #07070a;
  --bg-2: #0a0a0f;
  --surface: #101015;
  --surface-2: #15151c;
  --surface-3: #1a1922;
  --line: rgba(255,255,255,.10);
  --line-strong: rgba(157,83,255,.48);
  --text: #f6f3fa;
  --muted: #97919f;
  --purple: #9250ff;
  --purple-2: #b05cff;
  --pink: #dc52ff;
  --green: #5ce0a3;
  --yellow: #f2c66d;
  --red: #ff718d;
  --heading: "Barlow Condensed", Impact, sans-serif;
  --body: Inter, system-ui, sans-serif;
  --container: 1240px;
  --cut: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 78% -8%, rgba(146,80,255,.12), transparent 30%),
    linear-gradient(180deg, #08080c, #07070a 48%, #09090d);
  font-family: var(--body);
  line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
}
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
code { color: #cfadff; }
main { min-height: 62vh; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.narrow { width: min(900px, calc(100% - 48px)); }
.section-gap { margin-top: 64px; }
.muted { color: var(--muted); }
.ambient { display: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(7,7,10,.94);
  backdrop-filter: blur(18px);
}
.nav-wrap { min-height: 86px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.site-logo { width: 210px; height: auto; }
.main-nav { display: flex; align-items: stretch; align-self: stretch; gap: 26px; margin-right: auto; }
.main-nav a {
  position: relative;
  display: flex;
  align-items: center;
  color: #b6b0bb;
  font-family: var(--heading);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -1px;
  height: 3px;
  background: var(--purple);
  transition: right .18s ease;
}
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions form { margin: 0; }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--surface); color: #fff; width: 44px; height: 42px; cursor: pointer; font-size: 21px; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; color: #c2bdc7; font-size: 12px; font-weight: 700; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(92,224,163,.65); }

/* Shared type + controls */
.eyebrow, .portal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #b98bff;
  font-family: var(--heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.eyebrow::before, .portal-kicker > span { content: ""; width: 28px; height: 2px; background: var(--purple); }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 0;
  clip-path: var(--cut);
  cursor: pointer;
  font-family: var(--heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .085em;
  text-transform: uppercase;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(135deg, #7d38e9, #a349ff); color: #fff; }
.button-secondary { border-color: var(--line-strong); background: rgba(146,80,255,.10); color: #e7d9ff; }
.button-ghost, .button-outline { border-color: var(--line); background: #101015; color: #d8d2dd; }
.button-light { background: #fff; color: #141118; }
.button-danger { border-color: rgba(255,113,141,.40); background: rgba(255,113,141,.11); color: #ffb2c1; }
.button-small { min-height: 39px; padding-inline: 15px; font-size: 11px; }
.button-full { width: 100%; }
.text-link, .portal-text-link { color: #c89aff; font-family: var(--heading); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.flash-wrap { margin-top: 18px; }
.flash { padding: 14px 17px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; }
.flash-success { border-color: rgba(92,224,163,.34); color: #a8efcf; }
.flash-error { border-color: rgba(255,113,141,.36); color: #ffb1c0; }
.flash-warning { border-color: rgba(242,198,109,.36); color: #f9dda4; }

/* Shared page hero */
.page-hero, .thread-heading, .admin-page-heading {
  position: relative;
  min-height: 310px;
  padding-top: 72px;
  padding-bottom: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  border-bottom: 1px solid var(--line);
}
.page-hero::after, .thread-heading::after, .admin-page-heading::after {
  content: "NW";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: -1;
  color: rgba(146,80,255,.055);
  font-family: var(--heading);
  font-size: clamp(130px, 18vw, 250px);
  font-style: italic;
  font-weight: 900;
  line-height: .7;
  letter-spacing: -.08em;
}
.page-hero h1, .thread-heading h1, .admin-page-heading h1, .auth-copy h1, .center-state h1, .news-article h1 {
  margin: 13px 0 13px;
  max-width: 850px;
  font-family: var(--heading);
  font-size: clamp(54px, 7vw, 88px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: .88;
  text-transform: uppercase;
}
.page-hero p, .thread-heading > p, .admin-page-heading p, .auth-copy p { max-width: 680px; margin: 0; color: var(--muted); font-size: 15px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; color: #736d78; font-size: 11px; }
.breadcrumbs a { color: #bc91f8; }
.compact-hero { min-height: 310px; }

/* Homepage hero */
.portal-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.portal-hero-grid { position: absolute; inset: 0; opacity: .30; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 92px 92px; mask-image: linear-gradient(90deg, #000, transparent 84%); }
.portal-hero-glow { position: absolute; width: 480px; height: 480px; border-radius: 50%; filter: blur(115px); opacity: .22; }
.portal-hero-glow-a { right: 6%; top: 5%; background: var(--purple); }
.portal-hero-glow-b { right: -12%; bottom: -30%; background: var(--pink); opacity: .12; }
.portal-hero-inner { position: relative; min-height: 650px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .8fr); gap: 68px; align-items: center; }
.portal-hero-copy { padding: 70px 0; }
.portal-hero-copy h1 { margin: 18px 0 22px; font-family: var(--heading); font-size: clamp(78px, 10vw, 132px); font-style: italic; font-weight: 900; line-height: .76; letter-spacing: -.035em; text-transform: uppercase; }
.portal-hero-copy h1 span { display: block; }
.portal-hero-copy h1 .accent-line { color: transparent; -webkit-text-stroke: 1px #bb8fff; }
.portal-hero-copy > p { max-width: 650px; margin: 0; color: #a39daa; font-size: 16px; }
.portal-actions { display: flex; gap: 10px; margin-top: 30px; }
.portal-stats { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 650px; margin-top: 46px; border-top: 1px solid var(--line); }
.portal-stats > div { padding: 22px 18px 0 0; }
.portal-stats > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.portal-stats strong { display: block; font-family: var(--heading); font-size: 35px; line-height: 1; }
.portal-stats span { color: #706a74; font-family: var(--heading); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.portal-hero-art { position: relative; min-height: 470px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(22,21,29,.96), rgba(10,10,14,.94)); clip-path: var(--cut); }
.portal-hero-art::before { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(146,80,255,.20); }
.hero-emblem-wrap { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); width: 260px; height: 260px; display: grid; place-items: center; }
.hero-emblem-wrap img { width: 170px; filter: drop-shadow(0 0 38px rgba(146,80,255,.34)); }
.hero-emblem-ring { position: absolute; inset: 0; border: 1px solid rgba(184,139,255,.22); border-radius: 50%; }
.ring-two { inset: 28px; border-style: dashed; }
.hero-data { position: absolute; display: grid; gap: 1px; color: #706a75; font-family: var(--heading); font-size: 9px; letter-spacing: .13em; }
.hero-data strong { color: #dfd7e5; font-size: 14px; }
.hero-data-top { top: 44px; left: 44px; }
.hero-data-bottom { bottom: 43px; right: 43px; text-align: right; }
.hero-number { position: absolute; right: 38px; top: 28px; color: rgba(255,255,255,.12); font-family: var(--heading); font-size: 60px; font-weight: 900; }
.hero-frame, .hero-crosshair { display: none; }
.portal-marquee { height: 54px; overflow: hidden; display: flex; align-items: center; border-top: 1px solid var(--line); background: #0c0c11; }
.portal-marquee div { min-width: max-content; color: #716b76; font-family: var(--heading); font-size: 11px; font-weight: 800; letter-spacing: .14em; word-spacing: 13px; }
.portal-marquee span { color: var(--purple); }

/* Homepage sections */
.portal-section { padding-top: 100px; padding-bottom: 100px; }
.portal-section-head { display: grid; grid-template-columns: 150px minmax(0,1fr) auto; align-items: end; gap: 30px; margin-bottom: 38px; }
.portal-section-head > div:first-child { display: grid; gap: 10px; }
.section-index { color: #4d4851; font-family: var(--heading); font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.portal-section-head h2, .community-intro h2, .portal-cta h2 { margin: 0; font-family: var(--heading); font-size: clamp(54px, 6vw, 78px); font-style: italic; font-weight: 900; line-height: .82; letter-spacing: -.025em; text-transform: uppercase; }
.portal-section-head h2 em, .community-intro h2 em, .portal-cta h2 em { color: transparent; -webkit-text-stroke: 1px #8c8492; font-style: italic; }
.circle-link { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); font-size: 20px; }
.portal-news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.portal-news-card { min-width: 0; border: 1px solid var(--line); background: var(--surface); clip-path: var(--cut); transition: transform .18s ease, border-color .18s ease; }
.portal-news-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.portal-news-art { position: relative; min-height: 180px; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 30% 30%, rgba(146,80,255,.28), transparent 35%), linear-gradient(145deg,#17131f,#0e0e13); }
.portal-news-art::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 32px 32px; }
.news-number { position: absolute; z-index: 1; top: 16px; left: 16px; color: #6e6674; font-family: var(--heading); font-size: 11px; font-weight: 800; }
.news-tag { position: absolute; z-index: 1; right: 14px; top: 14px; padding: 4px 8px; background: var(--purple); font-family: var(--heading); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.news-art-mark { position: absolute; z-index: 1; left: 50%; top: 53%; transform: translate(-50%,-50%); color: rgba(255,255,255,.13); font-family: var(--heading); font-size: 76px; font-weight: 900; font-style: italic; letter-spacing: -.08em; }
.portal-news-content { padding: 22px; }
.portal-news-content time { color: #706a75; font-family: var(--heading); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.portal-news-content h3 { margin: 9px 0 10px; font-family: var(--heading); font-size: 25px; font-weight: 800; line-height: .95; text-transform: uppercase; }
.portal-news-content p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.read-more { display: block; margin-top: 20px; color: #c69cff; font-family: var(--heading); font-size: 10px; font-weight: 800; letter-spacing: .11em; }

.portal-dark-band { padding: 92px 0; border-block: 1px solid var(--line); background: #0b0b0f; }
.portal-community-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr); gap: 70px; align-items: center; }
.community-intro p { max-width: 600px; color: var(--muted); font-size: 14px; }
.community-intro .button { margin-top: 15px; }
.community-feature-panel { position: relative; min-height: 390px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); clip-path: var(--cut); }
.community-feature-panel::before { content: ""; position: absolute; inset: 24px; border: 1px solid rgba(146,80,255,.18); }
.community-scanlines { position: absolute; inset: 0; opacity: .08; background: repeating-linear-gradient(0deg,#fff 0,#fff 1px,transparent 1px,transparent 5px); }
.community-logo-ghost { position: absolute; right: -18px; top: 10px; color: rgba(146,80,255,.08); font-family: var(--heading); font-size: 200px; font-weight: 900; font-style: italic; }
.community-panel-copy { position: absolute; left: 45px; bottom: 45px; display: grid; }
.community-panel-copy small { color: #7f7884; font-family: var(--heading); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.community-panel-copy strong { margin-top: 8px; font-family: var(--heading); font-size: 55px; font-style: italic; font-weight: 900; line-height: .82; text-transform: uppercase; }
.community-panel-stat { position: absolute; top: 45px; left: 45px; display: grid; }
.community-panel-stat span { color: #716a76; font-family: var(--heading); font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.community-panel-stat b { font-family: var(--heading); font-size: 30px; }

.portal-forum-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 20px; }
.portal-thread-list, .portal-links-card, .discord-promo { border: 1px solid var(--line); background: var(--surface); }
.portal-thread { display: grid; grid-template-columns: 38px minmax(0,1fr) 70px 24px; gap: 16px; align-items: center; min-height: 96px; padding: 18px 22px; border-bottom: 1px solid var(--line); transition: background .18s ease; }
.portal-thread:last-child { border-bottom: 0; }
.portal-thread:hover { background: var(--surface-2); }
.thread-no { color: #665f6a; font-family: var(--heading); font-size: 10px; font-weight: 800; }
.thread-copy small { color: #a56cf2; font-family: var(--heading); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.thread-copy h3 { margin: 3px 0 5px; font-family: var(--heading); font-size: 23px; line-height: .95; text-transform: uppercase; }
.thread-copy > span { color: #6f6873; font-family: var(--heading); font-size: 8px; letter-spacing: .09em; }
.thread-replies { display: grid; text-align: center; }
.thread-replies strong { font-family: var(--heading); font-size: 24px; line-height: 1; }
.thread-replies span { color: #6f6873; font-family: var(--heading); font-size: 8px; letter-spacing: .11em; }
.thread-arrow { color: #9d73d3; font-size: 18px; }
.portal-empty { padding: 50px 24px; }
.portal-empty span { color: #896ab2; font-family: var(--heading); font-size: 9px; letter-spacing: .15em; }
.portal-empty h3 { margin: 8px 0; font-family: var(--heading); font-size: 28px; text-transform: uppercase; }
.portal-sidebar { display: grid; gap: 16px; align-content: start; }
.discord-promo { position: relative; overflow: hidden; min-height: 270px; padding: 27px; background: linear-gradient(150deg,#4d37b9,#7650e8); clip-path: var(--cut); }
.discord-grid { position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg,#fff 1px,transparent 1px); background-size: 36px 36px; }
.discord-mark, .discord-promo small, .discord-promo h3, .discord-promo p, .discord-promo a { position: relative; z-index: 1; }
.discord-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.30); border-radius: 50%; }
.discord-promo small { display: block; margin-top: 27px; font-family: var(--heading); font-size: 8px; letter-spacing: .14em; }
.discord-promo h3 { margin: 7px 0 10px; font-family: var(--heading); font-size: 39px; font-style: italic; line-height: .84; text-transform: uppercase; }
.discord-promo p { margin: 0; color: rgba(255,255,255,.74); font-size: 11px; }
.discord-promo a { display: inline-block; margin-top: 19px; font-family: var(--heading); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.portal-links-card > span { display: block; padding: 15px 18px; border-bottom: 1px solid var(--line); color: #6c6570; font-family: var(--heading); font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.portal-links-card a { display: flex; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); font-family: var(--heading); font-size: 12px; font-weight: 800; letter-spacing: .07em; }
.portal-links-card a:last-child { border-bottom: 0; }
.portal-links-card a b { color: #a875ed; }
.portal-cta { position: relative; overflow: hidden; padding: 72px 0; border-top: 1px solid var(--line); background: linear-gradient(105deg,#6d2dd0,#9b42ef); }
.portal-cta::after { content: "NW"; position: absolute; right: -20px; top: -85px; color: rgba(255,255,255,.07); font-family: var(--heading); font-size: 260px; font-weight: 900; font-style: italic; }
.portal-cta-inner { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.portal-cta .portal-kicker { color: rgba(255,255,255,.75); }
.portal-cta .portal-kicker > span { background: #fff; }
.portal-cta h2 em { -webkit-text-stroke-color: rgba(255,255,255,.72); }
.portal-cta-grid { display: none; }

/* Forum + common surfaces */
.forum-shell, .form-card, .forum-post, .reply-box, .login-prompt, .info-card, .staff-card, .server-card, .news-article {
  border: 1px solid var(--line);
  background: var(--surface);
  clip-path: var(--cut);
}
.forum-shell { overflow: hidden; margin-bottom: 88px; }
.forum-list-head { display: grid; grid-template-columns: 1fr 260px; padding: 13px 21px; border-bottom: 1px solid var(--line); background: #0d0d12; color: #6c6670; font-family: var(--heading); font-size: 8px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.forum-list-head span:last-child { text-align: center; }
.category-row { display: grid; grid-template-columns: 46px minmax(0,1fr) 155px 120px 20px; gap: 16px; align-items: center; padding: 21px; border-bottom: 1px solid var(--line); transition: background .18s ease; }
.category-row:last-child, .thread-row:last-child { border-bottom: 0; }
.category-row:hover, .thread-row:hover { background: var(--surface-2); }
.category-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(146,80,255,.26); background: rgba(146,80,255,.08); color: #be91ff; font-family: var(--heading); font-weight: 900; }
.category-main h2, .thread-main h2 { margin: 0 0 4px; font-family: var(--heading); font-size: 20px; line-height: 1; text-transform: uppercase; }
.category-main p, .thread-main p { margin: 0; color: var(--muted); font-size: 11px; }
.category-stats { display: grid; grid-template-columns: auto auto; gap: 2px 7px; align-items: baseline; }
.category-stats strong { text-align: right; font-family: var(--heading); font-size: 15px; }
.category-stats span, .category-last span, .thread-latest span, .thread-stat span { color: #6f6873; font-family: var(--heading); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.category-last, .thread-latest, .thread-stat { display: grid; text-align: right; }
.category-last strong, .thread-latest strong, .thread-stat strong { font-family: var(--heading); font-size: 14px; }
.row-arrow { color: #a976ec; }
.thread-row { display: grid; grid-template-columns: 24px minmax(0,1fr) 70px 70px 100px; gap: 16px; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); transition: background .18s ease; }
.thread-state { color: #ae7cef; font-size: 10px; }
.thread-heading { min-height: 270px; }
.post-stack { display: grid; gap: 15px; margin-top: 42px; margin-bottom: 88px; }
.forum-post { display: grid; grid-template-columns: 178px minmax(0,1fr); overflow: hidden; }
.post-author { padding: 24px 18px; border-right: 1px solid var(--line); background: #0d0d12; display: flex; flex-direction: column; align-items: center; text-align: center; }
.avatar { width: 56px; height: 56px; display: grid; place-items: center; background: linear-gradient(145deg,#7e3be5,#a057ff); font-family: var(--heading); font-size: 19px; font-weight: 900; }
.avatar.large { width: 78px; height: 78px; font-size: 25px; }
.post-author strong { margin-top: 11px; font-size: 12px; }
.post-author small { margin-top: 11px; color: var(--muted); font-size: 9px; }
.role-badge { display: inline-flex; width: fit-content; margin-top: 7px; padding: 3px 7px; border: 1px solid var(--line); color: #9d96a2; font-family: var(--heading); font-size: 8px; font-weight: 800; letter-spacing: .10em; text-transform: uppercase; }
.role-admin { border-color: rgba(146,80,255,.35); background: rgba(146,80,255,.12); color: #c69cff; }
.role-moderator { border-color: rgba(82,153,255,.32); background: rgba(82,153,255,.10); color: #9dc6ff; }
.post-content { min-width: 0; padding: 0 26px 28px; }
.post-meta { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line); color: #77717c; font-size: 9px; }
.post-body { padding-top: 23px; white-space: pre-wrap; overflow-wrap: anywhere; color: #ded9e2; font-size: 14px; }
.reply-box { padding: 24px; }
.reply-box label { display: block; margin-bottom: 12px; font-family: var(--heading); font-size: 24px; font-weight: 800; text-transform: uppercase; }
.login-prompt { padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.login-prompt strong { font-family: var(--heading); font-size: 20px; text-transform: uppercase; }
.login-prompt p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }

/* Forms */
.form-card { padding: 28px; margin-bottom: 88px; }
.field { display: grid; gap: 7px; margin-bottom: 19px; }
.field label, .admin-panel label, .admin-create-box label, .admin-edit-card label { color: #ddd7e2; font-size: 11px; font-weight: 700; }
.field small, .admin-panel label small { color: var(--muted); font-size: 9px; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 0; outline: 0; background: #0b0b10; color: var(--text); padding: 12px 13px; transition: border-color .18s ease, box-shadow .18s ease; }
input:focus, textarea:focus, select:focus { border-color: var(--purple); box-shadow: 0 0 0 2px rgba(146,80,255,.10); }
textarea { resize: vertical; line-height: 1.55; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.form-actions > span { color: var(--muted); font-size: 10px; }
.form-note { margin: 16px 0 0; color: var(--muted); text-align: center; font-size: 10px; }
.form-note a { color: #c695ff; font-weight: 700; }
.auth-section { min-height: 650px; padding-block: 78px; display: grid; grid-template-columns: minmax(0,1fr) 430px; gap: 85px; align-items: center; }
.auth-copy { position: relative; }
.auth-copy::after { content: "NW"; position: absolute; z-index: -1; left: -20px; top: 20%; color: rgba(146,80,255,.055); font-family: var(--heading); font-size: 190px; font-weight: 900; font-style: italic; }
.auth-card { margin: 0; }

/* Public information pages */
.server-directory { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 88px; }
.server-card { min-height: 260px; padding: 25px; }
.server-card-top { display: flex; align-items: center; gap: 8px; color: #89828e; font-family: var(--heading); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.server-card h2, .staff-card h2, .rules-list h2 { margin: 18px 0 8px; font-family: var(--heading); font-size: 29px; line-height: .95; text-transform: uppercase; }
.server-card p, .staff-card p, .rules-list p { color: var(--muted); font-size: 12px; }
.server-address { display: flex; align-items: center; gap: 8px; margin: 20px 0; padding: 10px 11px; border: 1px solid var(--line); background: #0b0b10; }
.server-address code { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.server-address button { border: 0; background: transparent; color: #c79cff; cursor: pointer; font-family: var(--heading); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.rules-list { margin-bottom: 88px; border: 1px solid var(--line); background: var(--surface); }
.rules-list article { display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding: 24px; border-bottom: 1px solid var(--line); }
.rules-list article:last-child { border-bottom: 0; }
.rules-list article > span { color: #a870ec; font-family: var(--heading); font-size: 19px; font-weight: 800; }
.rules-list h2 { margin-top: 0; font-size: 23px; }
.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 88px; }
.staff-card { min-height: 285px; padding: 28px; }
.staff-card h2 { margin-top: 17px; }
.info-card { padding: 28px; }
.empty-state { padding: 50px 24px; text-align: center; }
.empty-state strong { font-family: var(--heading); font-size: 24px; text-transform: uppercase; }
.empty-state p { color: var(--muted); font-size: 12px; }
.empty-state.large { margin: 12px; }

/* News article */
.news-article { margin-top: 58px; margin-bottom: 88px; padding: 48px; }
.news-article .breadcrumbs { margin-bottom: 24px; }
.news-article h1 { font-size: clamp(52px, 7vw, 82px); }
.news-meta { color: #76707b; font-size: 10px; }
.news-lead { margin: 28px 0; padding: 22px 0; border-block: 1px solid var(--line); color: #d7d1dc; font-size: 18px; line-height: 1.65; }
.news-body { margin-bottom: 34px; white-space: pre-wrap; color: #c6c0ca; font-size: 14px; line-height: 1.85; }

/* 404 / error */
.center-state { min-height: 650px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.error-code { color: #a56ff0; font-family: var(--heading); font-size: 12px; font-weight: 800; letter-spacing: .28em; }
.center-state p { color: var(--muted); }

/* Footer */
.portal-footer { margin-top: 0; border-top: 1px solid var(--line); background: #060609; }
.portal-footer-main { display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; padding-top: 62px; padding-bottom: 48px; }
.portal-footer-brand .footer-logo { width: 210px; }
.portal-footer-brand p { max-width: 430px; color: #77717c; font-size: 11px; line-height: 1.8; }
.portal-footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.portal-footer-nav > div { display: grid; align-content: start; gap: 8px; }
.portal-footer-nav span { margin-bottom: 5px; color: #5f5964; font-family: var(--heading); font-size: 8px; font-weight: 800; letter-spacing: .17em; }
.portal-footer-nav a { color: #c6c0cb; font-family: var(--heading); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.portal-footer-nav a:hover { color: #fff; }
.portal-footer-bottom { display: flex; justify-content: space-between; padding-block: 16px; border-top: 1px solid var(--line); color: #5f5963; font-family: var(--heading); font-size: 8px; font-weight: 700; letter-spacing: .14em; }

/* Administration */
.admin-page-heading { min-height: 245px; padding-top: 55px; padding-bottom: 50px; }
.admin-page-heading h1 { font-size: clamp(48px, 6vw, 72px); }
.admin-page-heading > .button { flex: 0 0 auto; }
.admin-layout { display: grid; grid-template-columns: 235px minmax(0,1fr); gap: 20px; align-items: start; margin-top: 36px; margin-bottom: 88px; }
.admin-sidebar { position: sticky; top: 106px; border: 1px solid var(--line); background: var(--surface); }
.admin-sidebar-title { display: grid; padding: 17px 18px; border-bottom: 1px solid var(--line); }
.admin-sidebar-title span { color: #9a6bd7; font-family: var(--heading); font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.admin-sidebar-title strong { margin-top: 3px; font-family: var(--heading); font-size: 20px; text-transform: uppercase; }
.admin-sidebar nav { display: grid; padding: 8px; }
.admin-sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-left: 2px solid transparent; color: #928c98; font-family: var(--heading); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.admin-sidebar nav a span { width: 19px; color: #9c70d7; text-align: center; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { border-left-color: var(--purple); background: rgba(146,80,255,.08); color: #fff; }
.admin-sidebar > .button { margin: 8px; width: calc(100% - 16px); }
.admin-content { min-width: 0; display: grid; gap: 20px; }
.admin-panel, .admin-stat-grid article { border: 1px solid var(--line); background: var(--surface); }
.admin-panel { padding: 22px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.admin-stat-grid article { min-height: 132px; padding: 19px; }
.admin-stat-grid span { color: #77717d; font-family: var(--heading); font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.admin-stat-grid strong { display: block; margin: 8px 0; font-family: var(--heading); font-size: 36px; line-height: 1; }
.admin-stat-grid small { color: var(--muted); font-size: 9px; }
.admin-grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-panel-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 18px; }
.admin-panel-head span { color: #8d67bd; font-family: var(--heading); font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.admin-panel-head h2 { margin: 2px 0 0; font-family: var(--heading); font-size: 25px; text-transform: uppercase; }
.admin-panel-head a { color: #bb8df6; font-size: 10px; }
.admin-subsection { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.admin-list { border-top: 1px solid var(--line); }
.admin-list-row { min-height: 62px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.admin-list-row > div:nth-child(2) { min-width: 0; display: grid; }
.admin-list-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.admin-list-row span { color: var(--muted); font-size: 9px; }
.admin-avatar { width: 36px; height: 36px; font-size: 12px; }
.admin-list-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(146,80,255,.25); color: #b78aef; font-family: var(--heading); font-weight: 900; }
.admin-state-dots { display: flex; gap: 4px; }
.admin-state-dots i { width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid var(--line); color: #5c5660; font-family: var(--heading); font-size: 8px; font-style: normal; }
.admin-state-dots i.on { border-color: rgba(146,80,255,.36); background: rgba(146,80,255,.12); color: #c396ff; }
.admin-state-dots i.danger { border-color: rgba(255,113,141,.36); background: rgba(255,113,141,.11); color: #ff9fb1; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 690px; }
.admin-table th { padding: 10px 10px; border-bottom: 1px solid var(--line); color: #716b76; text-align: left; font-family: var(--heading); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.admin-table td { padding: 13px 10px; border-bottom: 1px solid var(--line); color: #c9c3cd; vertical-align: middle; font-size: 10px; }
.admin-table tr:last-child td { border-bottom: 0; }
.table-sub { display: block; margin-top: 2px; max-width: 430px; color: var(--muted); font-size: 9px; }
.table-user { display: flex; align-items: center; gap: 9px; }
.table-user > div:last-child { display: grid; }
.table-user span { color: var(--muted); font-size: 9px; }
.table-actions, .moderation-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.table-actions form { display: flex; gap: 6px; margin: 0; }
.table-actions select { min-width: 105px; padding: 8px 9px; }
.status-pill { display: inline-flex; padding: 3px 7px; border: 1px solid var(--line); color: #aaa3af; font-family: var(--heading); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.status-published { border-color: rgba(92,224,163,.30); background: rgba(92,224,163,.09); color: #91e8bf; }
.status-draft { border-color: rgba(242,198,109,.28); background: rgba(242,198,109,.08); color: #e9ca88; }
.status-suspended { border-color: rgba(255,113,141,.30); background: rgba(255,113,141,.08); color: #ff9eb1; }
.status-featured { border-color: rgba(146,80,255,.34); background: rgba(146,80,255,.10); color: #c79fff; }
.admin-edit-stack { display: grid; gap: 12px; }
.admin-edit-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding: 16px; border: 1px solid var(--line); background: #0d0d12; }
.admin-edit-card > form:first-child { min-width: 0; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.category-form-grid { grid-template-columns: 1.4fr 1.2fr .8fr .6fr; }
.admin-edit-card label, .admin-editor > label, .admin-create-box label { display: grid; gap: 6px; margin-bottom: 11px; }
.admin-card-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 10px; }
.admin-card-actions > span { color: var(--muted); font-size: 9px; }
.checkbox-field { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; }
.checkbox-field input { width: 15px; height: 15px; accent-color: var(--purple); }
.admin-create-box { border: 1px dashed rgba(146,80,255,.32); background: rgba(146,80,255,.035); }
.admin-create-box summary { padding: 14px 16px; color: #c59cf7; cursor: pointer; font-family: var(--heading); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.admin-create-box form { padding: 0 16px 16px; }
.admin-editor { display: grid; }
.admin-filter { display: grid; grid-template-columns: minmax(220px,1fr) 170px auto; gap: 9px; margin-bottom: 18px; }
.admin-empty { padding: 22px !important; color: var(--muted) !important; text-align: center; font-size: 10px; }

/* Responsive */
@media (max-width: 1080px) {
  .main-nav { gap: 17px; }
  .site-logo { width: 178px; }
  .portal-hero-inner { grid-template-columns: minmax(0,1fr) 400px; gap: 36px; }
  .portal-news-grid { grid-template-columns: repeat(2,1fr); }
  .staff-grid, .server-directory { grid-template-columns: repeat(2,1fr); }
  .admin-stat-grid { grid-template-columns: repeat(2,1fr); }
  .category-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .container, .narrow { width: min(100% - 32px, var(--container)); }
  .nav-wrap { min-height: 76px; flex-wrap: wrap; gap: 10px; padding-block: 10px; }
  .site-logo { width: 165px; }
  .nav-toggle { display: grid; place-items: center; margin-left: auto; }
  .main-nav { display: none; order: 4; width: 100%; height: auto; padding: 5px 0 8px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 0; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 14px; }
  .main-nav a::after { display: none; }
  .nav-actions { margin-left: 0; }
  .user-chip { display: none; }
  .portal-hero-inner { min-height: auto; grid-template-columns: 1fr; padding-bottom: 70px; }
  .portal-hero-copy { padding: 70px 0 20px; }
  .portal-hero-art { min-height: 390px; }
  .portal-community-grid { grid-template-columns: 1fr; }
  .portal-forum-layout { grid-template-columns: 1fr; }
  .portal-sidebar { grid-template-columns: 1fr 1fr; }
  .page-hero, .thread-heading, .admin-page-heading { min-height: 280px; }
  .category-row { grid-template-columns: 46px minmax(0,1fr) 130px 20px; }
  .category-last { display: none; }
  .thread-row { grid-template-columns: 24px minmax(0,1fr) 65px 65px; }
  .thread-latest { display: none; }
  .auth-section { grid-template-columns: 1fr; gap: 35px; }
  .auth-copy { text-align: center; }
  .auth-copy p { margin-inline: auto; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
  .admin-sidebar nav { grid-template-columns: repeat(4,1fr); }
  .admin-sidebar > .button { width: auto; }
  .admin-grid-two { grid-template-columns: 1fr; }
  .portal-footer-main { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 680px) {
  .container, .narrow { width: calc(100% - 24px); }
  .nav-actions .button-ghost { display: none; }
  .portal-hero-copy h1 { font-size: clamp(65px, 20vw, 92px); }
  .portal-actions { display: grid; }
  .portal-actions .button { width: 100%; }
  .portal-stats strong { font-size: 27px; }
  .portal-hero-art { min-height: 315px; }
  .hero-emblem-wrap { width: 210px; height: 210px; }
  .hero-emblem-wrap img { width: 130px; }
  .portal-section { padding-block: 72px; }
  .portal-section-head { grid-template-columns: 1fr auto; gap: 15px; }
  .portal-section-head > div:first-child { grid-column: 1 / -1; }
  .portal-section-head h2 { grid-column: 1; }
  .portal-news-grid { grid-template-columns: 1fr; }
  .community-feature-panel { min-height: 330px; }
  .community-panel-copy { left: 28px; bottom: 30px; }
  .community-panel-stat { left: 28px; top: 30px; }
  .community-panel-copy strong { font-size: 43px; }
  .portal-thread { grid-template-columns: 30px minmax(0,1fr) 22px; gap: 10px; padding-inline: 15px; }
  .thread-replies { display: none; }
  .thread-copy h3 { font-size: 19px; }
  .portal-sidebar { grid-template-columns: 1fr; }
  .portal-cta-inner { display: grid; }
  .portal-cta .button { width: 100%; }
  .page-hero, .thread-heading, .admin-page-heading { min-height: 255px; padding-top: 50px; padding-bottom: 45px; flex-direction: column; align-items: flex-start; justify-content: center; }
  .page-hero h1, .thread-heading h1, .admin-page-heading h1, .auth-copy h1, .center-state h1, .news-article h1 { font-size: clamp(46px, 15vw, 67px); }
  .page-hero .button, .admin-page-heading > .button { width: 100%; }
  .forum-list-head { display: none; }
  .category-row { grid-template-columns: 42px minmax(0,1fr) 16px; padding: 17px 14px; }
  .category-stats, .category-last { display: none; }
  .thread-row { grid-template-columns: 18px minmax(0,1fr); padding: 17px 14px; }
  .thread-stat, .thread-latest { display: none; }
  .forum-post { grid-template-columns: 1fr; }
  .post-author { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; gap: 10px; text-align: left; }
  .post-author strong { margin: 0; }
  .post-author small { display: none; }
  .post-author .role-badge { margin: 0 0 0 auto; }
  .post-content { padding-inline: 17px; }
  .login-prompt, .form-actions, .admin-card-actions { align-items: stretch; flex-direction: column; }
  .form-actions .button, .admin-card-actions .button { width: 100%; }
  .server-directory, .staff-grid { grid-template-columns: 1fr; }
  .rules-list article { grid-template-columns: 42px 1fr; padding: 20px 15px; }
  .news-article { padding: 28px 20px; }
  .portal-footer-nav { grid-template-columns: 1fr 1fr; }
  .portal-footer-nav > div:last-child { grid-column: 1 / -1; }
  .portal-footer-bottom { display: grid; gap: 5px; }
  .admin-sidebar nav { grid-template-columns: repeat(2,1fr); }
  .admin-stat-grid, .admin-form-grid, .category-form-grid { grid-template-columns: 1fr; }
  .admin-edit-card { grid-template-columns: 1fr; }
  .admin-filter { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
