/* NexVeil — сайт сети. Палитра та же, что у старого сайта и меню в игре. */
:root {
  --ink: #0B0E0B;
  --slab: #121612;
  --slab2: #181D18;
  --slab3: #20261F;
  --line: #262D25;
  --line2: #343E33;
  --text: #E9EDF2;
  --muted: #8E9A8C;
  --dim: #5B6559;
  --acc: #C6F45B;
  --acc2: #9FDB34;
  --acc-soft: rgba(198, 244, 91, .12);
  --acc-line: rgba(198, 244, 91, .45);
  --ok: #3FB950;
  --ok-soft: rgba(63, 185, 80, .12);
  --crit: #E5534B;
  --crit-soft: rgba(229, 83, 75, .12);
  --grass1: #5DAF45;
  --grass2: #3A7A2A;
  --rail: 264px;
  --r: 14px;
  --f-disp: "Unbounded", "Manrope", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 15px/1.55 var(--f-body);
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(198, 244, 91, .10), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(198, 244, 91, .05), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
a { color: var(--acc); text-decoration: none; }
a:not([class]):hover { text-decoration: underline; }
/* карточки, кнопки, ники — без подчёркивания */
a[class]:hover, a[class]:hover * { text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--f-disp); font-weight: 700; letter-spacing: -.01em; margin: 0; }
h1 { font-size: 30px; line-height: 1.15; }
h2 { font-size: 21px; }
h3 { font-size: 16px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--f-mono); }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* ---------- Каркас ---------- */
.rail {
  position: fixed; top: 0; bottom: 0; left: 0;
  width: var(--rail);
  background: var(--slab);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  gap: 14px;
  padding: 18px 14px;
  overflow-y: auto;
  z-index: 40;
}
.main {
  margin-left: var(--rail);
  padding: 28px 32px 60px;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
.page { width: 100%; max-width: 1120px; margin: 0 auto; flex: 1; }
.topbar { display: none; }

.brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px 6px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(145deg, var(--acc), var(--acc2));
  display: grid; place-items: center;
  font: 900 17px var(--f-disp); color: #0f1608;
  box-shadow: 0 6px 20px rgba(159, 219, 52, .25);
}
.brand-name { font: 700 17px var(--f-disp); line-height: 1.1; }
.brand-sub { font-size: 12px; color: var(--acc); }

.auth-card {
  background: var(--slab2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px;
}
.auth-row { display: flex; align-items: center; gap: 10px; }
.auth-ico {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: var(--slab3); display: grid; place-items: center; color: var(--muted);
  overflow: hidden;
}
.auth-ico img { width: 100%; height: 100%; image-rendering: pixelated; }
.auth-title { font-weight: 800; font-size: 14px; line-height: 1.2; }
.auth-sub { font-size: 12px; color: var(--muted); }
.auth-card .btn { width: 100%; margin-top: 10px; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--muted); font-weight: 600;
}
.nav a:hover { background: var(--slab2); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--acc-soft); color: var(--acc); }
.nav svg { width: 19px; height: 19px; flex: none; }
.badge-soon {
  margin-left: auto; font-size: 10px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 99px;
  background: var(--slab3); color: var(--muted);
}

.server-card {
  margin-top: auto;
  background: linear-gradient(160deg, #1d2a1a, #142012 70%);
  border: 1px solid #2b4126; border-radius: var(--r);
  padding: 12px;
}
.server-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #a6c99b; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); display: inline-block; margin-right: 6px; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 4px rgba(63, 185, 80, .18); }
.server-ip {
  margin-top: 8px; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(0, 0, 0, .25); border: 1px solid #2b4126; border-radius: 10px;
  padding: 8px 10px; cursor: pointer;
  font: 700 13px var(--f-mono); color: #d8f0cf;
}
.server-ip:hover { border-color: var(--grass1); }
.socials { display: flex; gap: 8px; }
.socials a {
  flex: 1; height: 36px; border-radius: 10px;
  background: var(--slab2); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--muted);
}
.socials a:hover { color: var(--text); border-color: var(--line2); }
.socials svg { width: 18px; height: 18px; }

