:root {
  /* LSS light default — dark only via data-theme="dark" */
  --primary: #008bd0;
  --primary-hover: #0077b3;
  --background: #e8eef2;
  --surface: #ffffff;
  --surface-2: #f4f7fa;
  --border: #b8c5d4;
  --text: #2a2d42;
  --text-muted: #5c6570;
  --success: #1b7a3d;
  --warning: #9a5b12;
  --danger: #b42318;
  --radius: 8px;
  --header-h: 56px;
  --sidebar-w: 240px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  background: var(--background);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}
a { color: #008bd0; text-decoration: none; }
a:hover { color: #0077b3; }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: 15px; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 18px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 10px; letter-spacing: .02em; font-size: 14px; font-weight: 700; color: var(--text); }
.brand img { width: 32px; height: 32px; object-fit: contain; border-radius: 0; border: none; background: transparent; display: block; }
.nav-main { display: flex; gap: 4px; font-size: 13px; color: var(--text-muted); }
.nav-main a { color: var(--text-muted); padding: 6px 10px; border-radius: 6px; }
.nav-main a.active, .nav-main a:hover { color: var(--primary); background: var(--surface-2); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.header-right a { color: var(--text-muted); }
.header-right .rank-pill { margin-top: 0; }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--primary); color: #fff; font-size: 11px;
}
.layout { display: flex; min-height: calc(100vh - var(--header-h)); }
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  padding: 18px 12px 40px;
  flex-shrink: 0;
}
.sidebar h4 {
  margin: 18px 12px 6px; font-size: 10px; letter-spacing: .18em;
  color: var(--text-muted); font-weight: 600;
}
.sidebar a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--text-muted); font-size: 13.5px;
}
.sidebar a:hover, .sidebar a.active { background: var(--surface); color: var(--text); }
.content { flex: 1; padding: 28px 28px 80px; max-width: 1100px; }
.page-title { margin: 0 0 6px; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.lead { color: var(--text-muted); margin: 0 0 22px; }
.grid { display: grid; gap: 14px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.card h3 { margin: 0 0 8px; font-size: 13px; color: var(--text-muted); font-weight: 600; letter-spacing: .04em; }
.stat { font-size: 22px; font-weight: 600; color: var(--text); }
.pill {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--border); font-size: 12px; color: var(--text-muted);
}
.pill.ok { border-color: var(--success); color: var(--success); background: #e8f5ec; }
.pill.warn { border-color: var(--warning); color: var(--warning); background: #fff6e8; }
.pill.bad { border-color: var(--danger); color: var(--danger); background: #fdecec; }
.pill.info { border-color: var(--primary); color: var(--primary); background: #e8f5fb; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 8px 16px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  cursor: pointer; text-decoration: none;
}
.btn:hover { border-color: var(--primary); background: var(--surface-2); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-hover); }
.btn.danger { border-color: var(--danger); color: var(--danger); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
label { display: block; font-size: 13px; color: var(--text-muted); margin: 14px 0 6px; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.counter { font-size: 12px; color: var(--text-muted); text-align: right; margin-top: 4px; }
.counter.bad { color: #d98a8a; }
.steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
.steps a, .steps span {
  font-size: 12px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border);
  color: var(--text-muted);
}
.steps .on { border-color: var(--primary); color: var(--text); }
.board {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 16px;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.board:hover { background: var(--surface); }
.board b { display: block; font-weight: 600; }
.muted { color: var(--text-muted); }
.err { color: #d98a8a; }
.ok { color: #8ec9a8; }
.post { color: #d5dbe3; line-height: 1.65; word-wrap: break-word; overflow-wrap: anywhere; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: left; }
table.data th { color: var(--text-muted); font-weight: 600; font-size: 12px; }
.hero-slim {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 16px 20px; margin-bottom: 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.announce { padding: 10px 14px; border-left: 3px solid var(--primary); background: var(--surface); margin-bottom: 10px; border-radius: 0 8px 8px 0; }
.announce.WARNING { border-color: var(--warning); }
.announce.IMPORTANT { border-color: var(--danger); }
.announce.EVENT { border-color: var(--success); }
.toast {
  position: fixed; bottom: 20px; right: 20px; z-index: 50;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 12px 16px; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; right: 0; top: 120%;
  min-width: 200px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 0;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 8px 14px; color: var(--text-muted); font-size: 13px; }
.dropdown-menu a:hover { background: var(--surface); color: var(--text); }
.menu-btn { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 6px 10px; }
.auth-wrap {
  min-height: 100vh; display: grid; place-items: center;
  background: var(--background);
  padding: 24px;
}
.auth-card {
  width: min(420px, 100%);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 26px;
}
.auth-card h1 { margin: 0 0 8px; font-size: 22px; font-weight: 600; }
.row-between { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 13px; }
.preview-block { margin-bottom: 18px; }
.preview-block h3 { margin: 0 0 8px; font-size: 14px; }
.radio-row { display: flex; gap: 16px; margin: 8px 0 4px; }
.radio-row label { margin: 0; color: var(--text); }
.h-scroll { overflow-x: auto; }
@media (max-width: 960px) {
  .nav-main { display: none; }
  .menu-btn { display: inline-flex; }
  .layout { flex-direction: column; }
  .sidebar { width: 100%; border-right: 0; border-bottom: 1px solid var(--border); display: none; }
  .sidebar.open { display: block; }
  .content { padding: 18px 14px 60px; }
  .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  table.data { display: block; }
}
@media (max-width: 320px) {
  .site-header { padding: 0 10px; }
  .brand span { display: none; }
}
body[data-theme="light"] {
  --primary: #008bd0;
  --primary-hover: #0077b3;
  --background: #e8eef2;
  --surface: #ffffff;
  --surface-2: #f4f7fa;
  --border: #b8c5d4;
  --text: #2a2d42;
  --text-muted: #5c6570;
}
body[data-theme="dark"] {
  --primary: #1ab8c4;
  --primary-hover: #008bd0;
  --background: #14161d;
  --surface: #1e222c;
  --surface-2: #262b38;
  --border: #3a4154;
  --text: #e8eaf0;
  --text-muted: #a7adbb;
}
body[data-theme="light"] .site-header { background: rgba(255,255,255,.96); }
body[data-theme="dark"] .site-header { background: rgba(30,34,44,.96); }
body[data-theme="light"] a:hover { color: #0077b3; }
body[data-theme="dark"] a { color: #7ef0f5; }
body[data-theme="dark"] a:hover { color: #fff; }
body[data-theme="light"] .post { color: #2a2d42; }
body[data-theme="dark"] .post { color: #e8eaf0; }

.forum-body {
  background: transparent;
}
/* LSS site uses body.lss-site::before for page background — do not blank it */
body.forum-body:not(.lss-site)::before { content: none; }
.forum-foot { text-align: center; color: var(--text-muted); font-size: 12px; padding: 20px; border-top: 1px solid var(--border); }
.forum-bar { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 16px; }
.crumb { color: var(--text-muted); font-size: 13px; margin: 0 0 12px; }
.crumb a { color: #c9b37a; }
.forum-cat { margin: 0 0 22px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.forum-cat > header {
  padding: 10px 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  background: linear-gradient(90deg, #241c12, #16120e);
  color: #e8d5a6; border-bottom: 1px solid #2a2418;
}
.forum-head, .topic-head {
  display: grid; gap: 10px; padding: 8px 14px; font-size: 11px; color: var(--text-muted);
  border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.forum-head { grid-template-columns: 1fr 70px 70px 220px; }
.topic-head { grid-template-columns: 1fr 120px 70px 90px 180px; }
.forum-node, .topic-row {
  display: grid; gap: 10px; align-items: center; padding: 12px 14px;
  border-bottom: 1px solid var(--border); color: inherit;
}
.forum-node { grid-template-columns: 36px 1fr 70px 70px 220px; }
.topic-row { grid-template-columns: 1fr 120px 70px 90px 180px; }
.forum-node:hover, .topic-row:hover { background: #161a20; }
.node-ico {
  width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  background: #2a1c14 url("/assets/forum_node.png") center / cover; color: #e8d5a6; font-weight: 700;
  text-shadow: 0 1px 2px #000;
}
.node-ico.lock { background: #2a1414; color: #e0a0a0; }
.node-info b, .topic-title b { display: block; color: var(--text); }
.node-info small, .node-last small, .topic-title em { color: var(--text-muted); font-size: 12px; font-style: normal; }
.node-stat { color: var(--text-muted); font-size: 13px; }
.node-last b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.postbit {
  display: block;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  margin-bottom: 14px; background: var(--surface);
}
.poster {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) auto;
  gap: 16px 18px;
  padding: 16px 18px;
  background: linear-gradient(90deg, rgba(12,10,8,.92), rgba(14,16,18,.86)), url("/assets/forum_paper.png") right center / cover;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.poster.has-cover {
  background:
    linear-gradient(90deg, rgba(10,8,10,.9) 0%, rgba(10,8,10,.62) 50%, rgba(10,8,10,.4) 100%),
    var(--poster-cover) center / cover no-repeat;
}
.poster-id { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.poster-avatar {
  flex: 0 0 auto; width: 84px; height: 84px; border-radius: 10px;
  overflow: hidden; border: 2px solid #c9b37a;
  box-shadow: 0 4px 14px rgba(0,0,0,.45); background: #0c0b09;
}
.poster-avatar img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block;
}
.poster-who { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.poster-fac a { color: #c9b37a; text-decoration: none; }
.poster-fac a:hover { text-decoration: underline; }
.poster-skin-panel {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 6px; flex: 0 0 auto;
  min-width: 96px; padding: 8px 12px 10px;
  border: 1px solid #3a2e20; border-radius: 8px;
  background: linear-gradient(180deg, #1a1510, #0c0b09);
  align-self: stretch;
  justify-self: end;
}
.poster-skin {
  width: 86px; height: 140px;
  object-fit: contain; object-position: center bottom;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.55)) brightness(1.15) contrast(1.06);
}
.poster-skin-cap {
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: #c9b37a; font-weight: 600;
}
.poster-vis, .skin-frame {
  position: relative; flex: 0 0 auto;
  width: 140px; height: 214px;
  overflow: hidden;
  border: 3px solid #c9b37a;
  border-radius: 4px;
  background: linear-gradient(180deg, #1c1610, #0c0b09);
  box-shadow: inset 0 0 0 7px #2a1c14, 0 8px 22px rgba(0,0,0,.5);
}
.skin-preview {
  position: absolute;
  left: 10px; right: 10px; top: 10px; bottom: 28px;
  width: calc(100% - 20px); height: calc(100% - 38px);
  max-width: none;
  object-fit: contain; object-position: center bottom;
  background: transparent; border: 0; border-radius: 0; display: block; z-index: 1;
}
.skin-overlay, .skin-badge {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  height: 26px; pointer-events: none;
  display: grid; place-items: center;
  background: #2a1c14; color: #e8d5a6;
  font-size: 10px; letter-spacing: .16em; font-weight: 700;
}
.skin-overlay { object-fit: none; width: 100%; opacity: 0; }
.avatar { width: 84px; height: 84px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); flex: 0 0 auto; }
.avatar.dummy {
  width: 84px; height: 84px; display: grid; place-items: center;
  background: #2a1c14; color: #e8d5a6; font-size: 28px; font-weight: 700;
}
.who { display: block; color: #e8d5a6; font-weight: 700; font-size: 16px; text-decoration: none; }
.who:hover { text-decoration: underline; }
.char-name { display: block; color: #f2efe6; margin-top: 2px; font-size: 14px; text-decoration: none; }
.char-name:hover { text-decoration: underline; }
.rank-pill {
  display: inline-block; margin-top: 2px; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700;
  background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border);
  width: fit-content; line-height: 1.3; white-space: nowrap;
}
.rank-pill.member { background: #eef3f7; color: #4a5568; border-color: #b8c5d4; }
.rank-pill.staff { background: #e6f7f4; color: #0d7a6f; border-color: #1ab8c4; }
.rank-pill.dev {
  background: linear-gradient(90deg, rgba(232,122,46,.16), rgba(0,139,208,.14));
  color: #c45a12; border: 1px solid #e87a2e;
}
.rank-pill.admin { background: #e8f5ec; color: #1b7a3d; border-color: #34a853; }
.rank-pill.vip { background: #fff4e8; color: #9a5b12; border-color: #e87a2e; }
.poster-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 14px; margin: 0; align-content: center;
}
.poster-mod {
  grid-column: 1 / -1;
  margin-top: 4px;
  display: flex; flex-direction: column; gap: 6px;
  padding-top: 10px; border-top: 1px solid rgba(42,36,28,.8);
}
.mod-mini { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.mod-mini input { font-size: 11px; padding: 4px 6px; max-width: 120px; }
.mod-mini input[name=reason] { max-width: 180px; flex: 1; }
.poster-stats .ps { margin: 0; min-width: 0; }
.poster-stats dt {
  font-size: 11px; color: var(--text-muted);
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
}
.poster-stats dd {
  margin: 4px 0 0; color: #f2efe6; font-weight: 600; font-size: 13px;
  display: flex; align-items: center; gap: 6px; min-height: 18px;
}
.ps-ico {
  display: inline-grid; place-items: center;
  width: 14px; color: #c9b37a; font-size: 11px; opacity: .9;
}
.ps-nation, .ps-gender { gap: 7px; }
.ps-flag {
  width: 20px; height: 15px; object-fit: cover;
  border-radius: 2px; border: 1px solid rgba(201,179,122,.35);
  box-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.gender-ico {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 12px; font-weight: 700; line-height: 1;
}
.gender-ico.m { background: #1a2a3a; color: #7eb6ff; border: 1px solid #3a5a7a; }
.gender-ico.f { background: #3a1a2a; color: #ff9ec8; border: 1px solid #7a3a5a; }
.thread-locked-note {
  margin: 0 22px 18px; padding: 14px 16px;
  border: 1px solid #3a2e20; border-radius: 10px;
  background: #16120e; color: #c9b37a;
  font-size: 14px; font-weight: 600;
}
.post-main { padding: 12px 16px 18px; }
.post-meta {
  color: var(--text-muted); font-size: 12px; margin-bottom: 10px;
  border-bottom: 1px solid var(--border); padding-bottom: 8px;
  display: flex; justify-content: space-between; align-items: center;
}
.link-btn {
  background: none; border: 0; color: #c9b37a; cursor: pointer; font: inherit; padding: 0;
  text-decoration: none;
}
.link-btn:hover { text-decoration: underline; }
.post-actions { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.edited-tag { color: #9a9284; font-style: italic; font-weight: 500; }
.edit-hist-current, .edit-hist-item { margin: 0 0 12px; padding: 14px 16px; }
.edit-hist-current header, .edit-hist-item header {
  display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: space-between;
  margin: 0 0 10px; color: #c9b37a; font-size: 13px; font-weight: 600;
}
.edit-reason { color: #8a8276; font-weight: 500; font-style: italic; }
.edit-old-title { margin: 0 0 8px; font-size: 13px; }
.edit-old-title b { color: #e8d5a6; }
.sig { margin-top: 16px; padding-top: 10px; border-top: 1px dashed var(--border); color: var(--text-muted); font-size: 12px; }
.reply-box { margin-top: 8px; }
.row-actions { display: flex; gap: 8px; }
.post .bbc-u { text-decoration: underline; }
.post .bbc-quote {
  margin: 10px 0; padding: 10px 12px 10px 14px;
  border-left: 3px solid #c9b37a; background: #16120e; border-radius: 0 8px 8px 0;
}
.post .bbc-quote cite { display: block; color: #c9b37a; font-size: 12px; margin-bottom: 6px; font-style: normal; }
.post .bbc-code {
  background: #0a0c0f; border: 1px solid var(--border); border-radius: 8px;
  padding: 12px; overflow-x: auto; font-size: 13px; white-space: pre-wrap;
}
.post .bbc-img { max-width: 100%; height: auto; border-radius: 6px; margin: 8px 0; }
.post .bbc-yt { max-width: 100%; width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 8px; margin: 8px 0; }
.post .bbc-list { margin: 8px 0 8px 22px; }
.post .bbc-center { text-align: center; }
.post .bbc-left { text-align: left; }
.post .bbc-right { text-align: right; }
.post .bbc-justify { text-align: justify; }
.post .bbc-hr { border: 0; border-top: 1px solid var(--border); margin: 12px 0; }
.post .bbc-table { border-collapse: collapse; width: 100%; margin: 8px 0; }
.post .bbc-table td, .post .bbc-table th { border: 1px solid var(--border); padding: 6px 8px; }
.post .bbc-spoiler { margin: 8px 0; background: #14171c; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; }
.post .bbc-spoiler summary { cursor: pointer; color: #c9b37a; }
.post .bbc-url { color: #c9b37a; text-decoration: underline; }
.bbc-bar {
  display: flex; flex-wrap: wrap; gap: 2px; align-items: center;
  padding: 6px; margin: 0;
  background: #12151a; border: 1px solid var(--border); border-bottom: 0;
  border-radius: 8px 8px 0 0;
}
.bbc-grp { display: flex; flex-wrap: wrap; gap: 2px; padding: 0 5px; border-right: 1px solid var(--border); }
.bbc-grp:last-child { border-right: 0; }
.bbc-bar button, .bbc-bar select {
  width: auto; padding: 5px 8px; min-height: 0; font-size: 12px;
  background: #1a1f26; color: #e8d5a6; border: 1px solid var(--border); border-radius: 5px; cursor: pointer;
}
.bbc-bar button:hover { border-color: #c9b37a; background: #241c14; }
.bbc-bar + textarea { border-top-left-radius: 0; border-top-right-radius: 0; }
.bbc-hint { font-size: 12px; color: var(--text-muted); margin: 6px 0 0; }
.post .bbc-glow { text-shadow: 0 0 8px #c9b37a, 0 0 2px #fff; }
.post .bbc-shadow { text-shadow: 2px 2px 0 #000; }
@media (max-width: 860px) {
  .forum-head, .topic-head { display: none; }
  .forum-node, .topic-row { grid-template-columns: 36px 1fr; }
  .forum-node .node-stat, .forum-node .node-last, .topic-row .node-stat { display: none; }
  .poster {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
    align-items: start;
  }
  .poster-id {
    flex-wrap: wrap;
    gap: 10px;
  }
  .poster-avatar { width: 64px; height: 64px; }
  .poster-who { flex: 1 1 140px; min-width: 0; }
  .poster-who .who { font-size: 15px; word-break: break-word; }
  .poster-skin-panel {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    padding: 10px;
  }
  .poster-skin { width: 72px; height: 110px; }
  .poster-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
  }
  .poster-stats .ps { min-width: 0; overflow: hidden; }
  .poster-stats dt {
    white-space: normal;
    font-size: 10px;
    line-height: 1.25;
  }
  .poster-stats dd {
    font-size: 12px;
    word-break: break-word;
  }
  .poster-mod { grid-column: auto; }
}
.staff-subnav {
  display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 18px;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.staff-subnav a { color: #c9b37a; }
.staff-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px;
}
.staff-tile { display: block; padding: 18px 20px; text-decoration: none; color: inherit; }
.staff-tile h2 { margin: 0 0 8px; font-size: 17px; color: #e8d5a6; font-weight: 500; }
.staff-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px;
}
.staff-tabs a {
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px;
  color: #cfc6b0; font-size: 12px; text-decoration: none;
}
.staff-tabs a.active { border-color: #c9b37a; color: #e8d5a6; background: #241c14; }
.staff-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.staff-table th, .staff-table td {
  text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); vertical-align: top;
}
.staff-table th { color: #c9b37a; font-weight: 500; }
.pill.danger { background: #3a1414; color: #e8a6a6; padding: 2px 8px; border-radius: 999px; font-size: 11px; }
.map-box { display: grid; grid-template-columns: 1fr 280px; gap: 14px; margin-top: 10px; align-items: stretch; }
.map-stage {
  position: relative; height: 420px;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #0a0c10;
}
.map-stage.tall { height: 640px; }
.map-stage canvas { display: block; width: 100%; height: 100%; }
.map-tip {
  display: none; position: absolute; z-index: 5; pointer-events: none;
  background: rgba(12,10,8,.92); color: #e8d5a6; border: 1px solid #c9b37a;
  padding: 6px 10px; border-radius: 6px; font-size: 12px; white-space: nowrap;
}
.map-assets {
  display: flex; flex-direction: column; gap: 10px; overflow: auto; max-height: 420px;
}
.map-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; cursor: pointer;
}
.map-card:hover, .map-card.on { border-color: #c9b37a; }
.map-card b { display: block; color: #f2efe6; }
.map-card small { color: var(--text-muted); }
.map-card .veh-swatch {
  display: inline-block; width: 14px; height: 14px; border-radius: 3px;
  border: 1px solid var(--border); vertical-align: middle; margin-right: 6px;
}
.map-legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0; font-size: 12px; color: var(--text-muted); }
.map-legend .lg::before {
  content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: middle;
}
.map-legend .veh::before { background: #e07a3a; }
.map-legend .house::before { background: #c9b37a; }
@media (max-width: 860px) {
  .map-box { grid-template-columns: 1fr; }
  .map-assets { max-height: none; }
}
.auth-wrap { background: #0a0c10; }

.rank-boards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 22px;
}
.rank-card {
  background: #141218;
  color: #f2efe6;
  border: 1px solid #2a241c;
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(0,0,0,.4);
  overflow: hidden;
}
.rank-card header {
  margin: 0;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #e8d5a6;
  border-bottom: 1px solid #3a2e20;
  background: linear-gradient(90deg, #2a1f14, #16120e);
}
.rank-card ol { list-style: none; margin: 0; padding: 0; }
.rank-card li {
  display: grid;
  grid-template-columns: 36px 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-bottom: 1px solid #221e24;
  font-size: 13px;
}
.rank-card li:last-child { border-bottom: 0; }
.rank-card li:hover { background: #1c1814; }
.rank-card li.noflag { grid-template-columns: 36px minmax(0, 1fr) auto; }
.rank-card li.empty {
  grid-template-columns: 1fr;
  color: #8a8276;
  padding: 18px 16px;
}
.rank-card .rk { color: #c9b37a; font-weight: 700; font-variant-numeric: tabular-nums; }
.rank-card .fg {
  width: 20px; height: 15px; object-fit: cover;
  border-radius: 2px; box-shadow: 0 0 0 1px #3a2e20;
}
.rank-card .nm {
  color: #f2efe6;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
.rank-card a.nm { color: #e8d5a6; }
.rank-card a.nm:hover { color: #fff; text-decoration: underline; }
.rank-card .sc {
  color: #e8d5a6;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 960px) {
  .rank-boards { grid-template-columns: 1fr; }
}
