:root {
  --bg: #f7f1e6;
  --bg-2: #fffaf3;
  --surface: rgba(255, 252, 247, 0.92);
  --surface-2: #f3eadc;
  --gold: #c8963e;
  --gold-2: #8d6420;
  --ink: #1c160f;
  --ocean: #1d6f86;
  --text: #241c14;
  --muted: #6d6256;
  --dim: #8a7d6e;
  --line: rgba(36, 28, 20, 0.12);
  --gold-line: rgba(184, 137, 58, 0.45);
  --ok: #1f8a62;
  --warn: #b5761d;
  --blue: #2f6fe0;
  --shadow: 0 22px 50px rgba(90, 60, 20, 0.12);
  --header-bg: rgba(247, 241, 230, 0.9);
  --input: #fffdf9;
  --header: 78px;
  --max: 1180px;
  --display: "Oswald", sans-serif;
  --font: "Manrope", sans-serif;
  --radius: 16px;
  --orb-a: rgba(232, 186, 96, 0.55);
  --orb-b: rgba(120, 176, 196, 0.4);
}
[data-theme="dark"] {
  --bg: #07080c;
  --bg-2: #0d0f16;
  --surface: rgba(18, 20, 28, 0.92);
  --surface-2: #191c27;
  --gold: #e7c27a;
  --gold-2: #f4dfb0;
  --ink: #16140e;
  --ocean: #8fd8e6;
  --text: #f7f4ee;
  --muted: #a8a295;
  --dim: #726d64;
  --line: rgba(255, 255, 255, 0.08);
  --gold-line: rgba(231, 194, 122, 0.32);
  --ok: #3dbe86;
  --warn: #e0a15a;
  --blue: #3c7dff;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  --header-bg: rgba(7, 8, 12, 0.9);
  --input: #0d1016;
  --orb-a: rgba(231, 194, 122, 0.22);
  --orb-b: rgba(62, 140, 170, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}
body::before, body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 48vw;
  height: 48vw;
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
}
body::before { background: var(--orb-a); top: -12vw; left: -10vw; animation: drift 16s ease-in-out infinite; }
body::after { background: var(--orb-b); right: -14vw; bottom: -16vw; animation: drift 22s ease-in-out infinite reverse; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10vw, 8vh) scale(1.12); }
  100% { transform: translate(0, 0) scale(1); }
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--gold); color: var(--ink); }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--gold);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 10000;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
h1, h2, h3, .display { font-family: var(--display); font-weight: 600; letter-spacing: 0.01em; line-height: 0.92; text-transform: uppercase; }
.lede { color: var(--muted); font-size: 1.05rem; max-width: 46rem; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.gold:hover { background: var(--gold-2); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.hero .btn.ghost, .page-hero .btn.ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn.blue { background: var(--blue); color: white; }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 0.92rem; }
.btn.full { width: 100%; }

#loader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
#loader.hide { opacity: 0; visibility: hidden; }
.loader-card { text-align: center; }
.loader-card img { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; object-fit: cover; }
.loader-card strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: 0.14em;
}
.loader-card span { color: var(--muted); }
.bar { width: 180px; height: 3px; margin: 16px auto 0; background: #24262e; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 40%; background: var(--gold); animation: load 1s ease infinite; }
@keyframes load { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header { color: #fff; }
.site-header .nav a { color: rgba(255,255,255,.88); }
.site-header.solid {
  background: var(--header-bg);
  color: var(--text);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.site-header.solid .nav a { color: var(--text); }
[data-theme="dark"] .site-header.solid,
[data-theme="dark"] .site-header.solid .nav a { color: rgba(255,255,255,.88); }
.theme-toggle { min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: transparent; color: inherit; font-weight: 800; }
.site-header.solid .theme-toggle { border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 22px; width: min(1280px, calc(100% - 36px)); margin: 0 auto; }
#account-slot { display: flex; gap: 8px; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { flex: 0 0 44px; width: 44px; height: 44px; min-width: 44px; max-width: 44px; border-radius: 50%; overflow: hidden; border: 1px solid var(--gold-line); background: #0d1b33; }
.brand-mark img { width: 44px; height: 44px; max-width: 44px; margin: 0; object-fit: cover; object-position: center; transform: none; }
.brand-name { font-family: var(--display); font-size: 1.45rem; letter-spacing: 0.08em; line-height: 1; }
.brand-name b { color: var(--gold); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a { position: relative; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.hero, .page-hero { color: #fff; }
.hero .lede, .page-hero .lede { color: rgba(255,255,255,.84); }
.hero .kicker, .page-hero .kicker { color: #f3d48a; }
.nav a.active, .nav a:hover { color: var(--gold-2); }
.nav a.active::after, .nav a:hover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px; background: var(--gold); border-radius: 99px;
}
.nav-toggle { display: none; margin-left: auto; background: transparent; border: 1px solid var(--line); color: white; width: 44px; height: 40px; border-radius: 10px; }

.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: calc(var(--header) + 28px) 0 72px; overflow: hidden; }
.hero-bg, .page-hero-bg { position: absolute; inset: 0; }
.hero-bg img, .page-hero-bg img, .media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.28); transform-origin: center; }
.hero-bg::after, .page-hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,8,12,0.82) 0%, rgba(7,8,12,0.42) 46%, rgba(7,8,12,0.12) 100%),
    linear-gradient(180deg, rgba(7,8,12,0.55) 0%, rgba(7,8,12,0.15) 42%, rgba(7,8,12,0.72) 100%);
}
.page-hero { overflow: hidden; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: end; width: min(1280px, calc(100% - 40px)); }
.hero h1 { margin: 0 0 18px; font-size: clamp(4.4rem, 8vw, 7.2rem); }
.hero .lede { font-size: 1.12rem; margin-bottom: 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.search {
  display: flex; align-items: center; gap: 10px;
  max-width: 460px; padding: 6px 6px 6px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  position: relative;
}
.search input, .field input, .field textarea {
  width: 100%; background: transparent; border: 0; outline: none; padding: 10px 0;
}
.search input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.search-pop {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden; display: none; z-index: 5;
}
.search-pop.show { display: block; }
.search-pop a, .search-pop button {
  display: block; width: 100%; text-align: left; background: transparent; border: 0;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.search-pop a:hover, .search-pop button:hover { background: rgba(231,194,122,0.08); }
.search-pop small { display: block; color: var(--dim); }

.hero-card {
  justify-self: end; width: min(420px, 100%);
  background: rgba(10, 12, 18, 0.55);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.hero-card .shot { height: 460px; overflow: hidden; position: relative; }
.hero-card figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px 16px; }
.hero-card strong { display: block; font-family: var(--display); letter-spacing: 0.04em; font-size: 1.3rem; text-transform: uppercase; }

.section { padding: 84px 0; }
.section.alt { background: transparent; }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.section h2 { margin: 0; font-size: clamp(2.6rem, 5vw, 4.4rem); }

.bonus {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center;
  background: var(--surface); border: 1px solid var(--gold-line); border-radius: 24px; overflow: hidden;
}
.bonus-copy { padding: 36px; }
.bonus h2 { font-size: clamp(2.4rem, 4vw, 3.6rem); margin: 0 0 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.pills span, .pill {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px;
  border-radius: 99px; border: 1px solid var(--line); color: var(--gold-2); font-size: 0.78rem; font-weight: 800;
}
.pill.warn { color: var(--warn); border-color: rgba(224,161,90,0.4); }
.pill.ok { color: var(--ok); border-color: rgba(61,190,134,0.4); }
.pill.dim { color: var(--muted); }
.bonus .shot { height: 100%; min-height: 320px; overflow: hidden; }

.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 14px;
}
.stat b { display: block; font-family: var(--display); font-size: 2.4rem; color: var(--gold); line-height: 1; }
.stat span { color: var(--muted); font-size: 0.86rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  position: relative; display: block; min-height: 250px; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: #111;
}
.card .media { position: absolute; inset: 0; }
.card .media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(7,8,12,0.92));
}
.card .body { position: absolute; left: 16px; right: 16px; bottom: 16px; }
.card, .card p, .card h3 { color: #fff; }
.card .kicker { color: #f3d48a; }
.card h3 { margin: 6px 0 4px; font-size: 1.8rem; }
.card p { margin: 0; color: var(--muted); }
.card:hover img { transform: scale(1.38); }
.card img { transition: transform 0.5s ease; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: center; margin: 54px 0; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split .shot { height: 380px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.split ul { margin: 14px 0 20px; padding: 0; list-style: none; }
.split li { padding: 7px 0 7px 16px; position: relative; color: var(--text); }
.split li::before { content: ""; position: absolute; left: 0; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

.news { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.news article, .panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.news .feature .shot { height: 280px; }
.news .body, .panel { padding: 18px; }
.stack { display: grid; gap: 14px; }
.mini { display: grid; grid-template-columns: 120px 1fr; gap: 0; }
.mini .shot { height: 100%; min-height: 120px; }

.page-hero { position: relative; min-height: 420px; display: flex; align-items: flex-end; padding: calc(var(--header) + 36px) 0 42px; }
.page-hero h1 { margin: 0; font-size: clamp(3.4rem, 7vw, 6rem); }
.page { padding: 42px 0 80px; }

.job-grid, .rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.job, .rule {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px;
}
.job b, .rule b { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.job span { color: var(--gold); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

.site-footer { border-top: 1px solid var(--line); padding: 42px 0 22px; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.site-footer a { display: block; color: var(--muted); padding: 4px 0; }
.site-footer a:hover { color: var(--gold-2); }
.legal { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.85rem; display: flex; justify-content: space-between; gap: 12px; }

.modal {
  position: fixed; inset: 0; z-index: 80; display: none;
  background: rgba(0,0,0,0.62); place-items: center; padding: 20px;
}
.modal.show { display: grid; }
.sheet {
  width: min(480px, 100%); background: var(--bg-2); color: var(--text); border: 1px solid var(--gold-line);
  border-radius: 20px; padding: 22px; box-shadow: var(--shadow);
}
.sheet h3 { margin: 0 0 8px; font-size: 2rem; }
.field { display: grid; gap: 6px; margin: 12px 0; font-size: 0.88rem; color: var(--muted); }
.field input, .field textarea, .field select, .composer input, .composer textarea, .composer select {
  background: var(--input); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px;
}
.sheet-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.toast {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--surface-2); border: 1px solid var(--gold-line); color: var(--text);
  padding: 12px 16px; border-radius: 12px; z-index: 90; opacity: 0; pointer-events: none; transition: 0.25s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.forum-top { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 18px; }
.forum-layout { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.group { margin: 0 0 16px; }
.group h2 { font-size: 1.5rem; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--gold-line); }
.board {
  display: grid; grid-template-columns: minmax(0, 1fr) 92px 92px; gap: 16px; align-items: center;
  padding: 16px; background: var(--surface); border: 1px solid var(--line); border-bottom: 0;
}
.board .last { display: block; margin-top: 4px; color: var(--dim); font-size: 0.82rem; }
.board:last-child { border-bottom: 1px solid var(--line); border-radius: 0 0 14px 14px; }
.board:first-of-type { border-radius: 14px 14px 0 0; }
.group .board:only-of-type { border-radius: 14px; border-bottom: 1px solid var(--line); }
.board:hover { background: #171b26; }
.board b { display: block; font-size: 1rem; }
.board .count { text-align: right; }
.board .count b { font-family: var(--display); font-size: 1.35rem; color: var(--gold); line-height: 1; }
.board .count span { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.crumb { color: var(--muted); font-size: 0.88rem; margin-bottom: 12px; }
.crumb a { color: var(--gold-2); }
.thread-row, .post {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px;
}
.thread-head, .thread-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 72px 72px 148px; gap: 12px; align-items: center;
}
.thread-head { padding: 0 16px 8px; color: var(--dim); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.thread-head span:not(:first-child), .thread-stats, .thread-last { text-align: right; }
.thread-row { border-left: 4px solid var(--gold); color: inherit; text-decoration: none; }
.thread-main { display: flex; gap: 12px; align-items: center; min-width: 0; }
.thread-copy { min-width: 0; }
.thread-stats b { display: block; font-family: var(--display); font-size: 1.25rem; color: var(--gold); line-height: 1; }
.thread-stats span, .thread-last span { display: block; color: var(--dim); font-size: 0.75rem; }
.reply-label { margin: 18px 0 8px; font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.thread-row.pending { border-left-color: #e0a15a; }
.thread-row.approved { border-left-color: #3dbe86; }
.thread-row.rejected { border-left-color: #e25b5b; }
.thread-row.important { border-left-color: var(--gold); }
.thread-title { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.thread-title h2 { margin: 0; flex: 1; min-width: 0; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.thread-title b { font-size: 1.02rem; }
.status-box {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: 118px; min-height: 42px; padding: 4px 6px; border: 0; border-radius: 3px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase;
  line-height: 1.15; text-align: center; white-space: normal; flex: 0 0 auto;
}
.status-box.muted-box { background: var(--surface-2); color: var(--dim); border: 1px solid var(--line); }
.status-box.lock-box { width: 72px; background: #1a1c22; color: #f2f2f2; }
.status-box.on { outline: 2px solid var(--text); outline-offset: 2px; }
.status-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.status-pick .status-box { position: relative; cursor: pointer; }
.status-pick .status-box input { position: absolute; opacity: 0; pointer-events: none; }
.status-pick .status-box:has(input:checked) { outline: 2px solid var(--text); outline-offset: 2px; }
.title-line { display: flex; gap: 10px; align-items: center; }
.title-line input { flex: 1; min-width: 0; }
.prefix {
  display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px;
  border-radius: 4px; font-size: 11px; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; line-height: 1; white-space: nowrap;
}
.prefix.pending { background: #e0a15a; color: #1c1306; }
.prefix.approved { background: #3dbe86; color: #042216; }
.prefix.rejected { background: #e25b5b; color: #2a0909; }
.prefix.important { background: #e7c27a; color: #16140e; }
.prefix.awaiting { background: #9aa3b5; color: #141820; }
.prefix.consideration { background: #3c7dff; color: #fff; }
.prefix.executive { background: #8b6cff; color: #fff; }
.thread-row.awaiting { border-left-color: #9aa3b5; }
.thread-row.consideration { border-left-color: #3c7dff; }
.thread-row.executive { border-left-color: #8b6cff; }
.filters button.on.awaiting { background: #9aa3b5; color: #141820; }
.filters button.on.consideration { background: #3c7dff; color: #fff; }
.filters button.on.executive { background: #8b6cff; color: #fff; }
.filters button.on.important { background: #e7c27a; color: #16140e; }
.state-bar button.awaiting.on, .state-bar button.awaiting:hover { background: #9aa3b5; color: #141820; }
.state-bar button.consideration.on, .state-bar button.consideration:hover { background: #3c7dff; color: #fff; }
.state-bar button.executive.on, .state-bar button.executive:hover { background: #8b6cff; color: #fff; }
.state-bar button.important.on, .state-bar button.important:hover { background: #e7c27a; color: #16140e; }
.state-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 0 0 14px; padding: 12px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
}
.state-bar button {
  border: 0; border-radius: 4px; min-height: 32px; padding: 0 12px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  background: #23262f; color: var(--muted);
}
.state-bar button.pending.on, .state-bar button.pending:hover { background: #e0a15a; color: #1c1306; }
.state-bar button.approved.on, .state-bar button.approved:hover { background: #3dbe86; color: #042216; }
.state-bar button.rejected.on, .state-bar button.rejected:hover { background: #e25b5b; color: #2a0909; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.filters button {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  border-radius: 99px; min-height: 34px; padding: 0 12px; font-weight: 800; font-size: 0.82rem;
}
.filters button.on { border-color: transparent; }
.filters button.on.all { background: #2a2e3a; color: white; }
.filters button.on.pending { background: #e0a15a; color: #1c1306; }
.filters button.on.approved { background: #3dbe86; color: #042216; }
.filters button.on.rejected { background: #e25b5b; color: #2a0909; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.who { display: flex; gap: 10px; align-items: center; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: #243049; color: var(--gold-2); font-weight: 800;
}
.post .text { margin: 10px 0 0; white-space: pre-wrap; }
.side .panel { margin-bottom: 12px; }
.side li { margin: 8px 0; }
.composer { display: grid; gap: 8px; margin-top: 12px; }
.composer[hidden] { display: none !important; }
.side a { display: block; padding: 5px 0; color: var(--gold-2); }
.brand-name { white-space: nowrap; }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.userchip { color: var(--gold-2); font-weight: 800; font-size: 0.85rem; }

.xf-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.xf-search { flex: 1; display: flex; gap: 8px; }
.xf-search input { flex: 1; background: var(--input); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.xf-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.xf-tool { position: relative; background: var(--surface); border: 1px solid var(--line); color: var(--text); border-radius: 10px; min-height: 40px; padding: 0 12px; font-weight: 800; }
.xf-tool i { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; border-radius: 99px; background: #e25b5b; color: white; font-style: normal; font-size: 11px; }
.subs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.subs a { color: var(--gold-2); font-size: 0.82rem; }
.post { display: grid; grid-template-columns: 160px 1fr; gap: 14px; align-items: start; }
.post .person { text-align: center; }
.post .person .avatar { width: 64px; height: 64px; margin: 0 auto 8px; font-size: 1.2rem; }
.post .body { min-width: 0; }
.post .body img { max-width: 100%; border-radius: 10px; margin: 8px 0; }
.role { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.role.admin { color: var(--gold); }
.role.mod { color: var(--ocean); }
.role.leader { color: #b4234a; }
.role.member, .role.player { color: var(--dim); }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.post .person { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.post .person b { display: block; line-height: 1.2; }
.sign { margin-top: 12px; padding-top: 8px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 0.9rem; white-space: pre-wrap; }
.app-row { display: block; padding: 14px 16px; margin: 0 0 10px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 14px; }
.app-main { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.app-main b { font-size: 1.02rem; }
.app-meta { display: flex; gap: 18px; margin-top: 8px; color: var(--muted); font-size: 0.88rem; }
.app-sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 14px 0; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.info-grid .k { color: var(--dim); font-size: 0.82rem; }
.info-block { margin-top: 16px; }
.info-block h3 { margin: 0 0 8px; font-size: 1rem; letter-spacing: 0.04em; }
.long { white-space: pre-wrap; margin: 0; }
.author-line { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); margin-top: 16px; }
.staff-box { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); text-align: center; }
.staff-box h3 { margin: 8px 0; }
.audit { margin-top: 12px; }
.audit article { padding: 10px 0; border-top: 1px solid var(--line); }
.builder-field { display: grid; grid-template-columns: 1.4fr 1fr auto auto; gap: 8px; align-items: end; margin-bottom: 8px; }
.dyn-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.dyn-form .span2, .dyn-form fieldset.span2 { grid-column: 1 / -1; }
.dyn-form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.shotlink img { width: 160px; height: 100px; object-fit: cover; border-radius: 8px; }
.post-tools { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 6px; }
.post-tools button, .linkish { background: transparent; border: 0; color: var(--gold-2); font-weight: 800; font-size: 0.82rem; padding: 0; }
.xf-quote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--gold); background: #10131a; border-radius: 0 10px 10px 0; }
.xf-quote .qa { color: var(--gold); font-size: 0.78rem; font-weight: 800; }
.xf-code { background: #0b0d12; border-radius: 8px; padding: 10px; overflow: auto; font-family: ui-monospace, Consolas, monospace; font-size: 0.88rem; }
.spoiler { background: #1a1d27; color: transparent; border-radius: 4px; cursor: pointer; }
.spoiler.show { color: inherit; background: #2a2418; }
.mention { color: var(--ocean); font-weight: 800; }
.rte { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--input); }
.rte-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; background: var(--surface-2); border-bottom: 1px solid var(--line); align-items: center; }
.rte-bar button, .rte-bar label { min-width: 32px; height: 32px; display: inline-grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--text); font-weight: 800; padding: 0 6px; }
.rte-bar button:hover, .rte-bar label:hover { background: #2a3142; }
.rte-bar select, .rte-bar input[type="color"] { height: 32px; border: 0; background: #222735; color: white; border-radius: 6px; }
.rte-area { min-height: 140px; max-height: 360px; overflow: auto; padding: 12px; outline: none; }
.rte-area:empty:before { content: attr(data-placeholder); color: var(--dim); }
.mention-pop { position: absolute; left: 8px; right: 8px; bottom: 8px; background: #1b2130; border: 1px solid var(--line); border-radius: 10px; z-index: 4; max-height: 160px; overflow: auto; }
.mention-pop button { display: block; width: 100%; text-align: left; background: transparent; border: 0; padding: 8px 10px; }
.mention-pop button:hover { background: rgba(231,194,122,.1); }
.modbox { margin: 12px 0; }
.notice { padding: 10px 12px; border-radius: 10px; background: rgba(224,161,90,.12); color: var(--gold-2); margin-bottom: 12px; }
.profile-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.profile-head .avatar { width: 72px; height: 72px; font-size: 1.4rem; }
.pm-row { display: block; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 10px 0; }
.checks label { display: inline-flex; align-items: center; gap: 6px; }
.matrix { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.matrix th, .matrix td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.files img { width: 180px; height: 120px; object-fit: cover; border-radius: 10px; }
.control-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0 22px; }
.control-card { display: grid; gap: 6px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.control-card .num { font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--gold-2); }
.acct-list { display: grid; gap: 10px; }
.acct { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.acct.is-banned { opacity: 0.72; }
.auth-body { min-height: 100vh; }
.auth-split { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 0.95fr; }
.auth-visual { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 48px; color: #fff; }
.auth-visual img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,12,.25), rgba(7,8,12,.78)); }
.auth-copy { position: relative; z-index: 1; max-width: 460px; }
.auth-copy h1 { margin: 8px 0; font-size: clamp(3rem, 5vw, 4.6rem); }
.auth-panel { display: grid; place-items: center; padding: 32px 22px; }
.auth-card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px 24px; box-shadow: var(--shadow); }
.auth-card h2 { margin: 0 0 8px; font-size: 2.4rem; }
.auth-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 0.92rem; }
.auth-links a { color: var(--gold-2); font-weight: 800; }
.auth-note { min-height: 1.2em; margin: 8px 0 0; }
.auth-note.bad { color: #b4234a; }
.auth-note.ok { color: var(--ok); }
.setup { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.acct .avatar { display: inline-grid; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none; position: fixed; inset: var(--header) 12px auto; margin: 0;
    flex-direction: column; align-items: flex-start; gap: 14px;
    background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 16px;
  }
  .nav.open { display: flex; }
  .nav.open a { color: var(--text); }
  .hero-grid, .bonus, .stats, .cards, .split, .split.reverse, .news, .job-grid, .rule-grid, .forum-layout, .foot-grid, .mini {
    grid-template-columns: 1fr; direction: ltr;
  }
  .hero { min-height: auto; }
  .hero h1 { font-size: 3.4rem; }
  .hero-card .shot, .split .shot { height: 240px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .board, .post, .xf-bar, .info-grid, .dyn-form, .builder-field, .control-grid, .acct, .auth-split, .thread-row { grid-template-columns: 1fr; display: grid; }
  .thread-head { display: none; }
  .title-line { flex-wrap: wrap; }
  .thread-stats, .thread-last, .thread-head span { text-align: left; }
  .auth-visual { min-height: 220px; }
  .xf-bar { display: grid; }
  .site-header [data-connect] { display: none; }
  #account-slot { display: flex; gap: 8px; }
  .section-head { flex-direction: column; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
