:root {
  --bg: #070908;
  --panel: rgba(8, 10, 8, .68);
  --line: rgba(61, 224, 138, .16);
  --text: #f3f6ec;
  --muted: #b0b8a4;
  --accent: #3de08a;
  --gold: #d7b56a;
  --danger: #e06a5c;
  --radius: 20px;
  --shadow: 0 24px 60px rgba(0,0,0,.42);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #050605 url("/assets/img/tw-hero.jpg") center/cover fixed no-repeat;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(820px 420px at 50% 8%, rgba(61,224,138,.16), transparent 58%),
    linear-gradient(180deg, rgba(5,6,5,.42), rgba(5,6,5,.78) 42%, rgba(5,6,5,.93));
  pointer-events: none;
  z-index: 0;
}
.top, main, .foot { position: relative; z-index: 1; }
.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 28px;
  backdrop-filter: blur(18px);
  background: rgba(6,8,6,.55);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  color: var(--text); letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700; font-size: 13px;
}
.logo img {
  width: 40px; height: 40px; object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(61,224,138,.55));
}
.logo span { color: var(--accent); }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.top nav a {
  color: var(--muted); font-size: 13px; padding: 8px 13px; border-radius: 999px;
}
.top nav a.on, .top nav a:hover {
  color: var(--text); background: rgba(61,224,138,.14);
}
main { max-width: 1040px; margin: 0 auto; padding: 28px 20px 72px; }
.hero {
  min-height: 64vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 56px 20px 28px;
}
.hero-mark {
  width: 176px; height: 176px; object-fit: contain; margin-bottom: 8px;
  filter: drop-shadow(0 0 36px rgba(61,224,138,.4));
}
.hero h1 {
  margin: 6px 0 10px; font-size: 52px; font-weight: 750; letter-spacing: .14em;
  text-transform: uppercase; text-shadow: 0 8px 30px rgba(0,0,0,.45);
}
.hero p { margin: 0 auto 28px; color: var(--muted); max-width: 480px; line-height: 1.55; font-size: 17px; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  color: #06140c; background: var(--accent); font-weight: 700; font-size: 14px;
  box-shadow: 0 10px 28px rgba(61,224,138,.28);
  cursor: pointer;
}
.btn:hover { filter: brightness(1.07); color: #06140c; }
.btn.ghost {
  background: rgba(8,10,8,.5); color: var(--text);
  border-color: var(--line); box-shadow: none;
}
.btn.ghost:hover { color: var(--text); border-color: var(--accent); }
.panel, .card, .stat, .post, form.stack, .auth-card, .topic {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.steps { margin-top: 8px; }
.steps h2, .page-head h1 { margin: 0 0 8px; }
.card .pad, .pad { padding: 20px 20px 18px; }
.card h3 { margin: 0 0 8px; font-size: 16px; }
.muted { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 28px; }
.stat { padding: 18px 20px; text-align: center; }
.stat b { display: block; font-size: 26px; color: var(--accent); margin-bottom: 4px; }
.stat span { font-size: 13px; }
.page-head { margin-bottom: 24px; }
.lk-page { display: flex; flex-direction: column; gap: 18px; }
.lk-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.lk-portrait {
  position: relative;
  height: 260px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(120px 80px at 50% 80%, rgba(61,224,138,.18), transparent 70%),
    linear-gradient(180deg, rgba(12,16,12,.3), rgba(0,0,0,.55));
  border: 1px solid var(--line);
  display: flex; align-items: flex-end; justify-content: center;
}
.lk-portrait img {
  width: 100%; height: 100%; object-fit: contain; object-position: center bottom;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.45));
}
.lk-portrait.empty { align-items: center; color: var(--muted); font-size: 42px; }
.lk-skin-id {
  position: absolute; left: 10px; bottom: 10px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); background: rgba(0,0,0,.45); padding: 4px 8px; border-radius: 999px;
}
.lk-id h1 { margin: 0 0 14px; font-size: 34px; letter-spacing: .02em; }
.lk-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 13px;
  background: rgba(61,224,138,.1); border: 1px solid var(--line); color: var(--text);
}
.pill.on { color: var(--accent); border-color: rgba(61,224,138,.4); }
.pill.gold { color: var(--gold); border-color: rgba(215,181,106,.4); background: rgba(215,181,106,.1); }
.pill.dim { color: var(--muted); }
.lk-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lk-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lk-highlights .hl {
  padding: 18px 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  backdrop-filter: blur(16px); box-shadow: var(--shadow);
}
.lk-highlights .hl span, .lk-highlights .hl small { display: block; color: var(--muted); }
.lk-highlights .hl span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.lk-highlights .hl b { display: block; font-size: 28px; color: var(--accent); margin-bottom: 4px; }
.lk-highlights .hl small { font-size: 13px; }
.lk-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lk-panel {
  padding: 8px 6px 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  backdrop-filter: blur(16px);
}
.lk-panel h2 {
  margin: 12px 16px 8px; font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); font-weight: 700;
}
.lk-rows { display: flex; flex-direction: column; }
.lk-rows div {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px; border-top: 1px solid var(--line);
}
.lk-rows span { color: var(--muted); font-size: 14px; }
.lk-rows b { font-size: 16px; font-weight: 650; text-align: right; }
.eyebrow {
  margin: 0 0 8px; color: var(--accent); letter-spacing: .18em;
  text-transform: uppercase; font-size: 11px; font-weight: 700;
}
.crumb { margin: 0 0 10px; font-size: 13px; }
.auth-wrap { min-height: 64vh; display: flex; align-items: center; justify-content: center; }
.auth-card { width: 100%; max-width: 420px; padding: 32px 28px; text-align: center; }
.auth-card h1 { margin: 0 0 8px; font-size: 26px; }
.auth-card p { margin: 0 0 18px; }
.auth-card .mark { width: 84px; display: block; margin: 0 auto 14px; filter: drop-shadow(0 0 16px rgba(61,224,138,.4)); }
form.stack { display: flex; flex-direction: column; gap: 12px; padding: 20px; max-width: 560px; text-align: left; }
.auth-card form.stack { padding: 0; max-width: none; background: none; border: 0; box-shadow: none; }
label { font-size: 13px; color: var(--muted); display: block; text-align: left; }
input, textarea, select {
  background: rgba(0,0,0,.38); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 12px; width: 100%; font: inherit; margin-top: 6px;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 140px; }
.err { color: var(--danger); }
.ok { color: var(--accent); }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; margin-right: 6px; box-shadow: 0 0 8px var(--accent); }
.online-dot.off { background: #666; box-shadow: none; }
.forum-list { display: flex; flex-direction: column; gap: 10px; }
.topic {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 18px; margin-bottom: 0; color: inherit;
}
a.topic:hover { border-color: rgba(61,224,138,.4); color: inherit; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.post { margin: 12px 0; overflow: hidden; }
.post .meta { padding: 10px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.post .body { padding: 16px; white-space: pre-wrap; }
.partner-banner {
  margin: 36px 0 8px; text-align: center;
}
.partner-banner img {
  max-width: min(100%, 728px); height: auto; border-radius: 12px;
  display: inline-block;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: #f0d48a; }
button { font-family: inherit; }
@media (max-width: 720px) {
  .hero h1 { font-size: 32px; letter-spacing: .08em; }
  .hero-mark { width: 128px; height: 128px; }
  .stats { grid-template-columns: 1fr; }
  .top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .lk-hero, .lk-highlights, .lk-panels { grid-template-columns: 1fr; }
  .lk-portrait { height: 220px; }
  .lk-id h1 { font-size: 26px; }
}