.footer {
  max-width: 1120px; width: 100%; margin: 48px auto 0;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: 13px; color: var(--dim);
}
.footer a { color: var(--muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- Кнопки и поля ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer;
  font-weight: 800; font-size: 14px; white-space: nowrap;
  transition: transform .08s, filter .15s, background .15s, border-color .15s;
  text-decoration: none !important;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: linear-gradient(180deg, var(--acc), var(--acc2)); color: #0f1608; box-shadow: 0 6px 18px rgba(159, 219, 52, .25); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.07); }
.btn-ghost { background: var(--slab3); color: var(--text); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { border-color: var(--line2); background: #262e25; }
.btn-outline { background: rgba(198, 244, 91, .08); color: var(--acc); border-color: var(--acc-line); }
.btn-outline:hover:not(:disabled) { background: rgba(198, 244, 91, .14); }
.btn-grass {
  color: #fff; border-color: #4f8f3a;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 6px, transparent 6px 12px),
    linear-gradient(180deg, var(--grass1), var(--grass2));
}
.btn-grass:hover:not(:disabled) { filter: brightness(1.08); }
.btn-sm { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 13px; }
.btn-block { width: 100%; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 600; }
.input {
  width: 100%; height: 50px; padding: 0 16px;
  background: var(--slab2); border: 1px solid var(--line); border-radius: 12px;
  outline: none; transition: border-color .15s;
}
.input::placeholder { color: var(--dim); }
.input:focus { border-color: var(--acc-line); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 48px; }
.input-eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; background: none; color: var(--muted); cursor: pointer;
  display: grid; place-items: center; border-radius: 8px;
}
.input-eye:hover { color: var(--text); }
.input-eye svg { width: 20px; height: 20px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--acc); width: 16px; height: 16px; flex: none; }

.sep { display: flex; align-items: center; gap: 14px; color: var(--dim); font-size: 12px; margin: 18px 0; }
.sep::before, .sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.alert { padding: 11px 14px; border-radius: 12px; font-size: 14px; border: 1px solid; }
.alert-err { background: var(--crit-soft); border-color: rgba(229, 83, 75, .4); color: #ffb4ae; }
.alert-ok { background: var(--ok-soft); border-color: rgba(63, 185, 80, .4); color: #a8e6b2; }
.alert-info { background: var(--acc-soft); border-color: var(--acc-line); color: #e4f9b4; }

/* ---------- Карточки ---------- */
.card { background: var(--slab); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 34px 0 16px; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.page-head { margin-bottom: 22px; }
.page-head p { margin: 8px 0 0; color: var(--muted); }

.event {
  display: flex; align-items: center; gap: 16px;
  background: var(--slab); border: 1px solid var(--line); border-left: 3px solid var(--acc);
  border-radius: 14px; padding: 14px 18px;
}
.event-tag { font-size: 11px; font-weight: 800; color: var(--acc); letter-spacing: .06em; text-transform: uppercase; }
.event-title { font-weight: 800; }
.event-sub { font-size: 13px; color: var(--muted); }
.event .grow { flex: 1; min-width: 0; }

.promo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.promo-tile {
  position: relative; overflow: hidden;
  border-radius: 18px; padding: 20px 22px; min-height: 108px;
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--line);
}
.promo-tile.crystals { background: linear-gradient(120deg, #1a2219, #111611); }
.promo-tile.unban { background: linear-gradient(120deg, #c6f45b, #93d12c); border-color: #d4f77e; color: #0f1608; }
.promo-ico {
  width: 54px; height: 54px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
}
.promo-tile.unban .promo-ico { background: rgba(15, 22, 8, .12); border-color: rgba(15, 22, 8, .2); }
.promo-ico svg { width: 26px; height: 26px; }
.promo-label { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.promo-name { font: 700 20px var(--f-disp); }
.promo-price { font-size: 13px; opacity: .85; }
.promo-tile .grow { flex: 1; min-width: 150px; }
.promo-tile { flex-wrap: wrap; }
.promo-tile .btn { flex: none; }
.promo-tile.crystals .btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: #fff; }
.promo-tile.unban .btn { background: #0f1608; color: var(--acc); }

.launcher {
  position: relative; overflow: hidden; margin-top: 16px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 22px 24px; border-radius: 18px;
  border: 1px solid var(--acc-line);
  background:
    radial-gradient(420px 220px at 0% 0%, rgba(198, 244, 91, .16), transparent 70%),
    radial-gradient(360px 240px at 100% 100%, rgba(120, 90, 255, .14), transparent 70%),
    linear-gradient(120deg, #151c14, #0f130f);
}
.launcher-logo {
  width: 72px; height: 72px; border-radius: 20px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--acc), #7c5cff);
  box-shadow: 0 10px 30px rgba(124, 92, 255, .25), 0 6px 20px rgba(159, 219, 52, .2);
}
.launcher-logo span { font: 900 24px var(--f-disp); color: #0f1608; }
.launcher .grow { flex: 1; min-width: 240px; }
.launcher-label { color: var(--acc); opacity: 1; }
.launcher-name { font: 700 24px var(--f-disp); letter-spacing: -.01em; margin-top: 2px; }
.launcher-text { margin: 6px 0 0; color: var(--muted); font-size: 14px; max-width: 520px; }
.launcher-feats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 13px; font-weight: 700; color: #c8d0da; }
.launcher-feats span { display: inline-flex; align-items: center; gap: 6px; }
.launcher-feats svg { width: 14px; height: 14px; color: var(--acc); }
.launcher-cta { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; }
.launcher-cta .btn { height: 48px; padding: 0 22px; }

.grid-privs { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 16px; }
.priv {
  --c: var(--acc);
  position: relative;
  background: var(--slab); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
  cursor: pointer; transition: border-color .15s, transform .15s;
}
.priv:hover { border-color: color-mix(in srgb, var(--c) 55%, var(--line)); transform: translateY(-2px); }
.priv-name { font: 700 17px var(--f-disp); color: var(--c); letter-spacing: .02em; text-transform: uppercase; }
.priv-term { font-size: 11px; font-weight: 700; color: var(--dim); letter-spacing: .08em; }
.priv-art {
  aspect-ratio: 1; border-radius: 14px;
  background:
    radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--c) 35%, transparent), transparent 65%),
    var(--slab2);
  display: grid; place-items: center; overflow: hidden;
}
.priv-art img { width: 62%; image-rendering: pixelated; filter: drop-shadow(0 10px 18px rgba(0,0,0,.5)); transition: transform .25s; }
.priv:hover .priv-art img { transform: scale(1.06) rotate(-3deg); }
.priv-price { text-align: center; font: 700 22px var(--f-disp); color: var(--acc); }
.priv-price s { font: 600 13px var(--f-body); color: var(--dim); margin-right: 6px; }
.priv .owned { color: var(--ok); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--slab); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.step-n {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--acc-soft); color: var(--acc); font-weight: 800; font-size: 13px; margin-bottom: 10px;
}
.step b { display: block; margin-bottom: 4px; }
.step p { margin: 0; font-size: 14px; color: var(--muted); }

.news { display: grid; gap: 12px; }
.news-item { background: var(--slab); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.news-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--dim); margin-bottom: 6px; }
.tag { font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 2px 8px; border-radius: 99px; text-transform: uppercase; background: var(--slab3); color: var(--muted); }
.tag.upd { background: var(--acc-soft); color: var(--acc); }
.tag.fix { background: var(--ok-soft); color: var(--ok); }
.news-item p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- Правила ---------- */
.rules-tools { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.rules-tools .input { flex: 1; min-width: 220px; height: 46px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  height: 34px; padding: 0 14px; border-radius: 99px; cursor: pointer;
  background: var(--slab2); border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 13px;
}
.chip:hover { color: var(--text); }
.chip.active { background: var(--acc-soft); border-color: var(--acc-line); color: var(--acc); }
.rule-sec { margin-bottom: 26px; }
.rule-sec h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 18px; }
.acc { background: var(--slab); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; overflow: hidden; }
.acc summary {
  list-style: none; cursor: pointer; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; font-weight: 700;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; margin-left: auto; width: 9px; height: 9px; flex: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s;
}
.acc[open] summary::after { transform: rotate(-135deg); }
.acc[open] { border-color: var(--line2); }
.rule-id {
  font: 700 12px var(--f-mono); color: var(--acc);
  background: var(--acc-soft); padding: 3px 8px; border-radius: 7px; flex: none;
}
.acc-body { padding: 0 16px 16px; color: #c8d0da; font-size: 14px; }
.acc-body p { margin: 0 0 10px; }
.pun {
  margin-top: 12px; padding: 12px 14px; border-radius: 12px;
  background: var(--crit-soft); border: 1px solid rgba(229, 83, 75, .3);
  color: #ffc3be; white-space: pre-line;
}
.pun b { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--crit); margin-bottom: 4px; }
mark { background: rgba(198, 244, 91, .3); color: inherit; border-radius: 3px; padding: 0 2px; }

/* ---------- Поддержка ---------- */
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 30px; }
.contact {
  background: var(--slab); border: 1px solid var(--line); border-radius: 16px; padding: 18px;
  display: flex; flex-direction: column; gap: 8px; color: var(--text);
}
.contact:hover { border-color: var(--line2); text-decoration: none; }
.contact-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--slab3); color: var(--acc); }
.contact-ico svg { width: 21px; height: 21px; }
.contact p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Форум (скоро) ---------- */
.soon { text-align: center; padding: 70px 20px; }
.soon-ico {
  width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 24px;
  background: var(--acc-soft); border: 1px solid var(--acc-line);
  display: grid; place-items: center; color: var(--acc);
}
.soon-ico svg { width: 38px; height: 38px; }
.soon p { max-width: 480px; margin: 12px auto 24px; color: var(--muted); }
.soon-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 26px; }

/* ---------- Кабинет ---------- */
.profile { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.profile-skin {
  width: 88px; height: 88px; border-radius: 20px; overflow: hidden; flex: none;
  background: var(--slab2); border: 1px solid var(--line);
}
.profile-skin img { width: 100%; height: 100%; image-rendering: pixelated; }
.profile .grow { flex: 1; min-width: 200px; }
.profile-name { font: 700 26px var(--f-disp); }
.priv-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
  padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 800;
  border: 1px solid currentColor; text-transform: uppercase; letter-spacing: .04em;
}
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.cab-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 16px; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }
.stat-label { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.stat-value { font: 700 28px var(--f-disp); margin-top: 6px; }
.stat-value.hl { color: var(--acc); }
.stat-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.stat-row:last-child { border-bottom: 0; }
.stat-row span:first-child { color: var(--muted); }
.mode-tabs { display: flex; gap: 6px; margin: 12px 0 4px; }
.pill-ok, .pill-no, .pill-wait, .pill-err {
  font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 99px;
}
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-no { background: var(--slab3); color: var(--muted); }
.pill-wait { background: var(--acc-soft); color: var(--acc); }
.pill-err { background: var(--crit-soft); color: var(--crit); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--dim); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; }
.table td { padding: 12px 10px; border-top: 1px solid var(--line); }
.table-wrap { overflow-x: auto; }
.ban-card { border-color: rgba(229, 83, 75, .45); background: linear-gradient(160deg, #2a1414, var(--slab) 70%); }

/* ---------- Модальные окна ---------- */
.modal-back {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 6, 4, .75); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow-y: auto;
  animation: fade .15s ease-out;
}
.modal {
  position: relative; width: 100%; max-width: 520px;
  background: #151a15; border: 1px solid #283027; border-radius: 22px;
  padding: 40px 44px 36px; margin: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  animation: pop .18s ease-out;
}
.modal.wide { max-width: 640px; }
.modal-x {
  position: absolute; top: 18px; right: 18px;
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: #232a22; color: var(--muted); display: grid; place-items: center;
}
.modal-x:hover { color: var(--text); background: #2d362c; }
.modal-x svg { width: 18px; height: 18px; }
.modal h2 { font: 700 29px var(--f-body); letter-spacing: -.02em; padding-right: 40px; }
.modal-sub { color: var(--muted); margin: 4px 0 24px; font-size: 15px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

.cmd-box { border: 1px solid #2f5a2a; border-radius: 16px; overflow: hidden; background: #1a1f1b; }
.cmd-head { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 13px; color: var(--muted); font-weight: 700; border-bottom: 1px solid #263826; background: #1c241c; }
.cmd-head svg { width: 16px; height: 16px; color: var(--grass1); }
.cmd-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; }
.cmd-text { font: 700 20px var(--f-mono); letter-spacing: .02em; word-break: break-all; }
.steps-list { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-direction: column; gap: 12px; }
.steps-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.steps-list .n {
  width: 24px; height: 24px; border-radius: 50%; flex: none; margin-top: 1px;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
  background: rgba(198, 244, 91, .14); color: var(--acc);
}
.kbd {
  display: inline-flex; align-items: center; gap: 5px;
  font: 600 13px var(--f-mono); padding: 2px 8px; border-radius: 7px;
  background: #1f261e; border: 1px solid #333d32; cursor: pointer; vertical-align: 1px;
}
.kbd.hl { color: var(--acc); background: rgba(198, 244, 91, .1); border-color: rgba(198, 244, 91, .3); }
.kbd svg { width: 12px; height: 12px; opacity: .7; }
.waiting { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.spinner {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid var(--line2); border-top-color: var(--acc);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.mode-switch { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.perk { background: #1d231c; border-radius: 12px; padding: 12px 14px; }
.perk-k { font-size: 12px; color: var(--muted); }
.perk-v { font-weight: 800; color: var(--acc); font-size: 17px; margin-top: 2px; }
.priv-head { display: flex; align-items: center; gap: 16px; padding-right: 40px; margin-bottom: 6px; }
.priv-head img { width: 64px; height: 64px; image-rendering: pixelated; flex: none; }

.checkout { border-top: 1px solid #283027; margin-top: 22px; padding-top: 22px; }
.quote {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: #1d231c; border-radius: 12px; padding: 12px 14px; font-size: 14px;
  min-height: 48px;
}
.quote b { font: 700 18px var(--f-disp); color: var(--acc); white-space: nowrap; }
.providers { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.provider {
  height: 46px; border-radius: 12px; cursor: pointer; font-weight: 700; font-size: 14px;
  background: #1d231c; border: 1px solid #2f392e; color: var(--muted);
}
.provider.active { border-color: var(--acc); color: var(--text); background: rgba(198, 244, 91, .08); }
.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.preset {
  border-radius: 12px; padding: 10px; cursor: pointer; text-align: center;
  background: #1d231c; border: 1px solid #2f392e;
}
.preset.active { border-color: var(--acc); background: rgba(198, 244, 91, .08); }
.preset b { display: block; font-size: 16px; }
.preset small { color: var(--ok); font-weight: 700; font-size: 11px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #1d231c; border: 1px solid var(--line2); color: var(--text);
  padding: 10px 18px; border-radius: 12px; font-weight: 700; font-size: 14px;
  z-index: 200; box-shadow: 0 10px 30px rgba(0,0,0,.4);
  animation: pop .15s ease-out;
}

.doc { max-width: 820px; }
.doc h2 { font-size: 18px; margin: 26px 0 8px; }
.doc p, .doc li { color: #c8d0da; font-size: 15px; }

.skeleton { background: linear-gradient(90deg, var(--slab2), var(--slab3), var(--slab2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .contacts { grid-template-columns: 1fr 1fr; }
  .span-4 { grid-column: span 6; }
  .span-8 { grid-column: span 12; }
}
@media (max-width: 900px) {
  .rail { transform: translateX(-100%); transition: transform .2s; box-shadow: 20px 0 60px rgba(0,0,0,.5); }
  body.rail-open .rail { transform: none; }
  body.rail-open .rail-back { display: block; }
  .rail-back { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 39; }
  .main { margin-left: 0; padding: 0 16px 40px; }
  .topbar {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 30;
    margin: 0 -16px 18px; padding: 10px 16px;
    background: rgba(11, 14, 11, .9); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }
  .burger { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--slab2); display: grid; place-items: center; cursor: pointer; }
  .burger svg { width: 20px; height: 20px; }
  .promo, .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  h1 { font-size: 24px; }
  .contacts { grid-template-columns: 1fr; }
  .span-4, .span-6 { grid-column: span 12; }
  .grid-privs { grid-template-columns: 1fr 1fr; gap: 10px; }
  .priv { padding: 12px; }
  .priv-name { font-size: 14px; }
  .priv-price { font-size: 18px; }
  .priv .btn { height: 38px; font-size: 13px; }
  .modal { padding: 30px 20px 24px; border-radius: 18px; }
  .modal h2 { font-size: 24px; }
  .perks { grid-template-columns: 1fr; }
  .cmd-body { flex-direction: column; align-items: stretch; }
  .event { flex-wrap: wrap; }
  .launcher { padding: 18px; gap: 14px; }
  .launcher-logo { width: 56px; height: 56px; border-radius: 16px; }
  .launcher-logo span { font-size: 19px; }
  .launcher-name { font-size: 20px; }
  .launcher-cta { width: 100%; }
  .launcher-cta .btn { width: 100%; }
}
.mc-prefix { text-transform: none; letter-spacing: 0; white-space: nowrap; }
.rank-shine {
  background: var(--rk); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--rk-glow) 45%, transparent));
  animation: rank-shine 4s linear infinite;
}
@keyframes rank-shine { from { background-position: 0% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .rank-shine { animation: none; } }
.priv-badge:has(.rank-shine) { border-color: color-mix(in srgb, var(--rk-glow, currentColor) 55%, transparent); }
.priv-icon { width: 58%; height: auto; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--glow) 55%, transparent)) drop-shadow(0 8px 14px rgba(0,0,0,.45));
  transition: transform .3s; animation: priv-float 4s ease-in-out infinite; }
.priv:hover .priv-icon { transform: scale(1.08) rotate(-4deg); }
.priv-head .priv-icon { width: 64px; flex: none; animation: none; }
@keyframes priv-float { 50% { translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) { .priv-icon { animation: none; } }
.pay-badge { display: inline-flex; opacity: .8; } .pay-badge:hover { opacity: 1; } .pay-badge img { height: 32px; width: auto; border-radius: 6px; display: block; }

/* ---------- Форум ---------- */
.f-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.f-h1 { font: 700 26px var(--f-disp); margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.f-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; }
.f-sub svg { width: 15px; height: 15px; }
.f-crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.f-crumbs a { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.f-crumbs a:hover { color: var(--text); text-decoration: none; }
.f-crumbs svg { width: 15px; height: 15px; }
.f-crumbs b { color: var(--text); font-weight: 600; }
.f-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.f-tile { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; }
.f-tile-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; margin-bottom: 8px; }
.f-tile-ico svg { width: 19px; height: 19px; }
.f-tile b { font: 700 22px var(--f-disp); }
.f-tile small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.f-group { margin-bottom: 22px; }
.f-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.f-group-head h2 { font: 700 17px var(--f-disp); margin: 0; }
.f-group-ico { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--acc), var(--acc2)); color: var(--ink); display: grid; place-items: center; flex: none; }
.f-group-ico svg { width: 19px; height: 19px; }
.f-group-n { margin-left: auto; font-size: 12px; }
.f-list { padding: 0; overflow: hidden; }
.f-row, .f-topic { display: flex; align-items: center; gap: 14px; padding: 14px 18px; color: var(--text); border-top: 1px solid var(--line); transition: background .15s; }
.f-row:first-child, .f-topic:first-child { border-top: 0; }
.f-row:hover, .f-topic:hover { background: var(--slab3); text-decoration: none; }
.f-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; flex: none; }
.f-ico svg { width: 19px; height: 19px; }
.f-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.f-main > b { font-weight: 700; display: flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; }
.f-row:hover .f-main > b, .f-topic:hover .f-main > b { color: var(--acc); }
.f-count { display: flex; flex-direction: column; align-items: center; min-width: 52px; }
.f-count b { font: 700 16px var(--f-disp); }
.f-count small { color: var(--muted); font-size: 11px; }
.f-last { display: flex; align-items: center; gap: 10px; width: 250px; flex: none; }
.f-last > span { display: flex; flex-direction: column; min-width: 0; font-size: 12px; }
.f-last-t { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.f-last-a { display: flex; align-items: center; gap: 6px; }
.f-head { width: 40px; height: 40px; border-radius: 8px; image-rendering: pixelated; flex: none; background: var(--slab3); }
.f-topic .f-head { width: 44px; height: 44px; }
.f-name { font-weight: 700; }
.f-rank { font-size: 10px; padding: 1px 7px; border-radius: 99px; border: 1px solid var(--line2); background: rgba(255,255,255,.03); white-space: nowrap; }
.f-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; flex-wrap: wrap; }
.f-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.f-tags span { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--slab3); color: var(--muted); border: 1px solid var(--line); }
.f-stats { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; flex: none; }
.f-stats span { display: inline-flex; align-items: center; gap: 4px; }
.f-stats svg { width: 15px; height: 15px; }
.f-stats small { min-width: 92px; text-align: right; }
.f-badge { color: var(--acc); display: inline-flex; }
.f-badge svg { width: 15px; height: 15px; }
.f-empty { padding: 28px; text-align: center; display: flex; align-items: center; justify-content: center; gap: 8px; }
.f-empty svg { width: 16px; height: 16px; }
.f-pager { display: flex; gap: 6px; justify-content: center; margin: 16px 0; flex-wrap: wrap; }
.f-pager a, .f-pager b, .f-pager span { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; padding: 0 8px; }
.f-pager a { background: var(--slab2); border: 1px solid var(--line); color: var(--text); }
.f-pager a:hover { border-color: var(--line2); text-decoration: none; }
.f-pager b { background: var(--acc); color: var(--ink); }
.f-pager span { color: var(--muted); }
.f-post { display: flex; gap: 0; padding: 0; overflow: hidden; margin-bottom: 12px; }
.f-author { width: 170px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 12px; background: var(--slab); border-right: 1px solid var(--line); text-align: center; }
.f-author .f-head { width: 72px; height: 72px; border-radius: 12px; }
.f-body { flex: 1; min-width: 0; padding: 16px 20px; }
.f-post-meta { font-size: 12px; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.f-edit { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; color: var(--muted); cursor: pointer; font-size: 12px; }
.f-edit:hover { color: var(--text); border-color: var(--line2); }
.f-edit svg { width: 13px; height: 13px; }
.f-text-out { line-height: 1.6; word-wrap: break-word; overflow-wrap: anywhere; }
.f-text-out p { margin: 0; }
.f-text-out .fp-gap { height: 10px; }
.f-text-out ul { margin: 6px 0; padding-left: 20px; }
.f-text-out blockquote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--acc); background: var(--slab3); border-radius: 0 8px 8px 0; color: var(--muted); }
.f-text-out code { font-family: var(--f-mono); font-size: 13px; background: var(--slab3); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.f-reply { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.f-text { min-height: 130px; resize: vertical; padding: 12px 14px; line-height: 1.5; }
.f-reply-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .f-last { display: none; }
  .f-tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .f-post { flex-direction: column; }
  .f-author { width: auto; flex-direction: row; justify-content: flex-start; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .f-author .f-head { width: 40px; height: 40px; }
  .f-stats small { display: none; }
}
@media (max-width: 520px) { .f-tile b { font-size: 18px; } .f-stats span:last-child { display: none; } }

/* профиль и лайки */
.f-ulink { cursor: pointer; }
.f-ulink:hover { color: var(--acc); }
.f-author { cursor: pointer; }
.f-author:hover .f-name { color: var(--acc); }
.f-post-foot { display: flex; justify-content: flex-end; margin-top: 10px; }
.f-like { display: inline-flex; align-items: center; gap: 6px; background: var(--slab3); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; color: var(--muted); cursor: pointer; font-size: 13px; transition: .15s; }
.f-like svg { width: 15px; height: 15px; }
.f-like:hover:not(:disabled) { color: #ff6b8a; border-color: rgba(255, 107, 138, .4); }
.f-like.on { color: #ff6b8a; border-color: rgba(255, 107, 138, .45); background: rgba(255, 107, 138, .1); }
.f-like.on svg { fill: currentColor; }
.f-like:disabled { cursor: default; opacity: .7; }
.f-prof { padding: 0; overflow: hidden; margin-bottom: 16px; }
.f-cover { height: 190px; position: relative; background:
  radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--c1) 55%, transparent), transparent 60%),
  radial-gradient(120% 140% at 100% 100%, color-mix(in srgb, var(--c2) 45%, transparent), transparent 60%),
  linear-gradient(135deg, #151a15, #0e120e); }
.f-cover::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1.2px); background-size: 22px 22px; opacity: .25; }
.f-prof-body { padding: 0 26px 22px; position: relative; }
.f-ava { width: 104px; height: 104px; margin-top: -56px; position: relative; border-radius: 18px; border: 4px solid var(--slab2); background: var(--slab3); }
.f-ava .f-head { width: 100%; height: 100%; border-radius: 14px; }
.f-dot { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok); border: 3px solid var(--slab2); }
.f-pname { font: 700 26px var(--f-disp); margin: 14px 0 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.f-pname .f-rank { font-size: 12px; padding: 2px 10px; }
.f-pseen { margin: 0 0 12px; font-size: 14px; }
.f-on { color: var(--ok); }
.f-pchips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.f-pchips .chip { display: inline-flex; align-items: center; gap: 6px; }
.f-pchips svg { width: 15px; height: 15px; }
.f-about { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.f-about p { margin: 0; font-style: italic; white-space: pre-wrap; }
.f-about .btn svg { width: 15px; height: 15px; }
.f-ptiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.f-ptile { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; }
.f-ptile-ico { color: var(--acc); margin-bottom: 6px; }
.f-ptile-ico svg { width: 20px; height: 20px; }
.f-ptile b { font: 700 20px var(--f-disp); }
.f-ptile small { color: var(--muted); font-size: 13px; }
.f-h2 { font: 700 18px var(--f-disp); margin: 0 0 12px; }
@media (max-width: 860px) { .f-ptiles { grid-template-columns: repeat(2, 1fr); } .f-cover { height: 130px; } .f-about { flex-direction: column; align-items: flex-start; } }

/* карточка при наведении */
.f-hover { position: absolute; z-index: 60; width: 280px; background: var(--slab2); border: 1px solid var(--line2); border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.5); opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; cursor: pointer; }
.f-hover.on { opacity: 1; transform: none; }
.f-hover-cover { height: 64px; background: radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--c1) 60%, transparent), transparent 65%),
  radial-gradient(120% 160% at 100% 100%, color-mix(in srgb, var(--c2) 50%, transparent), transparent 65%), #121612; }
.f-hover-body { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 4px; }
.f-ava.sm { width: 60px; height: 60px; margin-top: -30px; border-width: 3px; border-radius: 14px; }
.f-ava.sm .f-head { border-radius: 10px; }
.f-ava.sm .f-dot { width: 14px; height: 14px; border-width: 2px; right: -3px; bottom: -3px; }
.f-hover-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; font-size: 16px; }
.f-hover-about { margin: 4px 0 0; font-size: 13px; font-style: italic; color: var(--muted); }
.f-hover-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.f-hover-stats span { background: var(--slab3); border-radius: 8px; padding: 6px 4px; text-align: center; font-size: 11px; color: var(--muted); display: flex; flex-direction: column; }
.f-hover-stats b { color: var(--text); font-size: 14px; }

/* главная форума: событие, команда, новости */
.f-h2 { display: flex; align-items: center; gap: 8px; }
.f-h2 svg { width: 18px; height: 18px; color: var(--acc); }
.f-top-sm { align-items: center; margin: 4px 0 10px; }
.f-top-sm .f-h2 { margin: 0; }
.f-event { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: var(--r); color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #8a2b1f, #c0452f 55%, #6b1d2a); border: 1px solid rgba(255,255,255,.08); margin-bottom: 10px; }
.f-event:hover { text-decoration: none; filter: brightness(1.05); }
.f-event-tags { display: flex; gap: 6px; }
.f-event-pill { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; background: rgba(0,0,0,.28); }
.f-event-pill.alt { background: rgba(255,255,255,.16); }
.f-event-title { font: 700 20px var(--f-disp); }
.f-event small { opacity: .85; }
.f-event-in { font-weight: 800; margin-top: 4px; }
.f-event-next { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.f-event-row { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px; background: var(--slab2); border: 1px solid var(--line); border-left: 3px solid var(--acc); border-radius: 10px; padding: 9px 12px; }
.f-event-row b { font-size: 13px; }
.f-event-row em { margin-left: auto; font-style: normal; color: var(--acc); font-size: 12px; font-weight: 700; }
.f-tiles.four { grid-template-columns: repeat(4, 1fr); }
.f-team { padding: 16px 18px; margin-bottom: 22px; }
.f-team-head { display: flex; align-items: center; gap: 12px; }
.f-team-head > svg { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--acc-soft); color: var(--acc); flex: none; }
.f-team-head > div { display: flex; flex-direction: column; }
.f-team-n { margin-left: auto; font-size: 12px; color: var(--muted); background: var(--slab3); border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; display: inline-flex; align-items: center; gap: 6px; }
.f-dot.inline { position: static; width: 8px; height: 8px; border: 0; display: inline-block; }
.f-team-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.f-tchip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 10px; background: var(--slab3); border: 1px solid var(--line); cursor: pointer; opacity: .65; }
.f-tchip.on { opacity: 1; border-color: rgba(63,185,80,.45); }
.f-tchip .f-head { width: 30px; height: 30px; border-radius: 7px; }
.f-tchip > span { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.f-tchip:hover { border-color: var(--line2); opacity: 1; }
.f-team-empty { margin: 12px 0 0; font-size: 13px; }
.f-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.f-newsc { display: flex; flex-direction: column; gap: 8px; color: var(--text); padding: 0 0 16px; overflow: hidden; }
.f-newsc:hover { text-decoration: none; border-color: var(--line2); }
.f-newsc-top { height: 90px; display: grid; place-items: center; color: var(--acc); background: radial-gradient(120% 120% at 0% 0%, rgba(198,244,91,.22), transparent 60%), var(--slab3); margin-bottom: 4px; }
.f-newsc-top svg { width: 34px; height: 34px; }
.f-newsc b, .f-newsc p, .f-newsc .f-meta { padding: 0 16px; }
.f-newsc p { margin: 0; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* модерация */
.f-modbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 14px; border: 1px dashed var(--line2); border-radius: 12px; }
.f-modbar > span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; margin-right: 4px; }
.f-modbar svg { width: 15px; height: 15px; }
.f-modbar .btn { gap: 6px; }
.f-danger { color: var(--crit) !important; }
.f-danger:hover { border-color: rgba(229,83,75,.5) !important; }
@media (max-width: 860px) { .f-tiles.four { grid-template-columns: repeat(2, 1fr); } .f-news { grid-template-columns: 1fr; } }
.f-edit + .f-edit { margin-left: 0; }
.f-ev-tools { position: absolute; top: 14px; right: 14px; display: flex; gap: 6px; }
.f-event-row { position: relative; }
.f-event-row .f-ev-tools { position: static; margin-left: 8px; }
.f-ev-tools button { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.25); color: inherit; cursor: pointer; }
.f-ev-tools button:hover { background: rgba(0,0,0,.45); }
.f-ev-tools svg { width: 14px; height: 14px; }
.f-top-sm .btn svg { width: 15px; height: 15px; }
input[type=datetime-local].input { color-scheme: dark; }

/* персонализация: ник, бейджи, свои картинки */
.f-nick { color: var(--n1); }
.f-nick.grad { background: linear-gradient(90deg, var(--n1), var(--n2), var(--n1)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.f-nick.shimmer { animation: f-shim 3s linear infinite; }
.f-nick.glow { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--n1) 70%, transparent)); }
@keyframes f-shim { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .f-nick.shimmer { animation: none; } }
.f-badges { display: inline-flex; gap: 3px; }
.f-bdg { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font-size: 12px; line-height: 1;
  background: color-mix(in srgb, var(--bc) 18%, transparent); border: 1px solid color-mix(in srgb, var(--bc) 45%, transparent); }
.f-head.own { image-rendering: auto; object-fit: cover; }
.f-cover.img, .f-hover-cover.img { background-size: cover; background-position: center; }
.f-cover.img::after { display: none; }
.f-about-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.f-about-btns .btn svg { width: 15px; height: 15px; }
.f-prev { background: var(--slab3); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 6px 0 12px; }
.f-prev small { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .05em; margin-bottom: 6px; }
.f-prev small svg { width: 14px; height: 14px; }
#fPrev { display: flex; align-items: center; gap: 8px; font-size: 17px; flex-wrap: wrap; }
.f-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; background: var(--slab3); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 12px; }
.f-tabs button { border: 0; background: none; color: var(--muted); padding: 8px 4px; border-radius: 9px; cursor: pointer; font-weight: 700; font-size: 13px; }
.f-tabs button.on { background: var(--slab); color: var(--text); }
#fTab { min-height: 190px; margin-bottom: 12px; }
.f-lock { border: 1px dashed var(--line2); border-radius: 12px; padding: 26px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.f-lock > svg { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--acc-soft); color: var(--acc); }
.f-lock p { margin: 0; font-size: 13px; }
.f-lock .btn svg { width: 15px; height: 15px; }
.f-up { display: flex; gap: 14px; align-items: stretch; flex-wrap: wrap; }
.f-up-prev { width: 128px; height: 128px; border-radius: 14px; overflow: hidden; background: var(--slab3); display: grid; place-items: center; flex: none; }
.f-up-prev.banner { width: 100%; height: 110px; }
.f-up-prev img { width: 100%; height: 100%; object-fit: cover; }
.f-up-prev .f-head { width: 100%; height: 100%; border-radius: 0; }
.f-up-side { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 8px; }
.f-drop { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 14px; border: 1px dashed var(--line2); border-radius: 12px; cursor: pointer; text-align: center; }
.f-drop:hover { border-color: var(--acc-line); }
.f-drop svg { width: 22px; height: 22px; color: var(--acc); }
.f-nickset { display: flex; flex-direction: column; gap: 12px; }
.f-nickset label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 700; }
.f-nickset input[type=color] { width: 64px; height: 36px; border: 1px solid var(--line2); border-radius: 9px; background: var(--slab3); padding: 3px; cursor: pointer; }
.f-row2 { display: flex; gap: 10px; align-items: center; }
.f-hint { display: flex; align-items: center; gap: 6px; font-size: 13px; margin: 0; }
.f-hint svg { width: 14px; height: 14px; }
.f-bdg-list { display: flex; flex-wrap: wrap; gap: 8px; }
.f-bdg-opt { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 10px; background: var(--slab3); border: 1px solid var(--line); cursor: pointer; color: var(--text); font: inherit; font-size: 13px; }
.f-bdg-opt.on, .f-bdg-opt:has(input:checked) { border-color: var(--acc-line); background: var(--acc-soft); }
.f-bdg-opt input { accent-color: var(--acc); }
@media (max-width: 560px) { .f-tabs { grid-template-columns: repeat(3, 1fr); } }

