:root {
  --bg: #0e0e12; --bg2: #15151c; --card: #1c1b25; --card2: #25243100; --line: #2a2936;
  --fg: #f2f2f5; --muted: #8e8ea0; --accent: #ff5a36; --accent2: #ff8a3d;
  --good: #3ddc84; --bad: #ff4d6d; --blue: #5b8cff;
  --radius: 18px; --header-h: 60px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 26px; margin: 8px 0 16px; }
h2 { font-size: 20px; }
code { background: #ffffff14; padding: 1px 6px; border-radius: 6px; font-size: 14px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20; height: var(--header-h);
  display: flex; align-items: center; gap: 18px; padding: 0 16px;
  background: #0e0e12e8; backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.logo { font-weight: 800; font-size: 19px; color: var(--fg); white-space: nowrap; }
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { color: var(--muted); padding: 6px 10px; border-radius: 10px; font-weight: 600; }
.main-nav a.active, .main-nav a:hover { color: var(--fg); background: #ffffff0d; text-decoration: none; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.user-menu { position: relative; }
.avatar {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-weight: 800; font-size: 13px;
  margin-right: 6px; flex: none;
}
.avatar.lg { width: 72px; height: 72px; font-size: 32px; margin: 0; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 12px 30px #0008;
}
.dropdown a, .dropdown button {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 10px;
  color: var(--fg); background: none; border: 0; font: inherit; cursor: pointer;
}
.dropdown a:hover, .dropdown button:hover { background: #ffffff10; text-decoration: none; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  font-weight: 600 ; font-size: 15px; line-height: 1.2; font-family: inherit; color: var(--fg); background: #ffffff12; white-space: nowrap;
}
.btn:hover { text-decoration: none; filter: brightness(1.12); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-sm { padding: 7px 12px; font-size: 14px; border-radius: 10px; }
.btn-accent { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-danger { background: #ff4d6d22; color: var(--bad); border-color: #ff4d6d55; }
.btn-good { background: #3ddc8422; color: var(--good); border-color: #3ddc8455; }
.panel { background: var(--card); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.form label { display: block; margin-bottom: 14px; font-weight: 600; font-size: 14px; color: #cfcfd8; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea, textarea.input, input.input, select.input {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg2); color: var(--fg); font-size: 16px; line-height: 1.4; font-family: inherit;
}
.form input:focus, .form select:focus, textarea:focus, input.input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form label.check input { margin-top: 4px; }
.counter { float: right; font-weight: 400; color: var(--muted); }
.auth { max-width: 440px; margin: 20px auto; }
.ok-note { background: #3ddc8418; color: var(--good); padding: 10px 12px; border-radius: 12px; font-size: 14px; }
.switch { margin-top: 18px; text-align: center; }
.demo-box { margin-top: 18px; padding: 14px; border: 1px dashed #ff8a3d88; border-radius: 14px; font-size: 14px; }
.demo-box table { width: 100%; margin-top: 8px; border-collapse: collapse; }
.demo-box td { padding: 4px 4px; }

/* ---------- layout ---------- */
main { max-width: 680px; margin: 0 auto; padding: 16px; min-height: calc(100vh - var(--header-h) - 140px); }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.tabs button {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); font-weight: 600 ; font-size: 14px; font-family: inherit; cursor: pointer; white-space: nowrap;
}
.tabs button.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- vertical swipe feed ---------- */
.main-feed { padding-top: 10px; padding-bottom: 0; }
.feed {
  height: calc(100vh - var(--header-h) - 120px); height: calc(100dvh - var(--header-h) - 120px);
  position: relative; overflow-y: auto; scroll-snap-type: y proximity; overscroll-behavior: contain;
  scrollbar-width: none; border-radius: var(--radius); outline: none;
}
.feed::-webkit-scrollbar { display: none; }
.card {
  position: relative; height: auto; max-height: 100%; scroll-snap-align: start;
  display: flex; flex-direction: column; padding: 24px; margin-bottom: 12px; border-radius: var(--radius);
  background: radial-gradient(120% 80% at 0% 0%, #2a1c3a 0%, var(--card) 55%); cursor: pointer;
  border: 1px solid var(--line); transition: border-color .15s;
}
.card:hover { border-color: #ff5a3666; }
.card .kind { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.card .room-link { color: var(--muted); font-size: 13px; margin-left: 8px; font-weight: 600; }
.card h2 { font-size: clamp(22px, 4.2vw, 30px); line-height: 1.25; margin: 14px 0 16px; }
/* заголовок + описание + ответ — один блок по центру карточки, без дыры посередине */
.card .card-main { min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.card .card-desc { margin: -6px 0 16px; color: #cfcfd8; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card .answer-preview {
  flex: none; background: #00000030; border-radius: 14px; padding: 16px; overflow: hidden; position: relative;
}
.card .answer-preview p { margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta-row { display: flex; gap: 14px; margin-top: 14px; flex: none; color: var(--muted); font-size: 14px; align-items: center; }
.card .open-hint { margin-left: auto; color: var(--fg); font-weight: 600; }
.scheme-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
}
.side-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.side-a { background: #5b8cff26; color: var(--blue); }
.side-b { background: #ff4d6d26; color: var(--bad); }
.empty-card { height: 100%; display: grid; place-items: center; text-align: center; color: var(--muted); }
.hint { text-align: center; color: var(--muted); font-size: 13px; margin: 8px 0 0; }

/* ---------- question page ---------- */
.q-head .kind { color: var(--accent); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.q-head h1 { font-size: 28px; line-height: 1.25; margin: 10px 0; }
.q-head .body { white-space: pre-wrap; color: #d8d8e0; }
.byline { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-top: 12px; flex-wrap: wrap; }
.byline a { color: var(--fg); font-weight: 600; }
.debate-bar { margin: 16px 0 4px; }
.debate-bar .bar { display: flex; height: 38px; border-radius: 12px; overflow: hidden; font-weight: 700; font-size: 14px; }
.debate-bar .bar div { display: flex; align-items: center; padding: 0 12px; min-width: 64px; transition: width .3s; }
.debate-bar .a { background: #5b8cff44; }
.debate-bar .b { background: #ff4d6d44; justify-content: flex-end; }
.debate-bar .btns { display: flex; gap: 8px; margin-top: 10px; }
.debate-bar .btns .btn { flex: 1; }
.debate-bar .btns .btn.mine { outline: 2px solid var(--fg); }
.answers-title { margin: 22px 0 10px; font-size: 18px; }
.answer { background: var(--card); border-radius: var(--radius); padding: 18px; margin-bottom: 12px; border: 1px solid transparent; }
.answer.best { border-color: #ff5a36aa; background: linear-gradient(180deg, #ff5a3614, var(--card) 40%); }
.answer .text { white-space: pre-wrap; margin: 10px 0; word-wrap: break-word; }
.answer .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vote { min-width: 64px; }
.vote.on-up { background: #3ddc8433; color: var(--good); border-color: #3ddc8488; }
.vote.on-down { background: #ff4d6d33; color: var(--bad); border-color: #ff4d6d88; }
.vote.on-fire { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.score { font-weight: 800; min-width: 44px; text-align: center; }
.actions .spacer { flex: 1; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; font-family: inherit; padding: 6px; }
.link-btn:hover { color: var(--fg); }
.author-hint { font-size: 13px; color: var(--muted); background: #ffffff08; padding: 10px 12px; border-radius: 12px; margin-bottom: 12px; }
.answer-form textarea { min-height: 110px; }
.answer-form .row { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.side-pick label { display: inline-flex; gap: 6px; align-items: center; margin-right: 12px; font-weight: 600; }

/* ---------- rooms / profile ---------- */
.room-group h2 { margin: 22px 0 10px; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.room-row { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 14px; padding: 14px 16px; margin-bottom: 8px; }
.room-row a.title { color: var(--fg); font-weight: 700; }
.room-row .count { color: var(--muted); font-size: 13px; }
.room-row .btn { margin-left: auto; }
.room-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.room-head h1 { margin: 0; font-size: 22px; }
.room-head .btn { margin-left: auto; }
.profile-head { display: flex; gap: 18px; align-items: center; }
.profile-head h1 { margin: 0; }
.level { color: var(--accent); font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.stat { background: var(--bg2); border-radius: 14px; padding: 12px; text-align: center; }
.stat b { display: block; font-size: 24px; }
.stat span { color: var(--muted); font-size: 12px; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.badge { background: var(--bg2); border-radius: 14px; padding: 12px; }
.badge .e { font-size: 26px; }
.badge b { display: block; margin-top: 4px; }
.badge span { color: var(--muted); font-size: 12px; }
.topic { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.topic:last-child { border-bottom: 0; }
.topic .st { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: #ffffff12; }
.topic .st.expert { background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.topic .st.connoisseur { background: #5b8cff44; }
.topic .nums { margin-left: auto; color: var(--muted); font-size: 13px; text-align: right; }
.best-item { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--fg); }
.best-item small { color: var(--muted); display: block; }

/* ---------- mod / admin ---------- */
.item { background: var(--card); border-radius: 14px; padding: 16px; margin-bottom: 10px; }
.item .head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.item .quote { border-left: 3px solid var(--line); padding: 6px 12px; margin: 10px 0; color: #d8d8e0; white-space: pre-wrap; }
.item .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #ffffff14; }
.pill.p0 { background: #ff4d6d; color: #fff; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list td, table.list th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.toggle { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.toggle input { width: 20px; height: 20px; accent-color: var(--accent); }
.ban-banner { background: #ff4d6d22; color: #ffc2cd; border-bottom: 1px solid #ff4d6d55; padding: 10px 16px; text-align: center; font-size: 14px; }
.ban-banner a { color: #fff; font-weight: 700; }

/* ---------- toast / modal ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50;
  background: var(--fg); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 600;
  box-shadow: 0 10px 30px #0009; max-width: calc(100vw - 32px);
}
.toast.err { background: var(--bad); color: #fff; }
.modal { position: fixed; inset: 0; z-index: 40; background: #000a; display: grid; place-items: center; padding: 16px; }
.modal .box { background: var(--card); border-radius: var(--radius); padding: 22px; width: min(460px, 100%); max-height: 90vh; overflow: auto; }
.modal .box h2 { margin-top: 0; }
.modal .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.modal img { width: 100%; border-radius: 14px; }

/* ---------- legal / footer ---------- */
.legal { background: var(--card); border-radius: var(--radius); padding: 24px; }
.legal table { border-collapse: collapse; }
.legal td, .legal th { border-bottom: 1px solid var(--line); padding: 6px 12px 6px 0; }
.legal .meta { color: var(--muted); font-size: 14px; }
.site-footer { text-align: center; color: var(--muted); font-size: 13px; padding: 20px 16px 28px; border-top: 1px solid var(--line); }
.site-footer nav a { color: var(--muted); }
.credit a { color: var(--fg); }

@media (max-width: 560px) {
  .top { gap: 10px; }
  .logo { font-size: 16px; }
  main { padding: 12px; }
  .card { padding: 18px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feed { height: calc(100dvh - var(--header-h) - 100px); }
}

/* --- уведомления, поиск, подписки, редактирование --- */
.icon-btn { padding-inline: 8px; position: relative; }
.bell-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: #ff3b5c; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.notif { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin-bottom: 8px;
  background: var(--panel, #16161d); text-decoration: none; color: inherit; }
.notif.unread { outline: 2px solid var(--accent, #b4ff39); }
.notif .e { font-size: 22px; } .notif small { display: block; opacity: .6; font-size: 12px; }
.edited { opacity: .6; font-size: 12px; font-style: italic; }
.follow-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.freeze { font-size: 13px; opacity: .85; margin: 4px 0 14px; }
.edit-box textarea, .edit-box input { width: 100%; }

/* --- файл входа --- */
.or-sep { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; opacity: .6; font-size: 13px; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; border-top: 1px solid currentColor; opacity: .4; }
.file-drop { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; padding: 18px; cursor: pointer;
  border: 2px dashed rgba(255,255,255,.25); border-radius: 14px; }
.file-drop.over, .file-drop:hover { border-color: var(--accent, #b4ff39); }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* --- markdown, картинки, обложки --- */
.md { white-space: normal; word-wrap: break-word; }
.md p { margin: .4em 0; }
.md img { max-width: 100%; height: auto; border-radius: 10px; display: block; margin: 8px 0; }
.md pre { background: rgba(255,255,255,.06); padding: 10px; border-radius: 8px; overflow-x: auto; }
.md code { background: rgba(255,255,255,.08); padding: 1px 5px; border-radius: 4px; font-size: .92em; }
.md pre code { background: none; padding: 0; }
.md blockquote { border-left: 3px solid var(--accent, #b4ff39); margin: 6px 0; padding-left: 10px; opacity: .85; }
.md a { color: var(--accent, #b4ff39); }
.md h3, .md h4 { margin: .6em 0 .3em; }
.answer .text.md, .q-head .body.md { white-space: normal; }
.card-cover { width: 100%; max-height: 38%; object-fit: cover; border-radius: 12px; margin: 8px 0; }
.q-cover { width: 100%; max-height: 360px; object-fit: cover; border-radius: 14px; margin-bottom: 12px; }
.q-rating { float: right; font-weight: 700; font-size: 13px; opacity: .85; }
.q-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.q-vote { display: flex; align-items: center; gap: 6px; }
.q-vote .score { font-weight: 700; }
.q-vote small { opacity: .6; }
.urating { font-size: 11px; font-weight: 700; margin-left: 4px; padding: 1px 6px; border-radius: 8px; background: rgba(255,255,255,.08); }
.urating.tier-admin { background: #ff3b5c; color: #fff; }
.urating.tier-mod { background: #6c5cff; color: #fff; }
.md-toolbar { display: flex; gap: 4px; align-items: center; margin-bottom: 4px; flex-wrap: wrap; }
.md-toolbar button, .md-toolbar .md-img { background: rgba(255,255,255,.07); border: 0; color: inherit; border-radius: 6px; padding: 3px 8px; cursor: pointer; font-size: 13px; }
.md-toolbar .md-hint { font-size: 11px; opacity: .5; margin-left: auto; }
.comments { margin-top: 10px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 6px; }
.comments ul { list-style: none; margin: 0; padding: 0; }
.comment { padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,.06); font-size: 14px; }
.comment .md p { margin: 0; }
.comment .md img { max-height: 180px; width: auto; }
.c-meta { font-size: 12px; opacity: .7; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.comment-form { display: flex; gap: 6px; align-items: flex-end; margin-top: 6px; flex-wrap: wrap; }
.comment-form .md-toolbar { width: 100%; }
.comment-form textarea { flex: 1; resize: none; min-height: 34px; padding: 6px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); background: transparent; color: inherit; font: inherit; font-size: 14px; }
.c-count { font-size: 11px; opacity: .5; }
.cover-field { display: flex; flex-direction: column; gap: 6px; }
.cover-preview img { max-width: 100%; max-height: 220px; border-radius: 12px; display: block; margin-bottom: 6px; }
.footer-main { margin-bottom: 6px; font-weight: 600; }
.footer-debates { color: var(--accent, #b4ff39); }

/* ---------- аватары-картинки и рамки ---------- */
.avatar { position: relative; overflow: visible; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatar.frame-neon { box-shadow: 0 0 0 2px #0ff, 0 0 10px #0ff, 0 0 18px #f0f; }
.avatar.frame-fire { box-shadow: 0 0 0 2px #ff7a00, 0 0 12px #ff3d00; animation: flick 1.6s infinite alternate; }
.avatar.frame-gold { box-shadow: 0 0 0 3px #ffd54a, 0 0 0 5px #a47400; }
.avatar.frame-rainbow::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; z-index: -1;
  background: conic-gradient(#ff004c, #ff9a00, #ffe600, #3ddc84, #00b3ff, #8a4dff, #ff004c); animation: spin 4s linear infinite; }
@keyframes flick { to { box-shadow: 0 0 0 2px #ffb300, 0 0 18px #ff5a00; } }
@keyframes spin { to { transform: rotate(360deg); } }
.status-emoji { font-size: .8em; } .status-emoji.sm { font-size: 13px; }

/* ---------- скин профиля ---------- */
.profile-skin { --pcard: var(--card); --pfg: var(--fg); border-radius: var(--radius); }
.profile-skin .panel { background: var(--pcard); color: var(--pfg); }
.profile-skin.theme-neon { --pcard: #120d24; --accent: #00f0ff; --accent2: #ff2bd6; }
.profile-skin.theme-sunset { --pcard: linear-gradient(160deg, #3a1530, #1e1422); --accent: #ff7a59; --accent2: #ffc05a; }
.profile-skin.theme-ocean { --pcard: #0d1d2e; --accent: #3fb6ff; --accent2: #3ddcc4; }
.profile-skin.theme-forest { --pcard: #102117; --accent: #5fd068; --accent2: #c2e76b; }
.profile-skin.theme-candy { --pcard: #fff0f7; --pfg: #3b2240; --accent: #ff5fae; --accent2: #9b7bff; }
.profile-skin.theme-mono { --pcard: #1a1a1a; --accent: #e8e8e8; --accent2: #9a9a9a; }
.profile-skin.theme-midnight { --pcard: #0b0f2a; --accent: #8a7dff; --accent2: #4d6bff; }
.profile-skin.theme-sakura { --pcard: #2b1822; --accent: #ffb7d5; --accent2: #ff7eb3; }
.profile-skin.theme-retro { --pcard: #1d1033; --accent: #ffde59; --accent2: #ff3f81; }
.profile-skin.theme-retro h1, .profile-skin.theme-retro h2 { text-shadow: 2px 0 #ff3f81, -2px 0 #00e5ff; }
.profile-skin.theme-candy .muted { color: #7b5f80; }
.profile-skin .panel.profile-card { background: var(--pcard); }
.profile-skin.cards-solid .panel { box-shadow: 0 6px 0 rgba(0,0,0,.35); }
.profile-skin.cards-glass .panel { backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.06); }
.profile-skin.cards-outline .panel { background: transparent; border: 2px solid var(--accent); }
.profile-skin.font-rounded { font-family: ui-rounded, "Nunito", "Comic Neue", system-ui, sans-serif; }
.profile-skin.font-mono { font-family: ui-monospace, "JetBrains Mono", Menlo, monospace; }
.profile-skin.font-serif { font-family: Georgia, "PT Serif", serif; }
.profile-card { padding-top: 0; overflow: hidden; }
.profile-banner { height: 150px; margin: 0 -22px 0; background: center/cover no-repeat; }
.profile-banner.empty { height: 70px; background: linear-gradient(135deg, var(--accent), var(--accent2)); opacity: .55; }
.profile-card .profile-head { margin-top: -34px; align-items: flex-start; }
.profile-card .ph-main { padding-top: 42px; min-width: 0; }   /* баннер перекрывает только аватар, не имя */
.profile-card .ph-main h1 { overflow-wrap: anywhere; }
.profile-skin.layout-centered .profile-card .ph-main { padding-top: 6px; }
.profile-card .avatar.lg { border: 4px solid var(--bg); box-sizing: content-box; }
.profile-skin.layout-centered .profile-head { flex-direction: column; align-items: center; text-align: center; }
.profile-skin.layout-centered .profile-card { text-align: center; }
.profile-skin.layout-centered .stats, .profile-skin.layout-centered .interests, .profile-skin.layout-centered .plinks, .profile-skin.layout-centered .showcase { justify-content: center; }
.profile-skin.layout-compact .profile-banner { height: 60px; }
.profile-skin.layout-compact .avatar.lg { width: 48px; height: 48px; font-size: 22px; }
.ph-main { min-width: 0; }
.status-line { margin-top: 4px; font-style: italic; }
.showcase, .interests, .plinks { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.sc-badge { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 700; }
.chip { border: 1px solid var(--accent); border-radius: 999px; padding: 2px 10px; font-size: 13px; }
.bio { margin: 12px 0 0; }
.badge.on-show { outline: 2px solid var(--accent); }
.pinned { display: block; color: inherit; }
.pinned .kind { color: var(--accent); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.hidden-tag { font-size: 12px; font-weight: 400; color: var(--muted); }

/* ---------- страница настроек (st-*) ---------- */
main.main-wide { max-width: 1180px; }
.st-header h1 { margin-bottom: 4px; }
.st-header p { margin: 0 0 18px; }
.st-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.st-col { min-width: 0; }

.st-nav { position: sticky; top: var(--header-h); z-index: 5; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 10px 0; margin-bottom: 6px; background: var(--bg); }
.st-nav::-webkit-scrollbar { display: none; }
.st-nav a { flex: none; padding: 7px 12px; border-radius: 999px; background: var(--card); color: var(--fg); font-size: 14px; font-weight: 600; }
.st-nav a:hover { text-decoration: none; background: #ffffff1a; }

.st-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px;
  scroll-margin-top: calc(var(--header-h) + 60px); }
.st-card h2 { margin: 0 0 16px; font-size: 18px; }
.st-card h3 { margin: 20px 0 10px; font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.st-lead { margin: -6px 0 14px; font-size: 14px; }

.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.st-field { display: block; margin-bottom: 14px; min-width: 0; }
.st-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #cfcfd8; }
.st-form .st-field .input { margin-top: 0; }
.st-form textarea.input { resize: vertical; min-height: 44px; }
.st-form select.input { appearance: none; padding-right: 36px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.st-hint { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); }

/* выбор-карточки (темы, рамки, бейджи) */
.st-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.st-opt { position: relative; display: block; margin: 0; cursor: pointer; }
.st-opt input { position: absolute; opacity: 0; pointer-events: none; }
.st-opt-body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; min-height: 84px;
  padding: 12px 8px; border: 2px solid var(--line); border-radius: 14px; background: var(--bg2); text-align: center; font-size: 13px; font-weight: 600;
  color: var(--fg); transition: border-color .15s, transform .15s; }
.st-opt:hover .st-opt-body { border-color: #ffffff33; }
.st-opt input:checked + .st-opt-body { border-color: var(--accent); background: #ffffff0a; }
.st-opt input:checked + .st-opt-body::after { content: "✓"; position: absolute; top: 6px; right: 9px; color: var(--accent); font-weight: 800; }
.st-opt input:focus-visible + .st-opt-body { outline: 2px solid var(--accent); outline-offset: 2px; }
.st-opt.is-locked { cursor: not-allowed; }
.st-opt.is-locked .st-opt-body { opacity: .45; }
.st-opt small { color: var(--muted); font-weight: 400; }
.st-opt .avatar { margin: 0; width: 34px; height: 34px; font-size: 15px; }
.st-emoji { font-size: 24px; line-height: 1; }
.st-swatch { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #ff5a36, #ff8a3d); box-shadow: inset 0 0 0 2px #ffffff22; }
.sw-neon { background: linear-gradient(135deg, #00f0ff, #ff2bd6); }
.sw-sunset { background: linear-gradient(135deg, #ff7a59, #ffc05a); }
.sw-ocean { background: linear-gradient(135deg, #3fb6ff, #3ddcc4); }
.sw-forest { background: linear-gradient(135deg, #5fd068, #c2e76b); }
.sw-candy { background: linear-gradient(135deg, #ff5fae, #9b7bff); }
.sw-mono { background: linear-gradient(135deg, #e8e8e8, #6a6a6a); }
.sw-midnight { background: linear-gradient(135deg, #8a7dff, #4d6bff); }
.sw-sakura { background: linear-gradient(135deg, #ffb7d5, #ff7eb3); }
.sw-retro { background: linear-gradient(135deg, #ffde59, #ff3f81); }

/* чекбоксы */
.st-check { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 400; color: var(--fg); cursor: pointer; }
.st-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }
.st-toggles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.st-toggle { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); }
.st-accent { display: flex; align-items: center; gap: 12px; min-height: 46px; }
.st-accent input[type=color] { width: 46px; height: 46px; padding: 0; border: 2px solid var(--line); border-radius: 12px; background: none; cursor: pointer; flex: none; }
.st-accent input[type=color]::-webkit-color-swatch-wrapper { padding: 3px; }
.st-accent input[type=color]::-webkit-color-swatch { border: 0; border-radius: 8px; }

/* аватар и обложка */
.st-media { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
.st-media-item { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; min-width: 0; }
.st-av-prev .avatar { margin: 0; }
.st-bn-prev { width: 100%; aspect-ratio: 4 / 1; border-radius: 12px; border: 1px dashed var(--line);
  background: var(--bg2) center / cover no-repeat; }
.st-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.st-file { position: relative; overflow: hidden; }
.st-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ссылки */
.st-links { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.st-links:empty { display: none; }
.st-link { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.st-form .st-link .input { margin: 0; }

/* кнопка сохранения */
.st-save { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 0 18px; background: linear-gradient(to bottom, transparent, var(--bg) 35%); }
.st-dirty { font-size: 13px; }

/* превью */
.st-aside-inner { position: sticky; top: calc(var(--header-h) + 12px); max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto;
  border-radius: var(--radius); scrollbar-width: thin; }
.st-aside-title { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }
.st-preview { font-size: 14px; }
.st-preview .panel { padding: 16px; margin-bottom: 10px; }
.st-preview .profile-banner { margin: 0 -16px; height: 100px; }
.st-preview .profile-banner.empty { height: 56px; }
.st-preview h1 { font-size: 20px; }
.st-preview h2 { font-size: 16px; }
.st-preview .avatar.lg { width: 60px; height: 60px; font-size: 26px; }
.st-preview .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.st-preview .stat { min-width: 0; }
.st-preview .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-preview a { pointer-events: none; }

@media (max-width: 1000px) {
  .st-layout { grid-template-columns: minmax(0, 1fr); }
  .st-aside { order: -1; }
  .st-aside-inner { position: static; max-height: 420px; }
}
@media (max-width: 560px) {
  .st-grid, .st-toggles, .st-media { grid-template-columns: minmax(0, 1fr); }
  .st-link { grid-template-columns: minmax(0, 1fr) auto; }
  .st-link .input:first-child { grid-column: 1 / -1; }
  .st-card { padding: 16px; }
}

/* ---------- FAQ ---------- */
.faq-search { width: 100%; margin: 12px 0 16px; }
.faq-item { background: var(--card); border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; }
.faq-item summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq-item summary::before { content: "＋ "; color: var(--accent); }
.faq-item[open] summary::before { content: "－ "; }
.faq-item .md { margin-top: 8px; }

/* профиль: статы адаптивно, плитки берут цвет из темы */
.profile-skin .stats { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.profile-skin .stat, .profile-skin .badge, .profile-skin .topic { background: rgba(127, 127, 127, .12); color: inherit; }
.profile-skin .stat b { font-size: 20px; overflow-wrap: anywhere; }
.st-preview .stat b { font-size: 16px; }
.profile-skin.theme-candy .stat span, .profile-skin.theme-candy .badge span { color: #7b5f80; }
.profile-skin .ph-main h1 { overflow-wrap: anywhere; }
.card .card-main .card-cover { flex: 0 1 auto; min-height: 80px; max-height: 320px; }

.card .meta-row { margin-top: 18px; }
.empty-card { min-height: 60vh; }

/* ---------- мини-игра «Чайный гриб» ---------- */
.kb-header h1 { margin-bottom: 4px; }
.kb-header p { margin: 0 0 16px; }
.kb-main { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; align-items: start; }
.kb-scene { position: relative; padding-top: 44px; }
.kb-say { position: absolute; top: 0; left: 0; right: 0; background: #fff; color: #222; font-size: 13px; line-height: 1.3; font-weight: 600;
  padding: 8px 12px; border-radius: 14px; text-align: center; box-shadow: 0 4px 14px #0006; z-index: 1; }
.kb-say::after { content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: #fff; }
.kb-say.pop { animation: kb-pop .35s ease; }
@keyframes kb-pop { 0% { transform: scale(.85); opacity: .3; } 100% { transform: none; opacity: 1; } }
.kb-svg { width: 100%; height: auto; display: block; }
.kb-jar { fill: #ffffff0c; stroke: #cfe3f0; stroke-width: 3; }
.kb-glare { stroke: #ffffff40; stroke-width: 5; stroke-linecap: round; fill: none; }
.kb-lid { fill: #c9d2da; stroke: #8b98a3; stroke-width: 2; }
.kb-label { fill: var(--muted); font-size: 10px; font-weight: 700; }
.kb-liquid { transition: y .6s ease, fill .6s ease; }
.kb-disc { fill: #e9d9b8; stroke: #bfa577; stroke-width: 2; }
.kb-disc-hi { fill: #ffffff; opacity: .3; }
.kb-tendrils { stroke: #d8c49c; stroke-width: 2; fill: none; opacity: .8; }
.kb-face path { stroke: #2b2118; stroke-width: 3; stroke-linecap: round; fill: none; }
.kb-blush { fill: #ff8fa3; opacity: .7; }
.kb-float { animation: kb-float 3.2s ease-in-out infinite; }
@keyframes kb-float { 50% { transform: translateY(-3px); } }
.kb-svg .kb-face { animation: kb-blink 5s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes kb-blink { 0%, 94%, 100% { opacity: 1; } 96% { opacity: .2; } }
.kb-bubble { fill: #ffffff88; animation: kb-bubble 4s linear infinite; }
@keyframes kb-bubble { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-120px); opacity: 0; } }
.mood-sticky .kb-disc { fill: #ffd1e3; stroke: #e58db1; }
.mood-dead .kb-disc { fill: #8d8a6a; stroke: #5d5a43; }
.is-dead .kb-svg { filter: grayscale(.6); }

.kb-name { display: flex; align-items: center; gap: 4px; }
.kb-name h2 { margin: 0; font-size: 24px; overflow-wrap: anywhere; }
.kb-stage { color: var(--accent); font-weight: 700; margin: 2px 0 10px; }
.kb-xp small { color: var(--muted); font-size: 12px; }
.kb-xp-bar, .kb-bar { height: 10px; border-radius: 999px; background: var(--bg2); overflow: hidden; }
.kb-xp-bar span, .kb-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .5s ease; }
.kb-xp-bar { margin-bottom: 4px; }
.kb-stats { display: grid; gap: 8px; margin: 16px 0; }
.kb-stat { display: grid; grid-template-columns: 120px minmax(0, 1fr) 32px; align-items: center; gap: 10px; font-size: 14px; }
.kb-stat b { text-align: right; font-variant-numeric: tabular-nums; }
.kb-bar span { background: var(--good); }
.kb-bar.low span { background: var(--bad); }
.kb-bar.over span { background: #ff8fd1; }
.kb-danger { background: #ff4d6d22; color: var(--bad); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-top: 12px; }
.kb-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.kb-act { flex-direction: column; gap: 2px; padding: 10px 6px; white-space: normal; text-align: center; font-size: 13px; min-height: 76px; }
.kb-act .e { font-size: 22px; line-height: 1; }
.kb-act small { font-weight: 400; color: var(--muted); font-size: 11px; }
.kb-daily { width: 100%; white-space: normal; }
.kb-guest { text-align: center; }
.kb-guest .kb-svg { max-width: 220px; margin: 0 auto; }
.kb-top-list { margin: 0; padding-left: 22px; }
.kb-top-list li { margin: 4px 0; }
.kb-top h2 { margin-top: 0; }
.kb-rules summary { cursor: pointer; font-weight: 700; }
.kb-rules ul { margin: 10px 0 0; padding-left: 20px; }
.kb-rules li { margin: 6px 0; }
@media (max-width: 620px) {
  .kb-main { grid-template-columns: minmax(0, 1fr); }
  .kb-scene { max-width: 240px; margin: 0 auto; width: 100%; }
  .kb-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kb-stat { grid-template-columns: 100px minmax(0, 1fr) 30px; }
}

/* голосование в карточке ленты */
.card-vote { display: inline-flex; align-items: center; gap: 2px; background: #ffffff0f; border-radius: 999px; padding: 2px; }
.cv-btn { width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 15px; cursor: pointer; }
.cv-btn:hover:not(:disabled) { background: #ffffff14; color: var(--fg); }
.cv-btn:disabled { opacity: .35; cursor: default; }
.cv-btn.on-up { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.cv-btn.on-down { color: #fff; background: var(--blue); }
.cv-score { min-width: 34px; text-align: center; color: var(--fg); font-variant-numeric: tabular-nums; }
.card-vote.bump .cv-score { animation: kb-pop .3s ease; }
.card .meta-row { flex-wrap: wrap; row-gap: 8px; }

/* меню в шапке на узких экранах: вторая строка с горизонтальной прокруткой */
@media (max-width: 760px) {
  .top { flex-wrap: wrap; height: auto; min-height: var(--header-h); padding-top: 8px; row-gap: 6px; }
  .top-actions { order: 2; }
  .main-nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; margin: 0 -16px; padding-inline: 16px; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { flex: none; font-size: 14px; background: #ffffff0a; }
  .feed { height: calc(100dvh - var(--header-h) - 150px); }
}

/* ---------- «Деревянные» ---------- */
.wood-chip { font-weight: 700; color: #ffcf7a; border-color: #ffcf7a44; }
.wood-chip b { color: var(--fg); font-variant-numeric: tabular-nums; }
.wood-chip.bump { animation: kb-pop .35s ease; }
.wallet-hero { display: flex; gap: 18px; align-items: center; }
.wallet-coin { flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 24px;
  color: #5a3a12; background: radial-gradient(circle at 35% 30%, #ffe2a8, #d9a05b 60%, #9c6a2e); box-shadow: inset 0 -4px 0 #0003, 0 6px 18px #d9a05b44; }
.wallet-balance { font-size: 34px; font-weight: 800; line-height: 1.1; }
.wallet-sub { font-size: 13px; margin-top: 4px; }
.wallet-rules { display: grid; gap: 6px; }
.wallet-rule { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); }
.wallet-history { display: grid; gap: 2px; margin-bottom: 10px; }
.wallet-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
.plus { color: var(--good); font-variant-numeric: tabular-nums; } .minus { color: var(--bad); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .wallet-row, .wallet-rule { grid-template-columns: 76px minmax(0, 1fr); } .wallet-row small, .wallet-rule small { grid-column: 2; } }

/* ---------- гриб: банки, мутации, коллекция ---------- */
.kb-bar-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.kb-jars { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 6px; scrollbar-width: thin; }
.kb-jar-tab { flex: none; width: 112px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border-radius: 14px;
  border: 2px solid var(--line); background: var(--card); color: var(--fg); cursor: pointer; font: inherit; text-align: center; }
.kb-jar-tab:hover { border-color: #ffffff33; }
.kb-jar-tab.active { border-color: var(--accent); }
.kb-jar-tab.dead { opacity: .6; }
.kb-jar-tab.empty, .kb-jar-tab.shop { border-style: dashed; }
.kb-jar-mini { width: 54px; height: 56px; display: block; }
.kb-jar-mini .kb-svg { width: 100%; height: 100%; }
.kb-jar-plus { width: 54px; height: 56px; display: grid; place-items: center; font-size: 26px; color: var(--muted); }
.kb-jar-name { font-size: 13px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-jar-tab small { font-size: 11px; color: var(--muted); }
.kb-svg.small .kb-bubble, .kb-svg.small .kb-acc, .kb-svg.small .kb-label { display: none; }
.kb-muts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.kb-mut { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #8a7dff26; color: #c9c2ff; }
.kb-next { font-size: 12px; margin-bottom: 8px; }
.kb-note { font-size: 13px; margin-top: 10px; }
.kb-sprout { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.kb-sprout .ok { color: var(--good); }
.kb-dead-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.kb-empty { text-align: center; }
.kb-codex-lead { margin-top: -6px; font-size: 13px; }
#kb-codex h2 { margin-top: 0; }
.kb-codex { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.kb-cx { display: flex; flex-direction: column; gap: 3px; padding: 10px; border-radius: 12px; background: var(--bg2); border: 1px dashed var(--line); font-size: 13px; min-height: 108px; }
.kb-cx .e { font-size: 26px; line-height: 1; filter: grayscale(1); opacity: .5; }
.kb-cx small { font-size: 11px; line-height: 1.3; }
.kb-cx.found { border: 1px solid #8a7dff66; background: linear-gradient(160deg, #8a7dff1a, var(--bg2)); }
.kb-cx.found .e { filter: none; opacity: 1; }
/* визуальные эффекты мутаций */
.kb-acc { text-anchor: middle; dominant-baseline: middle; }
.kb-twinkle { animation: kb-twinkle 1.8s ease-in-out infinite; }
@keyframes kb-twinkle { 50% { opacity: .15; } }
.kb-flick { animation: kb-twinkle 0.9s ease-in-out infinite; }
.kb-star { animation: kb-twinkle 2.4s ease-in-out infinite; }
.mut-glow .kb-mush { filter: drop-shadow(0 0 6px #fffbb0) drop-shadow(0 0 12px #ffe45c); }
.mut-phoenix .kb-mush { filter: drop-shadow(0 0 6px #ff7a00); }
.mut-jelly .kb-disc-wrap { opacity: .78; animation: kb-wobble 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes kb-wobble { 50% { transform: scaleX(1.06) scaleY(.94); } }
.mut-rainbow .kb-disc-wrap { animation: kb-hue 4s linear infinite; }
@keyframes kb-hue { to { filter: hue-rotate(360deg); } }
.mut-rainbow .kb-disc { fill: #ff7ab8 !important; }

/* ---------- редкость мутаций, полка, рынок, стена ---------- */
.kb-mut.r-common { background: rgba(255,255,255,.06); }
.kb-mut.r-rare { background: rgba(80,150,255,.16); border-color: rgba(80,150,255,.5); }
.kb-mut.r-epic { background: rgba(170,90,255,.18); border-color: rgba(170,90,255,.6); }
.kb-mut.r-legendary { background: linear-gradient(90deg, rgba(255,200,60,.25), rgba(255,120,60,.25)); border-color: #ffb400; box-shadow: 0 0 10px rgba(255,180,0,.35); }
.kb-serial { font-variant-numeric: tabular-nums; opacity: .8; font-size: .85em; }
.kb-rar-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.kb-cx-stage { margin: 18px 0 8px; font-size: 16px; }
.kb-cx.r-rare { border-color: rgba(80,150,255,.45); }
.kb-cx.r-epic { border-color: rgba(170,90,255,.55); }
.kb-cx.r-legendary { border-color: #ffb400; }
.kb-cx.found { background: color-mix(in srgb, var(--mc, #888) 18%, transparent); }
.kb-orbit { animation: kb-orbit 4s ease-in-out infinite; }
.kb-orbit.legendary { filter: drop-shadow(0 0 4px #ffcc33); }
@keyframes kb-orbit { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.kb-ice { fill: rgba(190,235,255,.35); stroke: #bfeaff; stroke-width: 3; }
.kb-svg.frozen .kb-bubble, .kb-svg.frozen .kb-float { animation: none; }
.kb-jar-tab.frozen { outline: 1px dashed #8fd3ff; }
.kb-frozen-note { background: rgba(140,210,255,.12); }
.kb-freeze { margin-top: 10px; display: inline-block; }
.kb-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.kb-card { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 14px; border: 1px solid var(--line, rgba(255,255,255,.12)); background: rgba(255,255,255,.03); text-align: left; }
.kb-card.r-rare { border-color: rgba(80,150,255,.5); }
.kb-card.r-epic { border-color: rgba(170,90,255,.6); }
.kb-card.r-legendary { border-color: #ffb400; box-shadow: 0 0 14px rgba(255,180,0,.25); }
.kb-card-svg svg { width: 100%; height: 130px; }
.kb-card-muts { display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; }
.kb-card-muts .kb-mut { padding: 1px 6px; }
.kb-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: auto; flex-wrap: wrap; }
.kb-pick { all: unset; cursor: pointer; display: block; border-radius: 14px; }
.kb-pick.on .kb-card { outline: 2px solid var(--accent, #ff5a1f); }
.kb-shelf.pick { max-height: 50vh; overflow: auto; margin: 10px 0; }
.mk-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.mk-filters .chip.active { background: var(--accent, #ff5a1f); color: #fff; }
.mk-filters select { width: auto; }
.trade { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); }
.trade.declined, .trade.cancelled { opacity: .55; }
.trade-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 22px; }
.trade-mid small, .trade-mid .btn { font-size: 13px; }
.wall-form textarea { width: 100%; resize: vertical; }
.wall-form-foot { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 12px; }
.wall-post { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line, rgba(255,255,255,.08)); }
.wp-body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.wp-head { display: flex; gap: 8px; align-items: baseline; }
.wp-del { margin-left: auto; }
@media (max-width: 560px) { .trade { grid-template-columns: 1fr; } .kb-shelf { grid-template-columns: repeat(2, 1fr); } }

/* ---------- хардкор-гриб, цитаты, карточка, задания ---------- */
.kb-moldspot { fill: #7fbf3f; opacity: .85; filter: blur(.6px); }
.kb-mold { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kb-talk { width: 100%; margin-top: 8px; }
.kb-quote { margin: 10px 0; padding: 10px 14px; border-left: 4px solid var(--accent, #ff5a1f); background: rgba(255,255,255,.04); border-radius: 10px; }
.kb-quote.philo { border-left-color: #8a6bff; font-family: Georgia, serif; }
.kb-quote p { margin: 4px 0; }
.kb-quote cite { display: block; font-size: 12px; opacity: .7; margin-top: 4px; }
.kb-card { cursor: pointer; }
.kb-cardm-svg svg { width: 180px; height: 190px; display: block; margin: 0 auto; }
.kb-cardm-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.kb-cardm-t td { padding: 4px 6px; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); }
.kb-owners { padding-left: 20px; font-size: 14px; }
.trade-msg { font-style: italic; max-width: 160px; text-align: center; }
.tasks-list { display: grid; gap: 10px; }
.task-card { display: block; color: inherit; text-decoration: none; }
.task-card h3 { margin: 6px 0; }
.task-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.task-reward { font-size: 18px; color: #3ecf5a; }
.task-mine { margin-top: 6px; font-weight: 600; }
.task-form label { display: block; margin-bottom: 10px; }
.task-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.task-proof { margin: 10px 0; padding: 8px 12px; background: rgba(255,255,255,.05); border-radius: 10px; }
.task-sub { padding: 10px 0; border-top: 1px solid var(--line, rgba(255,255,255,.08)); }
.task-sub.rejected { opacity: .6; }
#sub-form textarea { width: 100%; margin-bottom: 8px; }

/* ---------- эмоции гриба и сворачиваемые мутации ---------- */
.kb-face path { stroke: #2b2118; stroke-width: 3.2; }
.kb-mood-badge circle { fill: rgba(255,255,255,.92); stroke: rgba(0,0,0,.15); stroke-width: 1.5; }
.kb-mood { display: inline-block; margin: 2px 0 6px; padding: 3px 10px; border-radius: 999px; font-weight: 600; font-size: 14px; background: rgba(62,207,90,.15); }
.kb-mood.mood-hungry, .kb-mood.mood-thirsty, .kb-mood.mood-sad, .kb-mood.mood-dirty { background: rgba(255,180,0,.18); }
.kb-mood.mood-sticky, .kb-mood.mood-moldy, .kb-mood.mood-dead { background: rgba(255,70,70,.18); }
.kb-muts-box, .kb-codex-box { margin: 6px 0; }
.kb-muts-box > summary, .kb-codex-box > summary { cursor: pointer; user-select: none; }
.kb-muts-box > summary { font-weight: 600; font-size: 14px; }
.kb-codex-box > summary { display: flex; align-items: baseline; gap: 10px; list-style: none; }
.kb-codex-box > summary::-webkit-details-marker { display: none; }
.kb-codex-box > summary h2 { margin: 0; }
.kb-codex-box > summary h2::before { content: "▸ "; }
.kb-codex-box[open] > summary h2::before { content: "▾ "; }
.kb-cx-stage-box > summary { cursor: pointer; }
.kb-card-more { display: contents; }
.kb-card-more > summary { cursor: pointer; font-size: 12px; opacity: .75; list-style: none; }
.kb-card-more[open] > summary { display: none; }
.kb-mut-slots { font-size: 12px; margin-top: 6px; } .kb-mut-slots .full { color: #e0564b; font-weight: 600; }
/* косметика мутаций */
.kb-sticker, .kb-jar-sticker { dominant-baseline: middle; pointer-events: none; }
.kb-jar-sticker { opacity: .9; filter: drop-shadow(0 1px 0 #0003); }
.kb-drift { animation: kb-drift 5s ease-in-out infinite; transform-box: fill-box; }
@keyframes kb-drift { 0%,100% { transform: translate(0,0) rotate(-6deg); } 50% { transform: translate(6px,-8px) rotate(6deg); } }
/* на маленьких банках (вкладки, карточки) косметика мутаций тоже видна */
.kb-svg.small .kb-drift, .kb-svg.small .kb-sticker, .kb-svg.small .kb-jar-sticker { display: inline; }
.kb-svg.small .kb-orbit { display: inline; }
.kb-cx-prev { display: block; width: 64px; height: 66px; margin: 0 auto 2px; } .kb-cx-prev .kb-svg { width: 100%; height: 100%; }
/* админ: дебаг грибов */
.kbd { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 20px; margin-top: 12px; }
@media (max-width: 800px) { .kbd { grid-template-columns: 1fr; } }
.kbd-left { position: sticky; top: 70px; align-self: start; }
.kbd-prev { max-width: 300px; margin: 0 auto; }
.kbd-prev .kb-svg { width: 100%; height: auto; }
.kbd-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.kbd-row input[type=range] { flex: 1; }
.kbd-row > span { min-width: 96px; }
.kbd-head .input { max-width: 260px; }
.kbd-stage { margin: 8px 0; border: 1px solid #ffffff1a; border-radius: 12px; padding: 6px 10px; }
.kbd-stage > summary { cursor: pointer; font-weight: 700; }
.kbd-muts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px; margin-top: 6px; }
.kbd-mut { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 8px; cursor: pointer; font-size: 13px; border: 1px solid transparent; }
.kbd-mut.on { background: #ffffff12; border-color: #ffffff33; }
.kbd-mut.r-rare { color: #7ec8ff; } .kbd-mut.r-epic { color: #c79bff; } .kbd-mut.r-legendary { color: #ffcf5a; }
.kbd-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; border: 1px solid #0006; }
/* полноэкранный гриб: остаётся только банка */
.kb-scene { position: relative; }
.kb-fs-btn { position: absolute; left: 6px; bottom: 6px; z-index: 3; width: 34px; height: 34px; border-radius: 10px; border: 1px solid #ffffff33;
  background: #0008; color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.kb-fs-btn:hover { background: #000b; }
body.kb-fs-on { overflow: hidden; }
body.kb-fs-on > *:not(.kb-fs) { display: none !important; }
.kb-fs { position: fixed; inset: 0; z-index: 10000; background: radial-gradient(circle at 50% 40%, #2a2f3a, #0b0c10 70%);
  display: grid; place-items: center; cursor: zoom-out; }
.kb-fs-art { width: min(96vw, calc(96vh * 220 / 230)); height: min(96vh, calc(96vw * 230 / 220)); }
.kb-fs-art .kb-svg { width: 100%; height: 100%; }
.kb-fs-art .kb-mood-badge { display: none; }
.kb-fs-hint { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); color: #fff9; font-size: 13px; transition: opacity .6s; }
.kb-fs.hint-off .kb-fs-hint { opacity: 0; }
/* «Медитация гриба» — ритм-тапалка */
.kb-med-btn { width: 100%; margin-top: 10px; font-weight: 700; }
body.kb-med-on { overflow: hidden; }
.kb-med { position: fixed; inset: 0; z-index: 10001; background: radial-gradient(circle at 50% 45%, #253040, #0a0c12 75%);
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  user-select: none; -webkit-user-select: none; touch-action: manipulation; cursor: pointer; padding: 16px; }
.kb-med-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #fff4;
  background: #0006; color: #fff; font-size: 18px; cursor: pointer; }
.kb-med-top { font-size: 16px; }
.kb-med-stage { position: relative; width: min(70vw, 320px); aspect-ratio: 1; display: grid; place-items: center; }
.kb-med-grib { width: 62%; transition: transform .12s ease-out; }
.kb-med-grib .kb-svg { width: 100%; height: auto; }
.kb-med-grib.beat { animation: kb-med-beat .28s ease-out; }
@keyframes kb-med-beat { 0% { transform: scale(1); } 35% { transform: scale(1.09); filter: drop-shadow(0 0 14px #9fe7ff); } 100% { transform: scale(1); } }
.kb-med-target, .kb-med-ring { position: absolute; inset: 6%; border-radius: 50%; pointer-events: none; }
.kb-med-target { border: 4px solid #ffffff55; box-shadow: 0 0 18px #7fd3ff33 inset; }
.kb-med-ring { border: 4px solid #8fe3ff; opacity: 0; animation: kb-med-ring linear forwards; }
@keyframes kb-med-ring { 0% { transform: scale(2.2); opacity: 0; } 15% { opacity: .9; } 100% { transform: scale(1); opacity: 1; } }
.kb-med-judge { min-height: 34px; font-size: 26px; font-weight: 800; }
.kb-med-judge.pop { animation: kb-med-pop .25s ease-out; }
.kb-med-judge.perfect { color: #ffe066; } .kb-med-judge.good { color: #8fe3ff; } .kb-med-judge.miss { color: #ff8080; }
.kb-med-judge.count { color: #fff; font-size: 34px; }
@keyframes kb-med-pop { 0% { transform: scale(1.35); } 100% { transform: scale(1); } }
.kb-med-combo { min-height: 20px; color: #ffd27a; font-weight: 700; }
.kb-med-bar { width: min(80vw, 360px); height: 6px; border-radius: 3px; background: #ffffff1f; overflow: hidden; }
.kb-med-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7fd3ff, #c79bff); }
.kb-med-help { max-width: 360px; text-align: center; font-size: 13px; }
.kb-med-result { text-align: center; background: #0008; border: 1px solid #fff2; border-radius: 16px; padding: 14px 20px; max-width: 420px; cursor: default; }
.kb-med-result h2 { margin: 0 0 6px; }
.kb-med-acc { font-size: 20px; margin: 4px 0; }
.kb-med-mut { color: #ffe066; font-weight: 700; }
/* меню игр гриба */
.kb-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.kb-game-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; border-radius: 14px;
  border: 1px solid #ffffff22; background: #ffffff0a; color: inherit; cursor: pointer; text-align: center; }
.kb-game-card:hover { border-color: var(--accent); background: #ffffff14; }
.kb-game-card .e { font-size: 34px; }
.kb-game-card small { color: var(--muted); font-size: 12px; }
.kb-game-area { width: min(92vw, 520px); flex: 1; max-height: 70vh; position: relative; display: grid; place-items: center; }
.kb-game-hud { margin-left: 8px; font-weight: 600; }
/* 🫖 налей */
.kb-pour { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.kb-pour-jar { position: relative; width: 140px; height: 220px; border: 4px solid #cfe3f0; border-top: none; border-radius: 0 0 26px 26px; overflow: visible; background: #ffffff08; }
.kb-pour-jar.кружка { width: 170px; height: 170px; border-radius: 0 0 40px 40px; }
.kb-pour-jar.пиала { width: 220px; height: 120px; border-radius: 0 0 110px 110px; }
.kb-pour-jar.бутыль { width: 110px; height: 260px; }
.kb-pour-jar.стакан { width: 120px; height: 200px; border-radius: 0 0 10px 10px; }
.kb-pour-tea { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(#d9953c, #8a4f15); border-radius: inherit; }
.kb-pour-mark { position: absolute; left: -14px; right: -14px; border-top: 3px dashed #7fff9a; }
.kb-pour-mark span { position: absolute; right: -52px; top: -10px; font-size: 12px; color: #7fff9a; }
.kb-pour-stream { position: absolute; left: 50%; top: -60px; bottom: 0; width: 8px; transform: translateX(-50%); background: #c77c2a; border-radius: 4px; opacity: .85; }
/* 🧠 память */
.kb-mem { display: grid; grid-template-columns: repeat(2, minmax(110px, 150px)); gap: 14px; }
.kb-mem-pad { aspect-ratio: 1; border-radius: 24px; border: 3px solid #ffffff33; font-size: 46px; background: #ffffff0d; cursor: pointer; transition: transform .1s, box-shadow .1s, background .1s; }
.kb-mem-pad.lit { transform: scale(1.08); background: #ffffff40; box-shadow: 0 0 28px #fff8; }
/* 🍬 дождь и 🪰 мушки */
.kb-rain, .kb-flies { position: relative; width: 100%; height: min(62vh, 520px); overflow: hidden; border-radius: 16px; background: #ffffff08; }
.kb-rain-grib { position: absolute; bottom: 0; left: 50%; width: 120px; transform: translateX(-50%); opacity: .9; pointer-events: none; }
.kb-rain-grib .kb-svg, .kb-flies-jar .kb-svg { width: 100%; height: auto; }
.kb-drop { position: absolute; top: -50px; width: 54px; height: 54px; font-size: 38px; border: none; background: none; cursor: pointer;
  animation: kb-drop linear forwards; touch-action: manipulation; }
@keyframes kb-drop { from { transform: translateY(0); } to { transform: translateY(calc(min(62vh, 520px) + 60px)); } }
.kb-flies-jar { position: absolute; left: 50%; top: 50%; width: 110px; transform: translate(-50%, -50%); pointer-events: none; }
.kb-fly { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; font-size: 32px; border: none;
  background: none; cursor: pointer; animation: kb-fly linear forwards; touch-action: manipulation; }
@keyframes kb-fly { from { transform: translate(var(--fx), var(--fy)); } to { transform: translate(0, 0); } }
.kb-fly.swat { animation-play-state: paused; opacity: 0; transition: opacity .2s; }
.kb-med-snd { position: absolute; top: 12px; right: 60px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #fff4;
  background: #0006; color: #fff; font-size: 18px; cursor: pointer; z-index: 2; }

/* ---- «Налей и не пролей»: помехи */
.kb-pour-mods { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; min-height: 28px; }
.kb-pour-mod { font-size: 12px; padding: 3px 8px; border-radius: 999px; background: #ffffff14; border: 1px solid #ffffff22; }
.kb-pour-stage { position: relative; padding: 70px 70px 10px; }
.kb-pour-jar.shaking { animation: kb-shake 1s ease-in-out infinite; }
@keyframes kb-shake { 0%, 100% { transform: translateX(0) rotate(0); } 20% { transform: translateX(-7px) rotate(-3deg); } 45% { transform: translateX(6px) rotate(2.5deg); } 70% { transform: translateX(-4px) rotate(-1.5deg); } }
.kb-pour-foam { position: absolute; left: 0; right: 0; border-radius: 6px; height: 0; background: repeating-radial-gradient(circle at 30% 60%, #fff8e8 0 5px, #f3e2c0 5px 9px); transition: height .4s ease-out; }
.kb-pour-mark.tiny { border-top-width: 2px; border-color: #ffd36b; }
.kb-pour-mark.tiny span { color: #ffd36b; }
.kb-pour-dark { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; border-radius: 12px; transition: opacity .08s; }
.kb-pour-dark.on { opacity: .97; }
.kb-diary-link { margin-left: 8px; font-size: 14px; text-decoration: none; }

/* ---- черновики */
.draft-status { font-size: 12px; margin-left: 10px; }
.draft-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #ffffff14; }
.draft-main { flex: 1; display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: inherit; min-width: 0; }
.draft-main span { overflow-wrap: anywhere; }

/* ---- дневник гриба */
.kb-diary-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.kb-diary-head h1 { margin: 0 0 4px; font-size: 22px; }
.kb-diary-art { width: 120px; flex: none; }
.kb-diary { position: relative; padding-left: 8px; }
.kb-diary-row { display: flex; gap: 12px; padding: 10px 0; border-left: 2px solid #ffffff1c; padding-left: 14px; margin-left: 10px; position: relative; }
.kb-diary-row .e { position: absolute; left: -15px; top: 8px; width: 28px; height: 28px; display: grid; place-items: center; background: var(--panel, #1b1b22); border-radius: 50%; font-size: 16px; }
.kb-diary-row > div { padding-left: 14px; }
.kb-diary-row p { margin: 0 0 2px; }
.kb-diary-row.died p, .kb-diary-row.rescued p { font-weight: 600; }
.kb-diary-row.mutation .e, .kb-diary-row.stage .e { box-shadow: 0 0 0 2px #7fff9a55; }

/* ---- лендинг тамагочи */
.home-hero { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; padding: 28px; }
.home-art { width: 220px; flex: none; margin: 0 auto; animation: home-bob 3s ease-in-out infinite; }
@keyframes home-bob { 50% { transform: translateY(-8px) rotate(-1.5deg); } }
.home-text { flex: 1; min-width: 260px; }
.home-text h1 { font-size: 34px; margin: 0 0 10px; line-height: 1.1; }
.home-lead { font-size: 17px; opacity: .9; }
.home-cta { gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.home-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 14px 0; }
.home-features .panel { margin: 0; }
.home-features .e { font-size: 30px; }
.home-features h3 { margin: 6px 0 4px; }
.kb-bot-note{color:#ff6b6b;font-weight:600}
.pwa-banner{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:60;display:flex;gap:10px;align-items:center;
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:10px 14px;box-shadow:0 8px 30px #0008;max-width:560px;margin:0 auto}
.pwa-banner span{flex:1;font-size:14px}
@media (display-mode: standalone){ header.top{padding-top:env(safe-area-inset-top)} }
/* 🌳 родословная */
.kb-tree-wrap{overflow-x:auto;padding-bottom:6px}
.kb-tree,.kb-tree ul{list-style:none;margin:0;padding-left:22px;position:relative}
.kb-tree{padding-left:0}
.kb-tree li{position:relative;padding:4px 0 4px 18px}
.kb-tree ul li::before{content:"";position:absolute;left:0;top:0;bottom:0;border-left:2px solid var(--line)}
.kb-tree ul li:last-child::before{bottom:auto;height:24px}
.kb-tree ul li::after{content:"";position:absolute;left:0;top:24px;width:16px;border-top:2px solid var(--line)}
.kb-tree li.on-line::before,.kb-tree li.on-line::after{border-color:var(--accent)}
.kb-tree-node{display:inline-flex;gap:10px;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:6px 12px;color:inherit;text-decoration:none;min-width:200px}
.kb-tree-node:hover{border-color:var(--accent2)}
.kb-tree-node.focus{border-color:var(--accent);box-shadow:0 0 0 2px #ff5a3633}
.kb-tree-node.dead{opacity:.6}
.kb-tree-e{font-size:24px}
.kb-tree-t{display:flex;flex-direction:column;line-height:1.25}
.kb-tree-t small{color:var(--muted);font-size:12px}
.q-off{opacity:.5}
.kb-practice{background:rgba(120,200,255,.12);border-radius:10px;padding:6px 10px}