/* бейджи: галочка команды, редкость, карточка при наведении */
.f-bdg.ver { background: none; border: 0; width: 20px; height: 20px; }
.f-verified { width: 20px; height: 20px; color: #3B9BFF; filter: drop-shadow(0 0 4px rgba(59,155,255,.45)); }
.f-bdg { cursor: help; }
.f-rar { color: var(--rc); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.f-btip { position: absolute; z-index: 70; min-width: 170px; padding: 16px 18px 14px; border-radius: 14px; text-align: center; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 6px; background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 16%, #161b16), #121612);
  border: 1px solid color-mix(in srgb, var(--rc) 45%, transparent); box-shadow: 0 16px 36px rgba(0,0,0,.5); opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; }
.f-btip.on { opacity: 1; transform: none; }
.f-btip-ico { width: 44px; height: 44px; display: grid; place-items: center; font-size: 28px; line-height: 1; }
.f-btip-ico .f-verified { width: 44px; height: 44px; }
.f-btip b { font-size: 14px; }
.f-btip small { color: var(--rc); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* премиум лаунчера — фиолетовая звезда ✦ */
.f-premium { width: 20px; height: 20px; filter: drop-shadow(0 0 5px rgba(167,139,250,.6)); animation: fPrem 3s ease-in-out infinite; }
.f-btip-ico .f-premium { width: 44px; height: 44px; }
@keyframes fPrem { 50% { filter: drop-shadow(0 0 9px rgba(167,139,250,.9)); transform: rotate(8deg) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .f-premium { animation: none; } }

/* шапка форума (поиск, разделы, аккаунт, уведомления) */
.f-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px; margin-bottom: 22px; border-radius: var(--r);
  background: var(--slab2, rgba(255,255,255,.03)); border: 1px solid var(--line); }
.f-search { flex: 1 1 150px; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 12px; height: 40px; border-radius: 10px;
  background: var(--slab3); border: 1px solid var(--line); }
.f-search:focus-within { border-color: var(--acc, #8b5cf6); }
.f-search svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.f-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: inherit; font: inherit; font-size: 14px; }
.f-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.f-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 9px; color: var(--muted); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.f-pill:hover { background: var(--slab3); color: var(--text, #fff); }
.f-pill svg { width: 16px; height: 16px; }
.f-me { display: inline-flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px; border-radius: 10px; background: var(--slab3); border: 1px solid var(--line); color: inherit; text-decoration: none; margin-left: auto; }
.f-me img { width: 32px; height: 32px; border-radius: 8px; image-rendering: pixelated; }
.f-me span { display: flex; flex-direction: column; line-height: 1.15; }
.f-me b { font-size: 13.5px; } .f-me small { font-size: 11.5px; }
.f-icon { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--slab3); border: 1px solid var(--line); color: inherit; cursor: pointer; }
.f-icon:hover { border-color: var(--acc, #8b5cf6); }
.f-icon svg { width: 18px; height: 18px; }
.f-cnt { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #ef4444; color: #fff;
  font: 700 11px/18px var(--f-body, sans-serif); font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--bg, #0b0d0b); }
.f-cnt[hidden] { display: none; }
.f-support svg { width: 15px; height: 15px; }
.f-bar > .btn[data-act=login] { margin-left: auto; }
.f-notif { position: absolute; z-index: 80; width: min(360px, calc(100vw - 16px)); max-height: 440px; overflow: auto; border-radius: 14px;
  background: var(--slab, #121612); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.55); }
.f-notif-h { padding: 12px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: inherit; }
.f-notif-i { display: flex; gap: 10px; padding: 10px 14px; color: inherit; text-decoration: none; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.f-notif-i:last-child { border-bottom: 0; }
.f-notif-i:hover { background: var(--slab3); }
.f-notif-i.new { background: color-mix(in srgb, var(--acc, #8b5cf6) 10%, transparent); }
.f-notif-i > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.f-notif-i img { width: 36px; height: 36px; border-radius: 8px; flex: none; }
/* заголовок главной */
.f-hero { align-items: center; }
.f-hero .f-h1 { font-size: 30px; margin-bottom: 8px; }
.f-uline { display: block; width: 64px; height: 4px; border-radius: 4px; margin-bottom: 12px; background: linear-gradient(90deg, var(--acc, #8b5cf6), transparent); }
.f-hero p { max-width: 620px; }
.f-top-r { display: inline-flex; align-items: center; gap: 12px; }
.f-top-r > a, .f-team-more { font-size: 13px; font-weight: 600; color: var(--acc, #a78bfa); text-decoration: none; }
.f-team-more { margin-left: 10px; }
.f-pick { justify-content: flex-start; gap: 10px; }
.f-pick svg { width: 18px; height: 18px; }
/* событие: низ карточки */
.f-event-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.f-event-btns { display: inline-flex; gap: 8px; }
.f-ev-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 9px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25); color: #fff; font: 600 12.5px var(--f-body, sans-serif); cursor: pointer; }
.f-ev-btn:hover { background: rgba(0,0,0,.4); }
.f-ev-btn.acc { background: #fff; color: #111; border-color: #fff; }
.f-ev-btn svg { width: 14px; height: 14px; }
/* поиск */
.f-snip { display: block; font-size: 13px; margin: 3px 0; overflow: hidden; text-overflow: ellipsis; }
mark { background: color-mix(in srgb, var(--acc, #8b5cf6) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
/* календарь */
.f-cal-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.f-cal-row:last-child { border-bottom: 0; }
.f-cal-row.old { opacity: .55; }
.f-cal-row .f-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.f-cal-date { width: 52px; flex: none; display: flex; flex-direction: column; align-items: center; padding: 6px 0; border-radius: 10px; background: var(--slab3); border: 1px solid var(--line); }
.f-cal-date b { font-size: 20px; line-height: 1; } .f-cal-date small { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.f-cal-row .btn svg { width: 15px; height: 15px; }
/* команда */
.f-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.f-team-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 14px; text-align: center; color: inherit; text-decoration: none; }
.f-team-card:hover { border-color: var(--acc, #8b5cf6); }
.f-team-card b { display: inline-flex; align-items: center; gap: 6px; }
.f-on { color: #4ade80; }
@media (max-width: 720px) {
  .f-pills { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .f-me { margin-left: 0; } .f-me span { display: none; } .f-me { padding: 4px; }
  .f-support { padding: 0 10px; }
  .f-hero .f-h1 { font-size: 24px; }
}
.f-team-card .f-ava.sm { margin-top: 0; width: 72px; height: 72px; }
@media (max-width: 720px) { .f-support { font-size: 0; gap: 0; width: 40px; padding: 0; justify-content: center; } .f-support svg { width: 18px; height: 18px; } }

/* оформление сообщений: заголовки, линия, плашки, нумерация */
.f-text-out .fp-h { font: 700 18px/1.3 var(--f-disp); margin: 14px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.f-text-out h5.fp-h { font-size: 16px; border: 0; } .f-text-out h3.fp-h { font-size: 21px; }
.f-text-out .fp-hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.f-text-out ol { padding-left: 22px; margin: 6px 0; }
.f-text-out ul li::marker, .f-text-out ol li::marker { color: var(--acc, #b5f04a); font-weight: 700; }
.f-text-out li { margin: 4px 0; }
.fp-call { margin: 8px 0; padding: 12px 16px; border-radius: 10px; border-left: 3px solid var(--cc); background: color-mix(in srgb, var(--cc) 14%, transparent); line-height: 1.55; }
.fp-call.warn { --cc: #f59e0b; } .fp-call.info { --cc: #3b9bff; } .fp-call.ok { --cc: #4ade80; }
/* панель редактора */
.f-ed { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 5px; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--slab3); position: relative; }
.f-ed + textarea.f-text, .f-ed ~ .f-ed-prev { border-top-left-radius: 0; border-top-right-radius: 0; }
.f-ed-b { min-width: 32px; height: 30px; padding: 0 8px; border: 0; border-radius: 7px; background: none; color: inherit; font: 600 13.5px var(--f-body, sans-serif); cursor: pointer; }
.f-ed-b:hover:not(:disabled), .f-ed-b.on { background: rgba(255,255,255,.08); }
.f-ed-b.on { color: var(--acc, #b5f04a); }
.f-ed-b:disabled { opacity: .35; cursor: default; }
.f-ed-sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.f-ed-sp { flex: 1; }
.f-ed-prev { padding: 12px 14px; border: 1px solid var(--line); border-radius: 0 0 10px 10px; background: var(--slab2, rgba(0,0,0,.2)); }
.f-ed-emo { position: absolute; z-index: 20; top: 100%; left: 0; margin-top: 4px; display: grid; grid-template-columns: repeat(8, 36px); gap: 2px; padding: 6px; border-radius: 10px;
  background: var(--slab, #121612); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.f-ed-emo button { height: 34px; border: 0; border-radius: 7px; background: none; font-size: 19px; cursor: pointer; }
.f-ed-emo button:hover { background: rgba(255,255,255,.08); }
.f-ed-help { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: center; margin: 10px 0 14px; font-size: 14px; }
.f-ed-help code { white-space: nowrap; }
.f-edw { display: flex; flex-direction: column; min-width: 0; }
.f-edw textarea.f-text { min-height: 200px; margin: 0; }
.auth-ico img.own { image-rendering: auto; object-fit: cover; }

/* плавное появление страниц и списков */
@keyframes aIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.a-in { animation: aIn .38s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--ad, 0ms); }
.f-list > .a-in { animation-duration: .3s; }
/* строки списков чуть подсвечиваются при наведении */
.f-topic, .f-row, .f-cal-row { transition: background-color .15s, transform .15s; }
.f-topic:hover, .f-row:hover { transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) { .a-in { animation: none; } .f-topic:hover, .f-row:hover { transform: none; } }
.profile-skin img.own { image-rendering: auto; object-fit: cover; border-radius: inherit; }

/* аватар в строке темы с точкой «в сети» */
.f-tava { position: relative; flex: none; display: inline-flex; }
.f-tava .f-dot { position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-width: 2px; }

/* друзья */
.f-friends { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.f-friend { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: inherit; text-decoration: none; }
.f-friend:hover { border-color: var(--acc); text-decoration: none; }
.f-friend .f-main { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.f-friend .f-head, .f-frow .f-head { width: 44px; height: 44px; }
.f-frow { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.f-frow:last-child { border-bottom: 0; }
.f-frow .f-main { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.f-frname { color: inherit; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.f-frbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.f-frbtn svg, .f-frbtns svg { width: 15px; height: 15px; }
.f-frbtn.is-friend { color: var(--ok, #4ade80); }
.f-frbtn.is-friend:hover { color: #ef4444; }
.f-frbtn.is-friend:hover span { font-size: 0; }
.f-frbtn.is-friend:hover span::after { content: "Удалить из друзей"; font-size: 13px; }
a.f-icon { color: inherit; text-decoration: none; }
.f-lock-buy { gap: 8px; }
.f-lock-ico { display: inline-flex; width: 20px; height: 20px; }
.f-lock-ico svg, .f-lock-ico img { width: 20px; height: 20px; }
.f-giflock { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px; border: 1px dashed var(--line2, var(--line)); border-radius: 10px; font-size: 13px; color: var(--muted); }
.f-giflock > svg { width: 16px; height: 16px; flex: none; }
.f-giflock > span { flex: 1; min-width: 180px; }
.f-giflock b { color: var(--text); }
.f-giflock .btn { gap: 6px; flex: none; width: auto; justify-content: center; }
