:root {
  --bg: #0e0d0a;
  --bg-2: #16150f;
  --bg-3: #1d1c15;
  --bg-4: #27251c;
  --line: #2a281f;
  --line-2: #38352a;
  --text: #f3f0e6;
  --text-2: #bdb8a6;
  --muted: #858070;
  --accent: #ffc917;
  --accent-2: #ffe27a;
  --accent-soft: rgba(255, 201, 23, .13);
  --on-accent: #1a1400;
  --live: #ff2d55;
  --good: #34d399;
  --bad: #ff5470;
  --mod: #60a5fa;
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img, video { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--accent); color: var(--on-accent); }

.ico { display: inline-flex; width: 20px; height: 20px; flex: none; }
.ico svg { width: 100%; height: 100%; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 20px;
  height: 64px; padding: 0 max(20px, calc((100vw - 1260px) / 2));
  background: rgba(14, 13, 10, .84);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; flex: none; width: 220px; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 50%; background: url('/kydrash.png') center/cover;
  box-shadow: 0 6px 22px rgba(255, 190, 40, .35);
}
.logo-text { font: 800 21px/1 var(--font-display); letter-spacing: .04em; }
.search {
  flex: 1; max-width: 640px; display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 14px; border-radius: 999px;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--muted);
  transition: border-color .15s, background .15s;
}
.search:focus-within { border-color: var(--accent); background: var(--bg-2); }
.search input { flex: 1; border: 0; background: none; outline: none; color: var(--text); min-width: 0; }
.search { position: relative; }
.search > .ico { width: 18px; height: 18px; color: var(--muted); }
.search:focus-within > .ico { color: var(--accent); }
#searchSuggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 70; padding: 6px; border-radius: 16px; background: var(--bg-3);
  border: 1px solid var(--line-2); box-shadow: var(--shadow); max-height: 70vh; overflow-y: auto; }
.ss-it { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 11px; color: var(--text); min-width: 0; }
.ss-it:hover, .ss-it.on { background: var(--bg-4); }
.ss-it:last-child { color: var(--muted); }
.ss-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.ss-t b { font-weight: 700; }
.ss-it .meta { flex: none; font-size: 12px; }
.ss-ico { width: 30px; height: 30px; flex: none; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--bg-2);
  color: var(--accent); font-weight: 800; }
.ss-ico .ico { width: 16px; height: 16px; }
/* 7TV эмоуты в тексте */
img.emote { display: inline-block; height: 28px; width: auto; vertical-align: middle; margin: -4px 1px; }
.emote-only img.emote { height: 48px; margin: 2px 2px; }
.post-title img.emote { height: 30px; }
.mb-em { width: 40px; flex: none; display: flex; justify-content: center; }
.mb-em img.emote { margin: 0; }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px;
  background: var(--bg-4); border: 1px solid var(--line-2);
  font-weight: 700; font-size: 14px; white-space: nowrap;
  transition: background .15s, transform .08s, border-color .15s, opacity .15s;
}
.btn:hover { background: #312f24; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--on-accent); font-weight: 800; box-shadow: 0 6px 20px rgba(255, 201, 23, .22); }
.btn.primary:hover { background: #ffd84a; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--bg-3); color: var(--text); }
.btn.danger { color: var(--bad); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: var(--text-2);
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--bg-3); color: var(--text); }
.dot-badge {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg);
}

/* ---------- layout ---------- */
.shell {
  display: grid; grid-template-columns: 220px minmax(0, 1fr) 320px; gap: 28px;
  max-width: 1260px; margin: 0 auto; padding: 24px 20px 80px;
}
.side-left, .side-right { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; scrollbar-width: none; }
main { min-width: 0; outline: none; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 14px; border-radius: 14px;
  color: var(--text-2); font-weight: 600; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--bg-3); color: var(--text); }
.nav a.on { background: var(--bg-3); color: var(--text); }
.nav a.on .ico { color: var(--accent); }
.nav .count { margin-left: auto; font-size: 12px; font-weight: 800; background: var(--accent); color: var(--on-accent); border-radius: 9px; padding: 1px 7px; }
.nav-sep { height: 1px; background: var(--line); margin: 10px 14px; }
.nav-cta { margin: 14px 0 0; }
.side-note { color: var(--muted); font-size: 12px; padding: 16px 14px; line-height: 1.6; }
.side-note a:hover { color: var(--text-2); }

/* ---------- cards ---------- */
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.widget { padding: 18px; margin-bottom: 16px; }
.widget h3 { margin: 0 0 12px; font: 600 13px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.widget .more { display: block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--accent-2); }

.live-card { position: relative; overflow: hidden; }
.live-card .bg { position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0%, rgba(255, 201, 23, .22), transparent 60%); pointer-events: none; }
.live-card.on .bg { background: radial-gradient(120% 90% at 100% 0%, rgba(255, 45, 85, .35), transparent 60%); }
.live-row { position: relative; display: flex; align-items: center; gap: 12px; }
.live-row .who { min-width: 0; }
.live-row .name { font-weight: 800; }
.live-title { position: relative; margin: 12px 0 14px; font-weight: 600; color: var(--text-2); font-size: 14px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 800; background: var(--bg-4); color: var(--text-2); white-space: nowrap;
}
.pill.live { background: var(--live); color: #fff; }
.pill.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--bg-3); border: 1px solid var(--line); font-weight: 700; font-size: 13px; color: var(--text-2);
  transition: border-color .15s, color .15s;
}
.tag:hover { border-color: var(--accent); color: var(--text); }
.mini-list { display: flex; flex-direction: column; gap: 4px; }
.mini {
  display: flex; align-items: center; gap: 12px; padding: 8px; margin: 0 -8px; border-radius: 12px; transition: background .15s;
}
.mini:hover { background: var(--bg-3); }
.mini .thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--bg-4); flex: none; }
.mini .thumb.wide { width: 72px; height: 42px; }
.mini .t { font-weight: 700; font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.text-thumb { display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--accent-2); background: linear-gradient(135deg, var(--bg-4), var(--bg-3)); }

/* ---------- avatars ---------- */
.ava {
  border-radius: 50%; flex: none; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; text-transform: uppercase; background: var(--bg-4); object-fit: cover;
}
.ava-ring { padding: 2px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: inline-flex; flex: none; }
.ava-ring .ava { border: 2px solid var(--bg-2); }
/* роли и значки рядом с ником */
.utags { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; vertical-align: -3px; flex-wrap: wrap; }
.role { --rc: var(--muted); display: inline-flex; align-items: center; gap: 4px; height: 19px; padding: 0 7px 0 5px; border-radius: 6px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1; cursor: help; white-space: nowrap;
  color: var(--rc); background: color-mix(in srgb, var(--rc) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 28%, transparent); }
.role svg { flex: none; }
.role.banned { --rc: var(--bad); padding: 0 7px; cursor: default; }
.bdg { --bc: var(--muted); display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; color: var(--bc); cursor: help;
  border-radius: 5px; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--bc) 35%, transparent)); transition: transform .12s; }
.bdg:hover { transform: scale(1.18); }
.bdg.tick { width: 17px; height: 17px; }
.bdg-more { font-size: 11px; font-weight: 800; color: var(--muted); padding: 0 3px; cursor: pointer; }
.profile h1 .utags { vertical-align: 2px; }
.profile h1 .bdg { width: 22px; height: 22px; }
.profile h1 .bdg svg { width: 20px; height: 20px; }
.profile h1 .role { height: 22px; font-size: 11.5px; }
.user-chip .utags { margin: -2px 0 0; justify-content: center; }
.live-row .who .utags { margin-left: 4px; }
.notif .bdg { vertical-align: -3px; margin: 0 3px 0 1px; }

/* значки с подписями (профиль) */
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bchip { --bc: var(--muted); display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px 0 8px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; color: var(--text); cursor: help;
  background: color-mix(in srgb, var(--bc) 13%, var(--bg-3)); border: 1px solid color-mix(in srgb, var(--bc) 35%, transparent); }
.bchip svg { color: var(--bc); flex: none; }
.bchip.ghost { background: none; border-color: var(--line-2); color: var(--muted); cursor: pointer; padding: 0 11px; }
.bchip.ghost:hover { color: var(--text); border-color: var(--text-2); }

/* окно выдачи значков */
.sheet { width: min(560px, 94vw); max-height: min(86vh, 820px); display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.sheet-head .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sheet-head .who span { font-size: 13px; color: var(--muted); }
.sheet-body { padding: 8px 18px 18px; overflow-y: auto; }
.sheet-body .label { margin: 14px 0 8px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sheet-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--bg-2); }
.bopts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bopts.roles { grid-template-columns: 1fr; }
.bopt { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-3); cursor: pointer; transition: border-color .12s, background .12s; margin: 0; font-weight: 500; }
.bopt:hover { border-color: var(--line-2); }
.bopt input { position: absolute; opacity: 0; pointer-events: none; }
.bopt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.bopt:has(input:focus-visible) { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.bopt::after { content: ''; position: absolute; top: 10px; right: 10px; width: 16px; height: 16px; border-radius: 5px; border: 2px solid var(--line-2); }
.bopts.roles .bopt::after { border-radius: 50%; }
.bopt:has(input:checked)::after { background: var(--accent); border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5L20 7' fill='none' stroke='%231a1400' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 12px; background-position: center; background-repeat: no-repeat; }
.oico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--bc, var(--muted)); background: color-mix(in srgb, var(--bc, var(--muted)) 15%, transparent); }
.oico.big { width: 48px; height: 48px; border-radius: 14px; }
.otext { display: flex; flex-direction: column; min-width: 0; padding-right: 18px; }
.otext b { font-size: 14px; }
.otext small { font-size: 12px; line-height: 1.35; color: var(--muted); }

/* страница значков */
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-bottom: 22px; }
.bcard { display: flex; gap: 12px; padding: 14px; border-left: 3px solid var(--bc, var(--muted)); }
.btext { min-width: 0; flex: 1; }
.btext b { font-size: 15px; }
.btext p { margin: 2px 0 10px; font-size: 13px; color: var(--text-2); line-height: 1.4; }
.holders { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.holders .ava { border: 2px solid var(--bg-2); }
.holders.none { font-size: 12px; color: var(--muted); }
.holders .more-n { font-size: 12px; font-weight: 800; color: var(--muted); margin-left: 4px; }

/* правила */
.rules { display: flex; flex-direction: column; gap: 12px; }
.rule { padding: 18px 20px; scroll-margin-top: 80px; }
.rule h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 800 18px/1.2 var(--font-display); }
.rule h2 .ico { color: var(--accent); }
.rnum { width: 28px; height: 28px; flex: none; border-radius: 9px; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.rule ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.rule li { display: flex; gap: 12px; padding: 8px 10px; border-radius: 10px; line-height: 1.5; color: var(--text-2); }
.rule li:target { background: var(--accent-soft); color: var(--text); }
.rid { flex: none; min-width: 30px; font-weight: 800; font-size: 13px; color: var(--muted); padding-top: 1px; }
.rules-end { display: flex; gap: 16px; align-items: flex-start; margin-top: 12px; padding: 20px;
  background: linear-gradient(135deg, rgba(255, 201, 23, .10), rgba(145, 70, 255, .08)), var(--bg-2); border-color: rgba(255, 201, 23, .22); }
.re-ico { flex: none; width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--on-accent); }
.re-text { flex: 1; min-width: 0; }
.re-text b { font: 800 17px/1.3 var(--font-display); }
.re-text p { margin: 4px 0 12px; color: var(--text-2); font-size: 14px; }
.re-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.re-date { flex: none; text-align: right; font-size: 12px; color: var(--muted); line-height: 1.4; }
.re-date b { color: var(--text-2); font-weight: 700; }

/* конец ленты */
.feed-end { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; margin: 8px 0 4px; padding: 30px 18px 26px;
  border-radius: var(--radius); border: 1px dashed var(--line-2); background: radial-gradient(80% 120% at 50% 0%, rgba(255, 201, 23, .08), transparent 70%); }
.fe-mark { width: 52px; height: 52px; border-radius: 50%; background: url('/kydrash.png') center/cover; box-shadow: 0 8px 26px rgba(255, 190, 40, .3); margin-bottom: 8px; }
.feed-end b { font: 800 17px/1.3 var(--font-display); }
.feed-end p { margin: 2px 0 12px; color: var(--muted); font-size: 14px; max-width: 420px; }
.fe-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* подвал сайта */
.main { min-width: 0; }
.site-foot { margin-top: 28px; padding: 22px 4px 8px; border-top: 1px solid var(--line); }
.sf-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.sf-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sf-brand .logo-mark { flex: none; width: 40px; height: 40px; }
.sf-brand b { display: block; font: 800 16px/1.2 var(--font-display); }
.sf-brand small { display: block; color: var(--muted); font-size: 12.5px; }
.sf-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.sf-links a { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; background: var(--bg-2);
  border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--text-2); transition: border-color .15s, color .15s; }
.sf-links a:hover { color: var(--text); border-color: var(--line-2); }
.sf-links .ico { width: 15px; height: 15px; color: var(--muted); }
.sf-bottom { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.live-alert { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px;
  background: linear-gradient(135deg, rgba(255, 45, 85, .16), rgba(145, 70, 255, .14)), var(--bg-2); border-color: rgba(255, 45, 85, .35); }
.live-alert b { font-size: 15px; line-height: 1.3; }
.la-go { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; color: #c9b5ff; }
.side-foot { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 4px 6px 18px; font-size: 12px; color: var(--muted); }
.side-foot a:hover { color: var(--text-2); }
.side-right { padding-bottom: 8px; }
.side-right.more-below { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent); }

/* таймер до открытия */
.cd-tiles { display: flex; gap: 10px; justify-content: center; }
.cd-tile { min-width: 74px; padding: 12px 6px 10px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line-2); text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.cd-tile b { display: block; font: 800 34px/1 var(--font-display); color: var(--accent); font-variant-numeric: tabular-nums; }
.cd-tile span { display: block; margin-top: 6px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cd-hero { max-width: 560px; margin: 12px auto 18px; padding: 26px 20px 22px; text-align: center; border-radius: var(--radius);
  background: radial-gradient(100% 120% at 50% 0%, rgba(255, 201, 23, .16), transparent 65%), var(--bg-2); border: 1px solid rgba(255, 201, 23, .25); }
.cd-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; font: 800 18px/1.25 var(--font-display); }
.cd-kicker .ico { color: var(--accent); }
.cd-when { margin-top: 14px; font-weight: 700; color: var(--text-2); }
.cd-text { margin: 6px auto 0; max-width: 420px; color: var(--muted); font-size: 14px; }
.cd-done { padding: 18px 8px; font: 800 20px/1.3 var(--font-display); color: var(--accent); }
.cd-bar { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-bottom: 14px;
  background: linear-gradient(90deg, rgba(255, 201, 23, .12), transparent 70%), var(--bg-2); border-color: rgba(255, 201, 23, .25); }
.cd-bar.done { justify-content: center; }
.cd-bar .cd-done { padding: 4px; font-size: 16px; }
.cd-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--on-accent); }
.cd-bar-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cd-bar-t b { font-weight: 800; }
.cd-bar-t span { font-size: 12.5px; color: var(--muted); }
.cd-tiles.sm { gap: 6px; }
.cd-tiles.sm .cd-tile { min-width: 46px; padding: 6px 4px 5px; border-radius: 10px; }
.cd-tiles.sm .cd-tile b { font-size: 18px; }
.cd-tiles.sm .cd-tile span { margin-top: 3px; font-size: 9px; letter-spacing: 0; }
.cd-preview .cd-hero { margin: 0 0 6px; }

/* полноэкранная заставка с таймером (гости, пока сайт закрыт) */
body.launch .topbar, body.launch .site-foot { display: none !important; }
body.launch.closed .shell { max-width: none; padding: 0; display: block; }
.launch-page { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 16px 64px; overflow: hidden; text-align: center;
  background: radial-gradient(60% 50% at 50% 0%, rgba(255, 201, 23, .16), transparent 70%), radial-gradient(50% 40% at 85% 100%, rgba(145, 70, 255, .14), transparent 70%), var(--bg); }
.lp-glow { position: absolute; width: 640px; height: 640px; left: 50%; top: 50%; transform: translate(-50%, -58%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 201, 23, .10), transparent 62%); animation: lpPulse 5s ease-in-out infinite; pointer-events: none; }
@keyframes lpPulse { 50% { transform: translate(-50%, -58%) scale(1.08); opacity: .7; } }
.lp-inner { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 760px; }
.lp-logo { width: 112px; height: 112px; border-radius: 50%; background: url('/kydrash.png') center/cover;
  box-shadow: 0 0 0 6px rgba(255, 201, 23, .14), 0 18px 60px rgba(255, 190, 40, .35); animation: lpFloat 4s ease-in-out infinite; }
@keyframes lpFloat { 50% { transform: translateY(-6px); } }
.lp-name { margin-top: 20px; font: 800 clamp(40px, 9vw, 76px)/1 var(--font-display); letter-spacing: .02em;
  background: linear-gradient(180deg, #fff3b8, var(--accent) 60%, #e0a200); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-tag { margin-top: 10px; color: var(--text-2); font-size: 16px; }
.launch-cd { background: none; border: 0; padding: 0; margin: 34px 0 30px; max-width: none; width: 100%; }
.launch-cd .cd-kicker { font-size: clamp(16px, 2.6vw, 21px); margin-bottom: 20px; }
.launch-cd .cd-tiles { gap: clamp(8px, 2vw, 16px); }
.launch-cd .cd-tile { min-width: clamp(70px, 17vw, 136px); padding: clamp(14px, 2.4vw, 22px) 8px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01)), var(--bg-2); border-color: rgba(255, 201, 23, .22);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06); }
.launch-cd .cd-tile b { font-size: clamp(36px, 8vw, 72px); text-shadow: 0 0 30px rgba(255, 201, 23, .35); }
.launch-cd .cd-tile span { font-size: clamp(10px, 1.6vw, 13px); margin-top: 10px; }
.launch-cd .cd-when { margin-top: 22px; font-size: 16px; }
.launch-cd .cd-text { font-size: 15px; color: var(--text-2); }
.launch-cd.done .cd-done { font-size: clamp(24px, 4vw, 34px); padding: 30px 0; }
.lp-soon { margin: 34px 0 30px; display: flex; flex-direction: column; gap: 8px; }
.lp-soon b { font: 800 clamp(26px, 5vw, 40px)/1.15 var(--font-display); }
.lp-soon span { color: var(--text-2); max-width: 440px; }
.lp-foot { position: absolute; bottom: 18px; left: 0; right: 0; font-size: 12px; color: var(--muted); }
@media (max-width: 560px) {
  .launch-cd .cd-tile { min-width: 0; flex: 1; border-radius: 16px; }
}

/* «Вышло обновление — нажмите F5»: перекрывает весь сайт */
body.outdated { overflow: hidden; }
#updateGate { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: radial-gradient(60% 50% at 50% 40%, rgba(255, 201, 23, .14), transparent 70%), rgba(8, 7, 5, .92);
  backdrop-filter: blur(10px) saturate(1.2); animation: fade .2s; }
.ug-card { width: min(460px, 100%); padding: 30px 26px 26px; text-align: center; border-radius: 24px; background: var(--bg-2);
  border: 1px solid rgba(255, 201, 23, .3); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: ugPop .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes ugPop { from { transform: scale(.9); opacity: 0; } }
.ug-emote img { display: block; width: 232px; max-width: 100%; height: auto; margin: 0 auto 18px; image-rendering: auto; }
.ug-card h2 { margin: 0 0 8px; font: 800 clamp(21px, 6vw, 26px)/1.2 var(--font-display); }
.ug-card p { margin: 0 0 22px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.ug-card kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 26px; padding: 0 7px; margin: 0 2px; border-radius: 7px;
  background: var(--bg-4); border: 1px solid var(--line-2); border-bottom-width: 3px; font: 800 13px/1 var(--font); color: var(--accent); vertical-align: 1px; }
.ug-card .btn { width: 100%; justify-content: center; }
.ug-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(26, 20, 0, .25); border-top-color: var(--on-accent); animation: vpSpin .8s linear infinite; flex: none; }

/* админка: статистика */
:root { --chart: #bd8700; --chart-hi: #ffc917; --grid: #2a281f; }
.st-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.st { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.st-l { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.st-v { font: 800 26px/1.15 var(--font); color: var(--text); }
.st-s { font-size: 12px; color: var(--muted); line-height: 1.35; }
.mc-grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.mc { padding: 14px 16px 12px; min-width: 0; }
.mc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.mc-head b { font-size: 14px; }
.mc-total { font-weight: 800; font-size: 15px; white-space: nowrap; }
.mc-total small { font-weight: 600; font-size: 11.5px; color: var(--muted); }
.mc-plot { position: relative; height: 120px; padding-left: 28px; }
.mc-grid { position: absolute; inset: 0; pointer-events: none; }
.mc-grid span { position: absolute; left: 28px; right: 0; border-top: 1px solid var(--grid); }
.mc-grid span:nth-child(1) { top: 0; }
.mc-grid span:nth-child(2) { top: 50%; }
.mc-grid span:nth-child(3) { top: 100%; border-top: 0; }
.mc-grid span::before { content: attr(data-v); position: absolute; right: 100%; top: 0; transform: translateY(-50%); padding-right: 6px;
  font-size: 10.5px; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mc-bars { position: relative; height: 100%; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--line-2); }
.mc-col { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: default; outline: none; border-radius: 4px; }
.mc-col:hover, .mc-col:focus-visible { background: rgba(255, 255, 255, .04); }
.mc-col:focus-visible { box-shadow: inset 0 0 0 2px var(--accent-2); }
.mc-bar { display: block; width: min(24px, 100%); background: var(--chart); border-radius: 4px 4px 0 0; transition: background .12s; }
.mc-col:hover .mc-bar, .mc-col:focus-visible .mc-bar { background: var(--chart-hi); }
.mc-x { display: flex; justify-content: space-between; padding: 6px 0 0 28px; font-size: 11px; color: var(--muted); }
#chartTip { position: fixed; z-index: 90; padding: 6px 10px; border-radius: 8px; background: var(--bg-4); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  font-size: 12.5px; font-weight: 700; color: var(--text); pointer-events: none; white-space: nowrap; }
.st-table { padding: 0; margin-bottom: 12px; }
.st-table summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; cursor: pointer; font-weight: 700; font-size: 14px; list-style: none; }
.st-table summary::-webkit-details-marker { display: none; }
.st-table summary .ico { width: 17px; height: 17px; color: var(--muted); }
.tbl-wrap { overflow-x: auto; padding: 0 8px 10px; }
.st-table table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.st-table th, .st-table td { padding: 7px 8px; text-align: right; border-top: 1px solid var(--line); white-space: nowrap; }
.st-table th { color: var(--muted); font-weight: 700; font-size: 12px; border-top: 0; }
.st-table th:first-child, .st-table td:first-child { text-align: left; }
.st-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.st-list { padding: 14px 16px; min-width: 0; }
.st-list h3 { margin: 0 0 10px; font-size: 14px; display: flex; gap: 8px; align-items: baseline; }
.st-u { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 10px; min-width: 0; }
.st-u:hover { background: var(--bg-3); }
.st-u .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 13.5px; }
.st-u .meta { flex: none; font-size: 12px; }
.st-u .rk { flex: none; min-width: 22px; font-weight: 800; font-size: 12.5px; color: var(--muted); }
.st-u .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.st-u .txt .nm { flex: none; }
.st-u .txt .meta { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-list .tag .meta { margin-left: 4px; font-weight: 600; }
.st-server { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 12px 16px; font-size: 13px; color: var(--muted); }
.st-server span { display: inline-flex; align-items: center; gap: 6px; }
.st-server b { color: var(--text-2); }
.st-server .ico { width: 16px; height: 16px; }
.st-server .btn { margin-left: auto; }
@media (max-width: 900px) { .st-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mc-grid4, .st-cols { grid-template-columns: 1fr; } }

.bopt.locked { opacity: .6; cursor: not-allowed; }
.tw-about { margin: -6px 0 14px; line-height: 1.55; }
.tw-about .bdg { vertical-align: -4px; }
.tw-status { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg-3); border: 1px solid var(--line); margin-bottom: 14px; }
.tw-status b { display: block; }
.tw-status span:not(.as-dot) { font-size: 13px; color: var(--muted); }
.tw-status.ok .as-dot { background: var(--good); box-shadow: 0 0 0 4px rgba(52, 211, 153, .15); }
.tw-status .bad { color: var(--bad); }

/* свой видеоплеер */
.vp { position: relative; background: #000; overflow: hidden; outline: none; container-type: inline-size; user-select: none; -webkit-user-select: none; }
.vp video { display: block; width: 100%; max-height: 640px; background: #000; cursor: pointer; }
.vp:fullscreen, .vp:-webkit-full-screen { display: flex; align-items: center; justify-content: center; }
.vp:fullscreen video { max-height: 100vh; height: 100%; }
.vp:focus-visible { box-shadow: inset 0 0 0 2px var(--accent-2); }
.vp-big { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 201, 23, .92); color: var(--on-accent); box-shadow: 0 10px 40px rgba(0, 0, 0, .5); transition: transform .15s, opacity .2s; }
.vp-big:hover { transform: scale(1.07); }
.vp-big .ico { width: 30px; height: 30px; margin-left: 3px; }
.vp.ended .vp-big .ico { margin-left: 0; }
.vp:not(.paused) .vp-big { opacity: 0; pointer-events: none; transform: scale(.85); }
.vp-spin { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2);
  border-top-color: var(--accent); animation: vpSpin .8s linear infinite; opacity: 0; pointer-events: none; transition: opacity .2s; }
.vp.loading:not(.paused) .vp-spin { opacity: 1; }
@keyframes vpSpin { to { transform: rotate(360deg); } }
.vp-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .78));
  opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.vp.paused .vp-bar, .vp.show .vp-bar, .vp:focus-within .vp-bar { opacity: 1; transform: none; }
.vp:not(.paused):not(.show) video { cursor: none; }
.vp-seek { position: relative; height: 16px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.vp-seek::before { content: ''; position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .22); transition: height .12s; }
.vp-buf, .vp-fill { position: absolute; left: 0; height: 4px; border-radius: 2px; transition: height .12s; }
.vp-buf { background: rgba(255, 255, 255, .38); }
.vp-fill { background: var(--accent); }
.vp-seek:hover::before, .vp-seek:hover .vp-buf, .vp-seek:hover .vp-fill, .vp.scrubbing .vp-seek::before, .vp.scrubbing .vp-buf, .vp.scrubbing .vp-fill { height: 6px; }
.vp-knob { position: absolute; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(255, 201, 23, .25);
  transform: scale(0); transition: transform .12s; }
.vp-seek:hover .vp-knob, .vp.scrubbing .vp-knob, .vp-seek:focus-visible .vp-knob { transform: scale(1); }
.vp-seek:focus-visible { outline: none; }
.vp-tip { position: absolute; bottom: 20px; transform: translateX(-50%); padding: 3px 7px; border-radius: 6px; background: rgba(0, 0, 0, .85); color: #fff;
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; opacity: 0; pointer-events: none; transition: opacity .12s; white-space: nowrap; }
.vp-seek:hover .vp-tip { opacity: 1; }
.vp-row { display: flex; align-items: center; gap: 4px; margin-top: 4px; color: #fff; }
.vp-btn { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: none; transition: background .12s, color .12s; }
.vp-btn:hover { background: rgba(255, 255, 255, .12); color: var(--accent); }
.vp-btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 0; }
.vp-btn .ico { width: 21px; height: 21px; }
.vp-rate { width: auto; min-width: 40px; padding: 0 8px; font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.vp-vol { display: flex; align-items: center; }
.vp-volr { --v: 100%; width: 0; opacity: 0; transition: width .18s, opacity .18s; height: 4px; margin: 0; cursor: pointer; appearance: none; -webkit-appearance: none; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) var(--v), rgba(255, 255, 255, .3) var(--v)); }
.vp-vol:hover .vp-volr, .vp-volr:focus-visible { width: 72px; opacity: 1; margin: 0 8px 0 2px; }
.vp-volr::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.vp-volr::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.vp-time { margin-left: 6px; font-size: 13px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .75); white-space: nowrap; }
.vp-time b { color: #fff; font-weight: 700; }
.vp-sp { flex: 1; }
@container (max-width: 340px) {
  .vp-rate, .vp-pipb, .vp-vol .vp-volr { display: none; }
  .vp-big { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
  .vp-time { font-size: 12px; }
}
@container (max-width: 220px) { .vp-time, .vp-vol { display: none; } .vp-bar { padding: 18px 6px 4px; } }
.media .vp { width: 100%; }
.album .cell .vp, .album .cell .vp video { height: 100%; }
.album .cell .vp video { object-fit: cover; max-height: none; }
.st-media .vp { width: 100%; height: 100%; display: flex; align-items: center; }
.st-media .vp video { max-height: 100%; height: 100%; object-fit: contain; }

/* отметки людей */
#mentionBox { position: fixed; z-index: 95; max-height: 300px; overflow-y: auto; padding: 4px; border-radius: 14px; background: var(--bg-3);
  border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.mb-it { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 10px; cursor: pointer; min-width: 0; }
.mb-it.on, .mb-it:hover { background: var(--bg-4); }
.mb-n { flex: 1; min-width: 0; font-weight: 700; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-it .meta { flex: none; font-size: 12px; }
.people-input { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 46px; padding: 6px 10px; border-radius: 12px;
  background: var(--bg-3); border: 1px solid var(--line-2); cursor: text; }
.people-input:focus-within { border-color: var(--accent); }
.pchips { display: contents; }
.pchip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 4px 0 4px; border-radius: 999px; background: var(--bg-4); border: 1px solid var(--line-2); font-size: 13px; font-weight: 700; }
.pchip button { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.pchip button:hover { background: var(--bg-2); color: var(--text); }
.pchip button .ico { width: 13px; height: 13px; }
.people-input .pi { flex: 1; min-width: 160px; height: 32px; border: 0; background: none; outline: none; font-size: 14px; }
.post-people { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.post-people > .ico { width: 16px; height: 16px; }
.pp-l { margin-right: 2px; }
.pp { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 3px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line);
  font-weight: 700; color: var(--text-2); transition: border-color .15s, color .15s; }
.pp:hover { border-color: var(--line-2); color: var(--text); }

/* всплывающие уведомления слева */
#notifPops { position: fixed; left: 20px; bottom: 20px; z-index: 85; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 24px)); pointer-events: none; }
.npop { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 34px 14px 12px; border-radius: 16px; overflow: hidden; pointer-events: auto;
  background: rgba(29, 28, 21, .97); border: 1px solid var(--line-2); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); color: var(--text);
  animation: npIn .35s cubic-bezier(.2, 1.3, .4, 1); transition: opacity .25s, transform .25s; }
.npop.out { opacity: 0; transform: translateX(-24px); }
@keyframes npIn { from { opacity: 0; transform: translateX(-40px) scale(.96); } }
.npop .ntext { font-size: 13.5px; line-height: 1.4; min-width: 0; }
.npop .ntext .quote { -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.npop .when { font-size: 11.5px; color: var(--accent); margin-top: 3px; font-weight: 700; }
.npop-x { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.npop-x:hover { background: var(--bg-4); color: var(--text); }
.npop-x .ico { width: 14px; height: 14px; }
.npop-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: left; }
@media (max-width: 920px) { #notifPops { left: 12px; right: 12px; bottom: auto; top: 70px; width: auto; } }
/* настройки уведомлений */
.np-set { padding: 14px 16px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
.np-set .form-h { margin-bottom: 8px; }
.np-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; cursor: pointer; margin: 0; font-weight: 500; }
.np-row + .np-row { border-top: 1px solid var(--line); }
.np-row > span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.np-row b { font-size: 14px; }
.np-row small { font-size: 12px; color: var(--muted); }
.np-sw { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--bg-4); border: 1px solid var(--line-2); position: relative; cursor: pointer; flex: none; transition: background .2s; }
.np-sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-2); transition: transform .2s, background .2s; }
.np-sw:checked { background: var(--accent); border-color: var(--accent); }
.np-sw:checked::after { transform: translateX(18px); background: var(--on-accent); }
.np-sw:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.np-vol { cursor: default; }
.np-vol.off { opacity: .45; }
.np-vol input[type="range"] { --v: 60%; width: 160px; height: 5px; appearance: none; -webkit-appearance: none; border-radius: 3px; cursor: pointer;
  background: linear-gradient(90deg, var(--accent) var(--v), var(--bg-4) var(--v)); }
.np-vol input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; }
.np-vol input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; }
.np-set.compact { flex-direction: row; flex-wrap: wrap; gap: 6px 20px; padding: 10px 14px; }
.np-set.compact .np-row { border: 0; padding: 4px 0; flex: 1 1 220px; }
.np-set.compact small { display: none; }
@media (max-width: 560px) { .np-vol { flex-wrap: wrap; } .np-vol input[type="range"] { flex: 1 1 100%; order: 3; } }

/* Pixel Battle на весь экран */
body.pbfull { overflow: hidden; }
body.pbfull .topbar, body.pbfull .side-left, body.pbfull .side-right, body.pbfull .tabbar, body.pbfull .site-foot { display: none !important; }
body.pbfull .shell { display: block; max-width: none; padding: 0; }
.pbx { position: fixed; inset: 0; z-index: 40; background: #0b0a08; }
.pbx .pb-stage { position: absolute; inset: 0; height: auto; border: 0; border-radius: 0; }
.pbx-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: linear-gradient(rgba(11, 10, 8, .92), rgba(11, 10, 8, 0)); pointer-events: none; }
.pbx-top > * { pointer-events: auto; }
.pbx-back { background: rgba(30, 28, 22, .9); }
.pbx-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pbx-title b { font: 800 17px/1.2 var(--font-display); }
.pbx-title span { font-size: 12px; color: var(--muted); }
/* «смотрят» — заметная живая плашка */
.pbx-live { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 14px; border-radius: 999px; flex: none;
  background: rgba(255, 45, 85, .16); border: 1px solid rgba(255, 45, 85, .5); box-shadow: 0 8px 30px rgba(255, 45, 85, .18); backdrop-filter: blur(8px); }
.pbx-live b { font: 800 22px/1 var(--font); color: #fff; font-variant-numeric: tabular-nums; }
.pbx-live span:not(.pbx-dot) { font-size: 13px; font-weight: 800; color: #ffb3c2; text-transform: uppercase; letter-spacing: .04em; }
.pbx-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(255, 45, 85, .7); animation: pbxDot 1.6s infinite; flex: none; }
@keyframes pbxDot { 0% { box-shadow: 0 0 0 0 rgba(255, 45, 85, .7); } 70% { box-shadow: 0 0 0 10px rgba(255, 45, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 45, 85, 0); } }
.pbx-live.bump b { animation: pbxBump .45s ease; }
@keyframes pbxBump { 40% { transform: scale(1.3); color: var(--accent); } }
.pbx-tools { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(20, 19, 15, .85); border: 1px solid var(--line); }
.pbx-admin.on { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.pbx-bottom { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(980px, calc(100vw - 24px)); display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 20px; background: rgba(22, 21, 15, .94); border: 1px solid var(--line-2); box-shadow: 0 20px 60px rgba(0, 0, 0, .55); backdrop-filter: blur(10px); }
.pbx-bottom .pb-pal { flex: 1 1 auto; }
.pbx-act { display: flex; align-items: center; gap: 12px; flex: none; min-width: 0; }
/* координаты сверху, «кто нарисовал» под ними — так кнопка «Поставить» никогда не сжимается */
.pbx-xy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; width: 150px; min-width: 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pbx-coord { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.pbx-xy b { color: var(--text); font-weight: 800; }
.pbx-hint { line-height: 1.3; }
.pbx-who { display: flex; align-items: center; min-width: 0; max-width: 100%; }
.pbx-who .meta { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbx-author { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px 0 3px; border-radius: 999px; background: var(--bg-3);
  border: 1px solid var(--line-2); color: var(--text); font-weight: 700; font-size: 12.5px; max-width: 100%; min-width: 0; }
.pbx-author span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbx-author:hover { border-color: var(--accent); }
.pbx-sw { width: 16px; height: 16px; border-radius: 5px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.pbx-place { --c: var(--accent); position: relative; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 6px; border-radius: 999px;
  background: var(--bg-4); color: var(--text-2); font-weight: 800; font-size: 15px; min-width: 200px; transition: background .2s, color .2s, transform .1s; }
.pbx-ring { width: 40px; height: 40px; flex: none; transform: rotate(-90deg); }
.pbx-lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbx-ring circle { fill: none; stroke-width: 4; }
.pbx-ring circle:first-child { stroke: rgba(255, 255, 255, .1); }
.pbx-ring-fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .2s linear; }
.pbx-num { position: absolute; left: 6px; width: 40px; text-align: center; font: 800 15px/1 var(--font); color: var(--accent); font-variant-numeric: tabular-nums; }
.pbx-place.ready { background: var(--accent); color: var(--on-accent); cursor: pointer; animation: pbReady 1.4s ease-in-out infinite; }
.pbx-place.ready .pbx-ring circle:first-child { stroke: rgba(26, 20, 0, .15); }
.pbx-place.ready .pbx-ring-fg { stroke: var(--c); }
.pbx-place.ready:active { transform: scale(.97); }
.pbx-place.wait .pbx-lbl { font-weight: 700; font-size: 13px; color: var(--muted); }
.pbx-place.banned { color: var(--bad); }
.pbx-place.pop { animation: pbPop .4s ease; }
@keyframes pbReady { 50% { box-shadow: 0 0 0 6px rgba(255, 201, 23, .18), 0 10px 30px rgba(255, 201, 23, .3); } }
@keyframes pbPop { 40% { transform: scale(1.08); } }
.pbx-panel { position: absolute; right: 12px; top: 64px; width: 290px; max-height: calc(100vh - 220px); overflow-y: auto; padding: 14px; border-radius: 18px;
  background: rgba(22, 21, 15, .96); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.pbx-ph { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.pbx-ph b { display: inline-flex; align-items: center; gap: 8px; }
.pbx-help { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin: 12px 0 0; }
.pbx-adm { left: 12px; right: auto; width: 320px; }
.pbx-modes { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.pbx-modes button { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 2px 8px; text-align: left; padding: 9px 10px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-3); font-weight: 800; font-size: 13.5px; }
.pbx-modes button small { grid-column: 2; font-weight: 500; font-size: 11.5px; color: var(--muted); }
.pbx-modes button.on { border-color: var(--accent); background: var(--accent-soft); }
.pbx-cd { margin: 10px 0 4px; padding: 10px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line); }
.pbx-cd label { display: block; font-weight: 800; font-size: 13px; margin-bottom: 6px; }
.pbx-cd-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pbx-cd-row .input { width: 76px; height: 34px; }
.pbx-cd-pre { display: flex; gap: 4px; }
.pbx-cd-pre .chip { height: 30px; padding: 0 9px; }
.pbx-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pbx-row .input { flex: 1 1 100%; height: 38px; }
.pbx.admin .pb-stage { cursor: cell; box-shadow: inset 0 0 0 3px rgba(255, 201, 23, .5); }
.pb-rect { position: absolute; left: 0; top: 0; pointer-events: none; background: color-mix(in srgb, var(--c) 45%, transparent); outline: 2px dashed #fff; }
.pb-rect::after { content: attr(data-size); position: absolute; left: 0; top: -22px; padding: 2px 6px; border-radius: 6px; background: #000; font-size: 11px; font-weight: 800; white-space: nowrap; }
@media (max-width: 700px) {
  .pbx-title span { display: none; }
  .pbx-live { height: 38px; padding: 0 12px 0 11px; gap: 6px; }
  .pbx-live b { font-size: 19px; }
  .pbx-live span:not(.pbx-dot) { font-size: 11px; }
}
@media (max-width: 700px) {
  .pbx-title { display: none; }
  .pbx-top { gap: 8px; }
  .pbx-live { margin-right: auto; }
  .pbx-tools [data-pb="in"], .pbx-tools [data-pb="out"] { display: none; }
  .pbx-back > span:last-child { display: none; }
  .pbx-bottom { flex-direction: column; align-items: stretch; gap: 10px; bottom: 8px; padding: 10px; }
  .pbx-bottom .pb-pal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
  .pbx-bottom .pb-sw { width: 100%; height: auto; aspect-ratio: 1; }
  .pbx-act { justify-content: space-between; }
  .pbx-xy { flex: 0 1 140px; width: auto; }
  .pbx-place { flex: 1 0 160px; min-width: 160px; }
  .pbx-panel, .pbx-adm { left: 8px; right: 8px; width: auto; top: 60px; max-height: calc(100vh - 260px); }
}
@media (max-width: 360px) {
  .pbx-admin > span:last-child { display: none; }
}

/* ивенты */
.ev-card { display: flex; gap: 18px; padding: 16px; align-items: center; transition: border-color .15s; margin-bottom: 12px; }
.ev-card:hover { border-color: var(--line-2); }
.ev-prev { width: 170px; height: 170px; flex: none; border-radius: 12px; image-rendering: pixelated; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.ev-text h2 { margin: 8px 0 6px; font: 800 22px/1.2 var(--font-display); }
.ev-text p { margin: 0 0 14px; color: var(--text-2); font-size: 14px; }
.ev-soon { padding: 22px; }
/* Pixel Battle */
.pb { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 12px; align-items: start; }
.pb-main { min-width: 0; }
.pb-stage { position: relative; height: min(72vh, 680px); border-radius: 16px; overflow: hidden; touch-action: none; cursor: crosshair; outline: none;
  background: repeating-conic-gradient(#1b1a14 0% 25%, #16150f 0% 50%) 0 0 / 24px 24px; border: 1px solid var(--line); }
.pb-stage:focus-visible { border-color: var(--accent-2); }
.pb-stage.grabbing { cursor: grabbing; }
#pbCanvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; image-rendering: pixelated; image-rendering: crisp-edges; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 20px 60px rgba(0, 0, 0, .5); }
.pb-cur { position: absolute; left: 0; top: 0; pointer-events: none; box-shadow: 0 0 0 2px #000, 0 0 0 3px #fff; background: var(--c); opacity: .75; }
.pb-cur.sel { opacity: 1; animation: pbBlink 1s ease-in-out infinite; }
@keyframes pbBlink { 50% { box-shadow: 0 0 0 2px #fff, 0 0 0 3px #000; } }
.pb-tip { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 6px; padding: 4px 9px 4px 4px; border-radius: 999px; background: rgba(10, 10, 10, .88);
  border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 700; pointer-events: none; white-space: nowrap; }
.pb-zoom { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(10, 10, 10, .7); }
.pb-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.pb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px; padding: 10px 12px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.pb-pal { display: flex; flex-wrap: wrap; gap: 5px; flex: 1 1 340px; min-width: 0; }
/* на странице Pixel Battle правая колонка не нужна — всё место полотну */
body.wide .side-right { display: none; }
body.wide .shell { grid-template-columns: 220px minmax(0, 1fr); }
@media (max-width: 1180px) { body.wide .shell { grid-template-columns: 76px minmax(0, 1fr); } }
@media (max-width: 920px) { body.wide .shell { grid-template-columns: minmax(0, 1fr); max-width: none; } }
.pb-sw { width: 26px; height: 26px; border-radius: 7px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); transition: transform .1s; }
.pb-sw:hover { transform: scale(1.12); }
.pb-sw.on { box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 4px var(--accent); transform: scale(1.08); }
.pb-act { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.pb-xy { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); min-width: 64px; text-align: right; }
.pb-place { position: relative; overflow: hidden; min-width: 190px; justify-content: center; }
.pb-place:disabled { opacity: 1; background: var(--bg-4); color: var(--text-2); box-shadow: none; }
.pb-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255, 201, 23, .28); transition: width .25s linear; }
.pb-lbl { position: relative; font-variant-numeric: tabular-nums; }
.pb-side { display: flex; flex-direction: column; gap: 10px; }
.pb-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 12px; text-align: center; }
.pb-stats b { display: block; font: 800 20px/1.2 var(--font); }
.pb-stats span { font-size: 11px; color: var(--muted); line-height: 1.2; display: block; }
.pb-help { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-2); line-height: 1.45; }
@media (max-width: 1100px) { .pb { grid-template-columns: 1fr; } .pb-side { display: grid; grid-template-columns: 1fr 1fr; } .pb-help { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .pb-stage { height: 62vh; }
  .pb-pal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; flex-basis: 100%; }
  .pb-sw { width: 100%; height: auto; aspect-ratio: 1; }
  .pb-act { width: 100%; }
  .pb-place { flex: 1; }
  .pb-side { grid-template-columns: 1fr; }
  .ev-card { flex-direction: column; align-items: stretch; }
  .ev-prev { width: 100%; height: auto; aspect-ratio: 1; max-height: 340px; object-fit: contain; }
}

/* рекомендации */
.feed-note { display: flex; align-items: center; gap: 8px; margin: -4px 0 12px; font-size: 13px; color: var(--muted); }
.feed-note .ico { width: 16px; height: 16px; color: var(--accent); }
.wtf { display: flex; flex-direction: column; gap: 10px; }
.wtf-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wtf-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wtf-who .nm { font-weight: 700; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wtf-who .meta { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wtf-row .btn { flex: none; width: 32px; padding: 0; justify-content: center; }
#related { margin-top: 18px; }
.related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rel { display: flex; flex-direction: column; gap: 6px; padding: 10px; min-width: 0; transition: border-color .15s; }
.rel:hover { border-color: var(--line-2); }
.rel-th { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--bg-4); }
.rel-t { font-weight: 700; font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rel-m { font-size: 12px; color: var(--muted); }

/* админка */
.admin-status { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 14px; }
.admin-status b { display: block; }
.admin-status span:not(.as-dot) { font-size: 13px; color: var(--muted); }
.as-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 4px rgba(255, 84, 112, .15); }
.admin-status.open .as-dot { background: var(--good); box-shadow: 0 0 0 4px rgba(52, 211, 153, .15); }
.form-h { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font: 800 18px/1.2 var(--font-display); }
.form-h .ico { color: var(--accent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) {
  .cd-tile { min-width: 0; flex: 1; }
  .cd-tile b { font-size: 26px; }
  .cd-bar { flex-wrap: wrap; }
  .cd-bar .cd-tiles { width: 100%; }
  .cd-bar .cd-tile { flex: 1; }
  .rules-end { flex-direction: column; }
  .re-date { text-align: left; }
  .row2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bopts { grid-template-columns: 1fr; }
  .rule { padding: 16px 14px; }
}

/* ---------- feed controls ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 12px; margin: 0 0 16px; flex-wrap: wrap; }
.page-title { margin: 0; font: 800 24px/1.2 var(--font-display); letter-spacing: -.01em; }
.page-sub { color: var(--muted); margin: -8px 0 18px; font-size: 14px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a { flex: none; }
.tabs button, .tabs a {
  height: 34px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 6px; transition: background .15s, color .15s;
}
.tabs .on { background: var(--bg-4); color: var(--text); }
.tabs button:hover, .tabs a:hover { color: var(--text); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.chip {
  height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 700; font-size: 13px;
  color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; transition: all .15s; background: transparent;
}
.chip:hover { color: var(--text); border-color: #55513f; }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip.accent.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.filters .sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 4px; }
.tag-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; margin-bottom: 16px;
  background: linear-gradient(120deg, var(--accent-soft), transparent); border: 1px solid rgba(255, 201, 23, .3); border-radius: var(--radius);
}
.tag-banner b { font: 800 20px/1 var(--font-display); }

/* ---------- posts ---------- */
.post { padding: 18px 18px 10px; margin-bottom: 16px; transition: border-color .15s; }
.post:hover { border-color: var(--line-2); }
.post-head { display: flex; align-items: flex-start; gap: 12px; }
.post-head .who { flex: 1; min-width: 0; }
.post-head .name { font-weight: 800; }
.post-head .name:hover { text-decoration: underline; }
.meta { color: var(--muted); font-size: 13px; }
.meta a:hover { color: var(--text-2); }
.flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.flag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.flag .ico { width: 14px; height: 14px; }
.flag.pin { background: var(--accent-soft); color: var(--accent-2); }
.flag.onair { background: rgba(255, 45, 85, .14); color: #ff7a93; }
.flag.nfs { background: rgba(148, 148, 168, .14); color: var(--text-2); }
.flag.link { background: rgba(96, 165, 250, .14); color: var(--mod); }
.post-title { margin: 12px 0 0; font-size: 19px; line-height: 1.3; font-weight: 800; letter-spacing: -.005em; }
.post-title a:hover { color: var(--accent-2); }
.post-text { margin-top: 8px; color: var(--text-2); white-space: pre-wrap; word-wrap: break-word; }
.post-text.clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.post-full .post-text { color: var(--text); font-size: 16px; }
.rich a.tg, .rich a.mn { color: var(--accent-2); font-weight: 700; }
.rich a.url { color: var(--mod); text-decoration: underline; text-underline-offset: 2px; }
.media { margin: 14px -18px 0; background: #08080a; position: relative; }
.media img.single { width: 100%; height: auto; max-height: 640px; object-fit: contain; cursor: zoom-in; }
.post-full .media img.single { max-height: none; }
.media video { width: 100%; max-height: 640px; background: #000; }
.media audio { width: calc(100% - 36px); margin: 14px 18px; }
.album { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.album .cell { position: relative; aspect-ratio: 1; overflow: hidden; cursor: zoom-in; background: var(--bg-3); }
.album .cell:first-child:nth-last-child(3) { grid-row: span 2; aspect-ratio: auto; }
.album .cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.album .cell:hover img { transform: scale(1.03); }
.album .cell video { width: 100%; height: 100%; object-fit: cover; }
.album .more-n { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; font: 800 28px var(--font-display); }
.album-full { display: flex; flex-direction: column; gap: 3px; }
/* height:auto обязателен: у картинок есть атрибуты width/height, без него высота бралась из атрибута и картинку тянуло */
.album-full img { width: 100%; height: auto; cursor: zoom-in; }
.post-foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.post-foot .spacer { flex: 1; }
.act {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 999px;
  color: var(--text-2); font-weight: 700; font-size: 14px; transition: background .15s, color .15s;
}
.act:hover { background: var(--bg-3); color: var(--text); }
.act.views { cursor: default; color: var(--muted); }
.act.views:hover { background: none; color: var(--muted); }
.act .ico { width: 18px; height: 18px; }
.votes { display: inline-flex; align-items: center; gap: 2px; height: 36px; padding: 0 3px; border-radius: 999px; background: var(--bg-3); }
.votes button { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); transition: all .15s; }
.votes button .ico { width: 18px; height: 18px; }
.votes button:hover { background: var(--bg-4); color: var(--text); }
.votes .n { min-width: 26px; text-align: center; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.votes.up .n, .votes.up .up-btn { color: var(--accent); }
.votes.down .n, .votes.down .down-btn { color: var(--mod); }
.votes.small { height: 28px; background: transparent; }
.votes.small button { width: 24px; height: 24px; }
.votes.small .ico { width: 15px; height: 15px; }
.votes.small .n { font-size: 13px; min-width: 18px; }
.votes.pop .n { animation: pop .25s; }
@keyframes pop { 50% { transform: scale(1.35); } }

.menu-wrap { position: relative; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 210px; padding: 6px;
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow);
}
.dropdown button, .dropdown a {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 9px; text-align: left; font-weight: 600; font-size: 14px;
}
.dropdown button:hover, .dropdown a:hover { background: var(--bg-4); }
.dropdown .danger { color: var(--bad); }
.dropdown .ico { width: 17px; height: 17px; color: var(--muted); }

.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty .big { font-size: 44px; margin-bottom: 8px; }
.empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }
.loader { display: flex; justify-content: center; padding: 28px; }
.loader::after { content: ''; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { height: 220px; margin-bottom: 16px; background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- comments ---------- */
.comments { padding: 18px; }
.comments h2 { margin: 0 0 14px; font: 700 17px var(--font-display); }
.composer { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.composer .box { flex: 1; min-width: 0; }
.composer .replying { font-size: 13px; color: var(--accent-2); margin-bottom: 6px; display: flex; gap: 8px; align-items: center; }
.composer .replying button { color: var(--muted); font-weight: 700; }
.textarea, .input, .select {
  width: 100%; padding: 11px 14px; border-radius: 14px; background: var(--bg-3); border: 1px solid var(--line-2); outline: none;
  transition: border-color .15s, background .15s; resize: vertical;
}
.textarea:focus, .input:focus, .select:focus { border-color: var(--accent); background: var(--bg-2); }
.textarea { min-height: 46px; }
.composer .row { display: flex; justify-content: flex-end; margin-top: 8px; gap: 8px; }
.comment { display: flex; gap: 10px; padding: 10px 0; }
.comment .body { flex: 1; min-width: 0; }
.comment .head { font-size: 13px; }
.comment .head b { font-size: 14px; }
.comment .txt { margin-top: 2px; white-space: pre-wrap; word-wrap: break-word; }
.comment .txt.deleted { color: var(--muted); font-style: italic; }
.comment .tools { display: flex; align-items: center; gap: 4px; margin-top: 2px; margin-left: -6px; }
.comment .tools .act { height: 28px; padding: 0 8px; font-size: 13px; }
.replies { margin-left: 22px; padding-left: 16px; border-left: 2px solid var(--line); }
.comment.flash { animation: flash 1.6s; border-radius: 12px; }
@keyframes flash { 0%, 40% { background: var(--accent-soft); } }

/* ---------- profile ---------- */
.profile { overflow: hidden; margin-bottom: 16px; }
.banner { height: 180px; background: linear-gradient(120deg, #2a2205, #ffc917 55%, #fff1a8); background-size: cover; background-position: center; }
.profile-body { padding: 0 22px 20px; }
.profile-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: -52px; }
.profile-top .ava { border: 5px solid var(--bg-2); }
.profile h1 { margin: 12px 0 0; font: 800 26px/1.2 var(--font-display); }
.profile .login { color: var(--muted); font-weight: 600; }
.profile .bio { margin: 12px 0 0; white-space: pre-wrap; }
.profile .facts { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; color: var(--muted); font-size: 14px; }
.profile .facts span { display: inline-flex; align-items: center; gap: 6px; }
.profile .facts .ico { width: 16px; height: 16px; }
.profile .facts a { color: #b794f6; font-weight: 700; }
.stats { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.stats div { padding: 12px 8px; text-align: center; background: var(--bg-3); }
.stats div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font: 800 19px/1.2 var(--font-display); }
.stats span { font-size: 12px; color: var(--muted); font-weight: 600; }
.admin-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tile { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg-3); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tile:hover img { transform: scale(1.04); }
.tile .txt { position: absolute; inset: 0; padding: 14px; font-weight: 800; font-size: 14px; line-height: 1.35; display: flex; align-items: flex-end; background: linear-gradient(150deg, #332a0c, var(--bg-3)); overflow: hidden; }
/* все значки плитки — в одной плашке, а не каждый в своей */
.tile .badges { position: absolute; top: 8px; left: 8px; display: flex; align-items: center; gap: 7px; height: 24px; padding: 0 8px; border-radius: 8px;
  background: rgba(0, 0, 0, .65); backdrop-filter: blur(6px); }
.tile .badges span { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 800; }
.tile .badges .ico { width: 14px; height: 14px; }
.tile .score { position: absolute; bottom: 8px; right: 8px; height: 24px; padding: 0 8px; border-radius: 8px; background: rgba(0, 0, 0, .65); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
.tile .score .ico { width: 13px; height: 13px; color: var(--accent); }

/* ---------- forms ---------- */
.form { padding: 22px; }
.field { margin-bottom: 18px; }
.field label, .label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.field label.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  min-height: 190px; margin: 0; padding: 26px 18px; border: 2px dashed var(--line-2); border-radius: var(--radius);
  color: var(--muted); font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255, 201, 23, .05), transparent 60%);
}
.field label.drop:hover, .field label.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop-ico { width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px;
  background: var(--accent-soft); color: var(--accent); transition: transform .2s; }
.drop:hover .drop-ico, .drop.over .drop-ico { transform: translateY(-3px); }
.drop-ico .ico { width: 26px; height: 26px; }
.drop b { color: var(--text); font: 800 17px/1.25 var(--font-display); }
.drop-sub { font-size: 14px; color: var(--text-2); }
.drop-sub u { color: var(--accent); text-decoration: none; font-weight: 700; }
.drop-kinds { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.drop-kinds > span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px;
  background: var(--bg-3); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.drop-kinds .ico { width: 14px; height: 14px; color: var(--muted); }
.drop-limit { font-size: 12px; color: var(--muted); margin-top: 2px; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 12px; }
.prev { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg-3); border: 1px solid var(--line); }
.prev img, .prev video { width: 100%; height: 100%; object-fit: cover; }
.prev .kind { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--text-2); padding: 8px; text-align: center; word-break: break-all; }
.prev .x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .7); display: flex; align-items: center; justify-content: center; }
.prev .x .ico { width: 14px; height: 14px; }
.prev .bar { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--accent); transition: width .2s; }
.prev.done .bar { background: var(--good); }
.prev.err { border-color: var(--bad); }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt, .field label.opt {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); cursor: pointer;
  transition: border-color .15s, background .15s; margin: 0; font-weight: 500;
}
.opt:hover { border-color: #55513f; }
.opt input { margin-top: 3px; accent-color: var(--accent); width: 17px; height: 17px; flex: none; }
.opt b { display: block; font-size: 14px; }
.opt span { font-size: 12.5px; color: var(--muted); }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.counter { font-size: 12px; color: var(--muted); }

/* ---------- videos ---------- */
.suggest { padding: 18px; margin-bottom: 16px; }
.suggest .row { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 10px; }
.suggest .row2 { display: flex; gap: 10px; margin-top: 10px; }
.suggest .row2 .input { flex: 1; }
.video { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 14px; margin-bottom: 12px; }
.video .vthumb { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; background: #000; cursor: pointer; }
.video .vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, opacity .2s; opacity: .92; }
.video .vthumb:hover img { transform: scale(1.04); opacity: 1; }
.video .vthumb .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video .vthumb .play span { width: 48px; height: 48px; border-radius: 50%; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.video .rank { position: absolute; top: 8px; left: 8px; height: 24px; min-width: 24px; padding: 0 7px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.video .vt { font-weight: 800; font-size: 16px; line-height: 1.3; }
.video .vt a:hover { color: var(--accent-2); }
.video .vm { font-size: 13px; color: var(--muted); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.video .vc { margin-top: 8px; font-size: 14px; color: var(--text-2); padding: 8px 12px; background: var(--bg-3); border-radius: 10px; border-top-left-radius: 2px; }
.video .vfoot { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* ---------- notifications ---------- */
.notif { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); transition: background .15s; }
.notif:last-child { border-bottom: 0; }
.notif:hover { background: var(--bg-3); }
.notif.unread { background: linear-gradient(90deg, var(--accent-soft), transparent 70%); }
/* значок-иконка уведомления: и на странице, и во всплывашке слева */
.nico { width: 40px; height: 40px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; position: relative; }
.nico .ava { width: 40px; height: 40px; font-size: 15px; }
.nico .sub { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg-2); color: #fff; }
.nico .sub .ico { width: 11px; height: 11px; }
.npop .nico .sub { border-color: #1d1b14; }
.notif .ntext { flex: 1; min-width: 0; font-size: 14px; }
.notif .quote { color: var(--text-2); margin-top: 3px; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif .when { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ---------- login ---------- */
.login-card { max-width: 460px; margin: 20px auto; padding: 32px; text-align: center; }
.login-card h1 { font: 800 26px/1.2 var(--font-display); margin: 18px 0 6px; }
.login-card p { color: var(--muted); margin: 0 0 24px; }
.btn.twitch { background: #9146ff; border-color: transparent; color: #fff; }
.btn.twitch:hover { background: #a065ff; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 22px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.demo-users { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.demo-users button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 4px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line); font-weight: 700; font-size: 13px; }
.demo-users button:hover { border-color: var(--accent); }

/* ---------- search ---------- */
.users-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: thin; }
.user-chip { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 112px; padding: 16px 10px; text-align: center; }
.user-chip b { font-size: 13px; line-height: 1.2; }
.user-chip span { font-size: 12px; color: var(--muted); }
.section-label { font: 700 13px var(--font-display); text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin: 6px 0 12px; }

/* ---------- modal & lightbox ---------- */
#modal { position: fixed; inset: 0; z-index: 60; background: rgba(5, 5, 7, .86); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.lightbox { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 50px 70px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: var(--shadow); }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: center; transition: background .15s; }
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font-weight: 700; color: var(--text-2); }
.player { width: min(1100px, 92vw); }
.player .frame { aspect-ratio: 16/9; background: #000; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.player iframe { width: 100%; height: 100%; border: 0; }
.player .cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; font-weight: 700; }

/* ---------- toasts ---------- */
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { padding: 12px 18px; border-radius: 14px; background: var(--bg-4); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-weight: 700; font-size: 14px; animation: rise .2s; max-width: 90vw; }
.toast.err { border-color: rgba(255, 84, 112, .5); color: #ffb3c0; }
.toast.ok { border-color: rgba(52, 211, 153, .45); }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }

/* ---------- stream mode ---------- */
body.stage-on { overflow: hidden; }
body.stage-on .topbar, body.stage-on .shell, body.stage-on .tabbar { display: none; }
#stage { position: fixed; inset: 0; z-index: 50; background: radial-gradient(90% 70% at 50% 0%, #1f1a08, #080806 70%); display: flex; flex-direction: column; }
.st-top { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.st-top .logo { width: auto; }
.st-top .grow { flex: 1; }
.st-live { display: flex; align-items: center; gap: 10px; }
.st-live .input { width: 260px; height: 36px; padding: 0 12px; }
.switch { position: relative; width: 46px; height: 26px; border-radius: 13px; background: var(--bg-4); border: 1px solid var(--line-2); transition: background .2s; flex: none; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: var(--live); border-color: var(--live); }
.switch.on::after { transform: translateX(20px); }
.st-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.st-view { min-height: 0; display: flex; flex-direction: column; padding: 22px; gap: 16px; }
.st-media { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; border-radius: 18px; background: #000; overflow: hidden; position: relative; }
.st-media img, .st-media video { max-width: 100%; max-height: 100%; object-fit: contain; }
.st-media .st-text { padding: 48px; font: 800 clamp(22px, 3vw, 40px)/1.35 var(--font-display); text-align: center; max-width: 1000px; white-space: pre-wrap; }
.st-media iframe { width: 100%; height: 100%; border: 0; }
.st-media .album-nav { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.st-media .album-nav span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.st-media .album-nav span.on { background: #fff; }
.st-info { display: flex; align-items: center; gap: 14px; }
.st-info .t { flex: 1; min-width: 0; }
.st-info h2 { margin: 0; font: 800 22px/1.25 var(--font-display); }
.st-info .meta { font-size: 14px; }
.st-score { font: 800 30px var(--font-display); color: var(--accent); display: flex; align-items: center; gap: 6px; }
.st-controls { display: flex; gap: 10px; align-items: center; }
.st-controls .grow { flex: 1; }
.kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 5px; border-radius: 5px; background: rgba(255, 255, 255, .14); font-size: 11px; font-weight: 800; margin-left: 4px; }
.st-side { border-left: 1px solid rgba(255, 255, 255, .06); overflow: auto; padding: 18px; }
.st-side h3 { margin: 0 0 10px; font: 600 12px var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.st-q { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; cursor: pointer; }
.st-q:hover { background: rgba(255, 255, 255, .05); }
.st-q.on { background: var(--accent-soft); outline: 1px solid rgba(255, 201, 23, .4); }
.st-q .thumb { width: 56px; height: 56px; border-radius: 9px; object-fit: cover; background: var(--bg-4); flex: none; }
.st-q .thumb.wide { width: 80px; height: 45px; }
.st-q .t { font-size: 13px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-q .s { font-size: 12px; color: var(--muted); }

/* ---------- mobile tab bar ---------- */
.tabbar { display: none; }

@media (max-width: 1180px) {
  .shell { grid-template-columns: 76px minmax(0, 1fr) 300px; gap: 20px; }
  .logo { width: auto; }
  .nav a { justify-content: center; padding: 0; }
  .nav a .lbl, .nav .count, .side-note, .nav-cta .lbl { display: none; }
  .nav a { position: relative; }
  .nav-cta .btn { width: 46px; padding: 0; }
}
@media (max-width: 920px) {
  .shell { grid-template-columns: minmax(0, 1fr); max-width: 680px; padding: 16px 12px 96px; }
  .side-left, .side-right { display: none; }
  .topbar { gap: 12px; padding: 0 12px; height: 58px; }
  .logo-text { font-size: 18px; }
  .hide-m { display: none; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(62px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom); background: rgba(14, 13, 10, .95); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 700; color: var(--muted); position: relative; }
  .tabbar a.on { color: var(--text); }
  .tabbar a.on .ico { color: var(--accent); }
  .tabbar a.plus .ico { width: 44px; height: 32px; padding: 6px 12px; border-radius: 12px; background: var(--accent); color: var(--on-accent); }
  .tabbar .dot-badge { top: 4px; right: calc(50% - 22px); }
  .post { padding: 14px 14px 8px; }
  .media { margin: 12px -14px 0; }
  .video { grid-template-columns: 1fr; }
  .suggest .row { grid-template-columns: 1fr; }
  .options { grid-template-columns: 1fr; }
  .st-main { grid-template-columns: 1fr; }
  .st-side { display: none; }
  .st-live .input { display: none; }
}
@media (max-width: 560px) {
  .search { display: none; }
  .page-title { font-size: 20px; }
  .stats b { font-size: 16px; }
  .grid { gap: 3px; }
  .tile { border-radius: 6px; }
  .lightbox { padding: 60px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; }
  .profile-body { padding: 0 16px 16px; }
}

/* закрытый режим: до входа видна только карточка входа */
body.closed .side-left, body.closed .side-right, body.closed .tabbar, body.closed .search, body.closed #topActions { display: none !important; }
body.closed .shell { grid-template-columns: minmax(0, 1fr); max-width: 560px; }

/* заявки на галочку */
.vf-cta { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 16px; color: var(--text); transition: border-color .15s; }
.vf-cta:hover { border-color: #4aa3ff; }
.vf-cta > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.vf-cta > span:nth-child(2) span { color: var(--muted); font-size: 13.5px; }
.vf-how { padding: 18px 20px; margin-bottom: 14px; }
.vf-how .form-h { display: flex; align-items: center; gap: 10px; color: var(--text); }
.vf-how .form-h svg { color: #4aa3ff; }
.vf-steps { margin: 4px 0 12px; padding-left: 22px; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.45; }
.vf-box { padding: 18px; }
.vf-box .empty { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.vf-big { color: #4aa3ff; display: inline-flex; }
.vf-big svg { width: 56px; height: 56px; }
.vf-drop { min-height: 170px; }
.vf-prev { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-bottom: 12px; border-radius: 12px; background: rgba(255, 80, 80, .1); color: #ffb4b4; font-size: 14px; }
.vf-prev .ico { color: var(--bad); flex: none; }
.vf-video { display: block; width: 100%; max-height: 440px; border-radius: 14px; background: #000; }
.vf-file { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 10px 0; font-size: 13.5px; color: var(--muted); }
.vf-progress { height: 6px; border-radius: 99px; background: var(--bg-4); overflow: hidden; margin: 6px 0 12px; }
.vf-progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.vf-send { width: 100%; justify-content: center; }
.vf-limits { margin-bottom: 16px; }
.vf-item { padding: 14px 16px; margin-bottom: 12px; }
.vf-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.vf-head > div { flex: 1; min-width: 0; }
.vf-name { font-weight: 800; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.vf-st { flex: none; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.vf-item:not(.pending) .vf-head { margin-bottom: 4px; }
.vf-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.vf-act .input { flex: 1 1 220px; height: 42px; }
.vf-note { margin: 8px 0 0; }
.tab-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 11.5px; font-weight: 800; }

/* приложение на телефон: подсказка снизу */
.pwa-sheet { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 95; width: min(440px, calc(100vw - 24px)); padding: 16px 16px 14px;
  border-radius: 22px; background: rgba(29, 28, 21, .98); border: 1px solid var(--line-2); box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
  transform: translate(-50%, 24px); opacity: 0; transition: transform .3s cubic-bezier(.2, 1.2, .4, 1), opacity .25s; }
.pwa-sheet.in { transform: translate(-50%, 0); opacity: 1; }
@media (max-width: 920px) { .pwa-sheet { bottom: calc(74px + env(safe-area-inset-bottom)); } }
.pwa-x { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.pwa-x:hover { background: var(--bg-3); color: var(--text); }
.pwa-head { display: flex; gap: 12px; align-items: center; padding-right: 30px; margin-bottom: 12px; }
.pwa-head img { width: 54px; height: 54px; border-radius: 14px; flex: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.pwa-head b { display: block; font: 800 16px/1.25 var(--font); }
.pwa-head span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.pwa-p { margin: 0 0 12px; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.pwa-steps { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 9px; font-size: 14px; line-height: 1.5; }
.pwa-steps small { color: var(--muted); }
.pwa-k { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px 1px 6px; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--line-2);
  font-weight: 800; white-space: nowrap; vertical-align: 1px; }
.pwa-k .ico { width: 15px; height: 15px; color: #4aa3ff; }
.pwa-foot { display: flex; justify-content: flex-end; gap: 8px; }
.pwa-arrow { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); color: var(--accent); animation: pwaArrow 1.2s ease-in-out infinite; pointer-events: none; }
.pwa-arrow .ico { width: 26px; height: 26px; }
@keyframes pwaArrow { 50% { transform: translate(-50%, 6px); } }
@media (max-width: 920px) { .pwa-arrow { display: none; } }
.np-push { align-items: center; }
.np-row > .np-push-ctl { display: inline-flex; flex-direction: row; align-items: center; gap: 10px; flex: none; }
.np-row > .np-push-ctl:empty { display: none; }
.np-set.compact .np-push { flex-basis: 100%; }
.app-set { margin-top: 16px; }
.app-set .btn { margin-top: 4px; }

/* карусель: несколько фото/видео в посте */
.media.car { overflow: hidden; background: transparent; }
.car-track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  aspect-ratio: 1 / var(--r, 1); max-height: 640px; background: #000; -webkit-overflow-scrolling: touch; }
.car-track::-webkit-scrollbar { display: none; }
.car-slide { flex: 0 0 100%; min-width: 0; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.car-slide > img.car-m { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.car-slide .vp { width: 100%; height: 100%; display: flex; align-items: center; }
.car-slide .vp video { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.car-n { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 99px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 12px; font-weight: 800;
  font-variant-numeric: tabular-nums; pointer-events: none; backdrop-filter: blur(6px); }
.car-n b { font-weight: 800; }
.car-btn { position: absolute; top: calc((100% - 26px) / 2); transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, .58); color: #fff; border: 1px solid rgba(255, 255, 255, .16); opacity: 0; transition: opacity .15s, background .15s; backdrop-filter: blur(6px); }
.car-btn .ico { width: 20px; height: 20px; }
.car-btn.prev { left: 12px; }
.car-btn.next { right: 12px; }
.car:hover .car-btn, .car-btn:focus-visible { opacity: 1; }
.car-btn:hover { background: rgba(0, 0, 0, .8); }
@media (hover: none) { .car-btn { display: none; } }
.car-dots { display: flex; justify-content: center; gap: 4px; padding: 9px 0 2px; }
.car-dots button { width: 7px; height: 7px; padding: 0; border-radius: 99px; background: var(--line-2); transition: width .2s, background .2s; }
.car-dots button.on { width: 18px; background: var(--accent); }

/* огонёк: дни подряд на сайте */
.streak-pill { display: inline-flex; align-items: center; gap: 3px; height: 36px; padding: 0 11px 0 8px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 120, 0, .2), rgba(255, 61, 0, .1)); border: 1px solid rgba(255, 140, 0, .4); color: #fff; }
.streak-pill b { font: 800 15px/1 var(--font); font-variant-numeric: tabular-nums; }
.streak-pill:hover { border-color: #ff9100; }
.flame { flex: none; transform-origin: 50% 90%; animation: flameFlick 1.9s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(255, 120, 0, .45)); }
@keyframes flameFlick { 0%, 100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.08, 1.12) rotate(3deg); } }
.stats .st-fire b { display: flex; align-items: center; justify-content: center; gap: 2px; color: #ffb35c; }
.stats .st-fire span { color: #ffb35c; }
#streakCele { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); cursor: pointer;
  animation: scIn .25s ease; transition: opacity .25s; padding: 20px; }
#streakCele.out { opacity: 0; }
@keyframes scIn { from { opacity: 0; } }
.sc-card { text-align: center; padding: 26px 34px 24px; border-radius: 26px; background: rgba(29, 28, 21, .98); border: 1px solid rgba(255, 140, 0, .35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(255, 110, 0, .18); animation: scPop .5s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes scPop { from { transform: scale(.7); opacity: 0; } }
.sc-card .flame { width: 96px; height: 96px; filter: drop-shadow(0 0 18px rgba(255, 110, 0, .6)); }
.sc-n { font: 800 56px/1 var(--font-display); color: #fff; margin-top: 4px; }
.sc-t { font-weight: 800; font-size: 18px; margin-top: 4px; }
.sc-s { color: var(--muted); font-size: 13.5px; margin: 8px auto 0; max-width: 250px; line-height: 1.45; }
@media (prefers-reduced-motion: reduce) { .flame, .sc-card { animation: none; } }
@media (max-width: 440px) { .streak-pill { height: 34px; padding: 0 9px 0 6px; } }
@media (max-width: 440px) { .stats div { padding: 10px 3px; } .stats span { font-size: 10.5px; } }
.stats span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats span .hide-m { display: inline; }
@media (max-width: 920px) { .stats span .hide-m { display: none; } }

/* телефон в обычном браузере: только экран установки приложения */
body.appgate { overflow: hidden; }
body.appgate > *:not(#appGate):not(#toasts) { display: none !important; }
#appGate { position: fixed; inset: 0; z-index: 200; overflow-y: auto; display: flex; align-items: center; justify-content: center;
  padding: calc(24px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
  background: radial-gradient(120% 70% at 50% 0%, rgba(255, 201, 23, .16), transparent 60%), var(--bg); }
.ag-box { width: min(420px, 100%); text-align: center; }
.ag-icon { display: block; width: 96px; height: 96px; margin: 0 auto; border-radius: 26px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .06); margin-bottom: 18px; }
#appGate h1 { font: 800 26px/1.15 var(--font-display); margin: 0 0 10px; }
.ag-sub { color: var(--text-2); font-size: 15px; line-height: 1.5; margin: 0 0 20px; }
.ag-steps { text-align: left; padding: 16px 16px 6px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line-2); }
.ag-steps .pwa-steps { font-size: 15px; gap: 12px; }
.ag-steps .pwa-p { font-size: 15px; }
.ag-btn { margin-top: 14px; }
.ag-btn .btn { width: 100%; justify-content: center; height: 50px; font-size: 16px; }
.ag-foot { color: var(--muted); font-size: 13px; margin: 18px 0 0; line-height: 1.45; }

/* рофл-значки: эмодзи вместо рисунка */
.bemo { display: inline-block; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.bdg .bemo { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.bchip.fun { color: var(--text); }
.bopts.fun { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.bopt.mini { align-items: center; padding: 7px 9px; gap: 8px; }
.bopt.mini .oico { width: 28px; height: 28px; border-radius: 8px; }
.bopt.mini .otext b { font-size: 12.5px; line-height: 1.2; }
@media (max-width: 560px) { .bopts.fun { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* личные сообщения (бета) */
.beta-tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; margin-left: auto; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: #c4b5fd; background: rgba(167, 139, 250, .14); border: 1px solid rgba(167, 139, 250, .35); }
.beta-tag.big { height: 22px; font-size: 11.5px; margin-left: 8px; vertical-align: 5px; }
.dm-new { padding: 12px; margin-bottom: 14px; }
.dm-find { position: relative; }
.dm-find > .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.dm-find .input { padding-left: 38px; }
#dmFound { margin-top: 8px; display: grid; gap: 2px; }
.dm-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; color: var(--text); }
.dm-user:hover { background: var(--bg-3); }
.dm-user > span:not(.ava) { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dm-user small { width: 100%; color: var(--muted); font-size: 12px; }
.dm-user > .ico { color: var(--muted); }
.dm-none { padding: 8px; }
.dm-threads { padding: 6px; }
.dm-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; color: var(--text); }
.dm-row:hover { background: var(--bg-3); }
.dm-row-b { flex: 1; min-width: 0; }
.dm-row-t { display: flex; align-items: center; gap: 6px; }
.dm-row-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-row-at { margin-left: auto; font-size: 12px; color: var(--muted); flex: none; }
.dm-row-l { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.dm-row.unread .dm-row-l { color: var(--text); font-weight: 600; }
.dm-unread { flex: none; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 800; }
body.dmfull .site-foot { display: none; }
.dm-chat { display: flex; flex-direction: column; height: calc(100dvh - 100px); min-height: 380px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); overflow: hidden; }
.dm-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: rgba(22, 21, 15, .9); }
.dm-who { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); }
.dm-who > span:not(.ava) { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.dm-who small { width: 100%; font-size: 12px; color: var(--muted); }
.dm-scroll { flex: 1; overflow-y: auto; padding: 12px 14px 6px; overscroll-behavior: contain; }
.dm-top { display: flex; justify-content: center; padding: 6px 0 14px; }
.dm-hello { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--muted); font-size: 13px; }
.dm-hello b { color: var(--text); font-size: 15px; }
.dm-day { display: flex; justify-content: center; margin: 12px 0 8px; }
.dm-day span { padding: 3px 10px; border-radius: 99px; background: var(--bg-3); color: var(--muted); font-size: 12px; font-weight: 700; }
.dm-msg { position: relative; max-width: min(78%, 460px); width: fit-content; min-width: 58px; margin-top: 8px; padding: 7px 12px 8px; border-radius: 18px 18px 18px 6px;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--text); overflow-wrap: anywhere; }
.dm-msg.tight { margin-top: 3px; }
.dm-msg.me { margin-left: auto; border-radius: 18px 18px 6px 18px; background: var(--accent); border-color: transparent; color: var(--on-accent); }
.dm-msg.me a { color: inherit; text-decoration: underline; }
.dm-text { font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; }
.dm-time { position: absolute; right: 10px; bottom: 5px; font-size: 10.5px; line-height: 1; opacity: .6; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dm-pad { display: inline-block; width: 40px; height: 1px; }   /* место под время в последней строке */
.dm-msg:not(:has(.dm-text)) { padding-bottom: 20px; }          /* только фото — время под ним */
.dm-msg[data-id^="tmp"] { opacity: .6; }
.dm-img { display: block; margin: -2px -6px 6px; }
.dm-img img { display: block; max-width: 100%; max-height: 320px; width: auto; height: auto; border-radius: 12px; }
.dm-input { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: rgba(22, 21, 15, .95); }
.dm-input.off { justify-content: center; color: var(--muted); font-size: 13.5px; padding: 16px; }
.dm-input textarea { flex: 1; min-height: 42px; max-height: 140px; resize: none; padding: 10px 14px; border-radius: 20px; border: 1px solid var(--line-2);
  background: var(--bg-3); color: var(--text); font: 500 15px/1.4 var(--font); outline: none; }
.dm-input textarea:focus { border-color: var(--accent); }
.dm-att { flex: none; width: 42px; height: 42px; cursor: pointer; }
.dm-send { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.dm-send .ico { width: 20px; height: 20px; }
.nav .beta-tag { margin-left: auto; }
@media (max-width: 920px) {
  .dm-chat { height: calc(100dvh - 58px - 62px - env(safe-area-inset-bottom) - 24px); border-radius: 16px; }
}

img.mascot { flex: none; object-fit: contain; }
.role img.mascot { margin: -3px 1px -3px -3px; }
.bchip img.mascot { margin: -3px 0 -3px -4px; }
.oico img.mascot { width: 34px; height: 23px; }

/* Pixel Battle на телефоне: кнопки масштаба справа, верхняя панель влезает */
.pbx-zoom { position: absolute; right: 12px; z-index: 4; display: none; flex-direction: column; gap: 6px; bottom: var(--pbb, 190px); }
.pbx-zoom .vp-btn { width: 44px; height: 44px; border-radius: 14px; background: rgba(22, 21, 15, .92); border: 1px solid var(--line-2); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.pbx-zoom .vp-btn svg, .pbx-zoom .vp-btn .ico { width: 20px; height: 20px; }
@media (max-width: 700px), (pointer: coarse) {
  .pbx-zoom { display: flex; }
  .pbx-tools [data-pb="in"], .pbx-tools [data-pb="out"], .pbx-tools [data-pb="fit"] { display: none; }
  .pbx-admin > span:last-child { display: none; }
  .pbx-top { gap: 8px; }
  .pbx-tools { flex: none; }
}
@media (max-width: 700px) {
  .pbx-zoom { right: 10px; }
  .pbx-bottom { bottom: calc(8px + env(safe-area-inset-bottom)); }
  .pbx-top { padding: calc(10px + env(safe-area-inset-top)) 10px 10px; }
  .pbx-hint { font-size: 12.5px; line-height: 1.3; }
  .pbx-place { font-size: 15px; }
}

/* комментарии окошком */
.cmt-sheet { width: min(640px, 94vw); }
.cmt-sheet .sheet-head .who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmt-sheet .sheet-head .btn { flex: none; }
.comments.in-sheet { border: 0; background: none; padding: 6px 0 0; box-shadow: none; }
@media (max-width: 700px) {
  #modal:has(.cmt-sheet) { align-items: flex-end; }
  .cmt-sheet { width: 100vw; max-height: 86dvh; height: 86dvh; border-radius: 22px 22px 0 0; border-bottom: 0; animation: cmtUp .25s cubic-bezier(.2, 1, .3, 1);
    padding-bottom: env(safe-area-inset-bottom); }
  .cmt-sheet .sheet-head { padding: 12px 14px; }
  .cmt-sheet .sheet-head .btn { display: none; }
  .cmt-sheet .sheet-body { padding: 4px 14px 14px; flex: 1; }
}
@keyframes cmtUp { from { transform: translateY(40%); opacity: .4; } }

/* TikTok: поле в новом посте и подпись источника */
.tt-field > label { display: inline-flex; align-items: center; gap: 6px; }
.tt-field > label .ico { width: 16px; height: 16px; color: #ff2d6f; }
.tt-row { display: flex; gap: 8px; }
.tt-row .input { flex: 1; min-width: 0; }
.tt-row .btn { flex: none; }
@media (max-width: 520px) { .tt-row #ttPaste span { display: none; } }
.prev .tt-wait { flex-direction: column; gap: 6px; text-align: center; font-size: 12px; line-height: 1.3; color: var(--text-2); }
.prev .tt-wait .ico { width: 22px; height: 22px; color: #ff2d6f; animation: pbxDot 1.2s infinite; }
.post-src { display: inline-flex; align-items: center; gap: 5px; margin: 8px 0 0; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.post-src .ico { width: 14px; height: 14px; color: #ff2d6f; }
.post-src:hover { color: var(--text); }

/* телефон: нижняя панель не шире 560 (иначе палитра раздувается), по центру */
@media (max-width: 700px) {
  .pbx-bottom { width: min(560px, calc(100vw - 16px)); }
}

/* @ai */
.role.ai-tag { --rc: #6b86ff; }
a.mn.ai { color: #8fa3ff; font-weight: 800; }
.ai-typing { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px 44px; color: var(--muted); font-size: 13px; font-weight: 700; }
.ai-typing img { border-radius: 50%; }
.ai-typing .dots { display: inline-flex; gap: 3px; margin-left: 4px; }
.ai-typing .dots i { width: 5px; height: 5px; border-radius: 50%; background: #6b86ff; animation: aiDot 1.2s infinite; }
.ai-typing .dots i:nth-child(2) { animation-delay: .2s; } .ai-typing .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes aiDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ai-admin .form-h { display: flex; align-items: center; gap: 8px; }
.ai-status { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; margin-bottom: 12px; background: var(--bg-3); border: 1px solid var(--line); }
.ai-status > div { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; }
.ai-status > div > span { color: var(--muted); line-height: 1.45; }
.ai-status .as-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex: none; background: var(--bad); }
.ai-status.ok .as-dot { background: #4ade80; }
.ai-ans { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--bg-3); border: 1px solid var(--line); font-size: 14px; white-space: pre-wrap; }
.ai-ans b { font-size: 12px; color: var(--muted); }
.ai-ans p { margin: 6px 0 0; }

.role.ai-tag img { flex: none; border-radius: 50%; margin-left: -2px; }
.bchip.ai-chip img { flex: none; border-radius: 50%; margin-left: -3px; }

/* ответ на комментарий — поле прямо под ним */
.composer.inline { margin: 8px 0 4px; }
.composer.inline > .ava, .composer.inline > img.ava { display: none; }
.composer.inline .box { width: 100%; }
@media (pointer: coarse) { .composer .counter { visibility: hidden; } }

/* рофл-значки картинками (эмоуты 7TV и т. п.): высота по строке, ширина по картинке */
.bimg { display: block; width: auto; max-width: 4.2em; object-fit: contain; border-radius: 3px; flex: none; }
.bdg.pic { width: auto; height: 20px; min-width: 18px; color: inherit; }
.bdg.pic .bimg { max-height: 20px; }
.profile h1 .bdg.pic { height: 26px; }
.profile h1 .bdg.pic .bimg { height: 26px !important; max-height: 26px; }
.bchip .bimg { margin: -2px 0 -2px -3px; }
.oico .bimg { margin: 0 auto; max-width: 30px; }

/* ---- длинный и «зальго»-текст не вылезает за карточку ---- */
.post-title, .post-text, .rich, .dm-text, .dm-row-l { overflow-wrap: anywhere; }
.post-title, .post-text, .comment .txt { overflow: hidden; }

/* ---- голосовые в личке ---- */
.dm-voice { display: flex; align-items: center; gap: 10px; width: 236px; max-width: 100%; }
.vbtn { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.vbtn .ico { width: 18px; height: 18px; }
.dm-msg.me .vbtn { background: var(--on-accent); color: var(--accent); }
.vbody { flex: 1; min-width: 0; }
.vwave { display: flex; align-items: center; justify-content: space-between; gap: 1px; height: 26px; cursor: pointer; }
.vwave i { flex: 0 1 3px; min-width: 2px; border-radius: 2px; background: rgba(255, 255, 255, .28); transition: background .12s; }
.vwave i.on { background: var(--accent); }
.dm-msg.me .vwave i { background: rgba(0, 0, 0, .25); }
.dm-msg.me .vwave i.on { background: var(--on-accent); }
.vmeta { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 11.5px; line-height: 17px; font-variant-numeric: tabular-nums; }
.vtime { opacity: .8; min-width: 30px; }
.vspeed { font: inherit; font-weight: 800; padding: 0 6px; border-radius: 8px; background: rgba(255, 255, 255, .1); color: inherit; cursor: pointer; }
.dm-msg.me .vspeed { background: rgba(0, 0, 0, .12); }
.dm-msg:has(.dm-voice):not(:has(.dm-text)) { padding-bottom: 8px; }

/* поле ввода: пустое — микрофон, есть текст — «Отправить»; во время записи — полоса записи */
.dm-input:has(.dm-mic):not(.has-text) .dm-send:not(.dm-mic) { display: none; }
.dm-input.has-text:not(.rec) .dm-mic { display: none; }
.dm-input.rec textarea, .dm-input.rec .dm-att, .dm-input.rec .dm-send:not(.dm-mic) { display: none; }
.dm-mic { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: transform .15s, box-shadow .06s linear; }
.dm-input.rec-hold .dm-mic { transform: scale(1.22); }
.dm-rec { flex: 1; min-width: 0; height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 4px 0 2px; transform: translateX(calc(var(--slide, 0px) * -1)); }
.dm-input.rec-hold .dm-rec-x { display: none; }
.dm-input:not(.rec-hold) .dm-rec-hint { display: none; }
.dm-rec-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #ff4d4d; animation: recdot 1s ease-in-out infinite; }
@keyframes recdot { 50% { opacity: .25; } }
.dm-rec-t { flex: none; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14px; }
.dm-rec-w { flex: 1; min-width: 0; height: 28px; display: flex; align-items: center; justify-content: flex-end; gap: 2px; overflow: hidden; }
.dm-rec-w i { flex: none; width: 3px; border-radius: 2px; background: var(--accent); opacity: .85; }
.dm-rec-hint { flex: none; font-size: 12.5px; color: var(--muted); white-space: nowrap; animation: rechint 1.4s ease-in-out infinite; }
@keyframes rechint { 50% { transform: translateX(-4px); opacity: .6; } }

/* ---- админка: личка ---- */
.adm-dm-row { width: 100%; text-align: left; font: inherit; background: none; cursor: pointer; }
.adm-dm-av { display: flex; flex: none; }
.adm-dm-av > * + * { margin-left: -10px; box-shadow: 0 0 0 2px var(--bg-2); border-radius: 50%; }
.adm-dm-note { margin: -6px 0 10px; }
.adm-dm-view { padding: 0; overflow: hidden; display: flex; flex-direction: column; height: min(78vh, 760px); }
.adm-dm-view .dm-head { flex-wrap: wrap; }
.adm-dm-n { margin-left: auto; }
.adm-dm-scroll { flex: 1; }
.adm-dm-more { display: block; margin: 0 auto 8px; }

/* ---- статистика: период ---- */
.st-span { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

/* ---- скример: окно поверх сайта (не полноэкранный режим), закрывается кликом ---- */
.scream { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: rgba(0, 0, 0, .55); cursor: pointer; animation: scrFade .1s ease-out; }
.scream-box { position: relative; width: min(500px, 86vw, calc(78vh * 400 / 460)); aspect-ratio: 400 / 460; border-radius: 22px; overflow: hidden; background: #000;
  box-shadow: 0 20px 80px rgba(0, 0, 0, .8), 0 0 0 2px rgba(255, 255, 255, .08); animation: scrZoom .3s cubic-bezier(.2, 1.5, .4, 1), scrShake .08s linear .3s 12; }
.scream-box svg, .scream-box img { display: block; width: 100%; height: 100%; object-fit: cover; }
.scream-x { position: absolute; top: 10px; right: 10px; padding: 8px 14px; border-radius: 99px; background: rgba(0, 0, 0, .7); color: #fff; font-weight: 800; font-size: 14px; cursor: pointer; }
.scream-hint { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 10px; text-align: center; font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
@keyframes scrFade { from { opacity: 0; } }
@keyframes scrZoom { from { transform: scale(.15); } }
@keyframes scrShake { 25% { transform: translate(-6px, 3px) rotate(-1deg); } 75% { transform: translate(6px, -3px) rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { .scream, .scream-box { animation: none; } }
.scr-prev { width: 150px; aspect-ratio: 400 / 460; border-radius: 14px; overflow: hidden; background: #000; }
.scr-prev svg, .scr-prev img { display: block; width: 100%; height: 100%; object-fit: cover; }
.scr-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.scr-btns label.btn { cursor: pointer; }
.scr-online h3 { margin: 0 0 8px; }
.scr-online .st-u .txt { flex: 1; min-width: 0; }
.scr-open { color: #39d98a; font-weight: 700; }

/* ---- реакции 7TV-эмоутами ---- */
.reacts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.reacts.sm { margin-top: 0; gap: 4px; }
.rx { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 9px 0 6px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--bg-3); color: var(--text-2); font-weight: 800; font-size: 13px; cursor: pointer; }
.rx img { height: 22px; width: auto; max-width: 44px; object-fit: contain; }
.rx:hover { border-color: #55513f; color: var(--text); }
.rx.on { border-color: var(--accent); background: rgba(255, 201, 23, .14); color: var(--accent); }
.rx.add { padding: 0 8px; color: var(--muted); }
.rx.add .ico { width: 17px; height: 17px; }
.reacts.sm .rx { height: 26px; font-size: 12px; }
.reacts.sm .rx img { height: 18px; }
.reacts.sm .rx.add { border-color: transparent; background: none; }
.rx-pick { position: fixed; z-index: 110; max-height: 320px; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 16px; background: var(--bg-3); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.rx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; overflow-y: auto; }
.rx-grid button { height: 44px; display: grid; place-items: center; border-radius: 10px; background: none; cursor: pointer; }
.rx-grid button:hover { background: var(--bg-4, rgba(255, 255, 255, .08)); }
.rx-grid img { max-height: 34px; max-width: 40px; object-fit: contain; }

/* ---- опросы ---- */
.poll { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.poll-q { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 2px; }
.poll-q .ico { width: 16px; height: 16px; color: var(--accent); }
.poll-o { position: relative; display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-3); color: var(--text); font: inherit; font-weight: 700; text-align: left; cursor: pointer; overflow: hidden; }
.poll-o:not(.res):hover { border-color: var(--accent); }
.poll-bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255, 201, 23, .14); transition: width .35s ease; }
.poll-o.my .poll-bar { background: rgba(255, 201, 23, .3); }
.poll-o.my { border-color: var(--accent); }
.poll-t { position: relative; flex: 1; display: flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.poll-t .ico { width: 16px; height: 16px; color: var(--accent); }
.poll-p { position: relative; font-variant-numeric: tabular-nums; }
.poll-meta { font-size: 12.5px; color: var(--muted); }
.poll-field #pollBox { display: flex; flex-direction: column; gap: 8px; }
.poll-opts { display: flex; flex-direction: column; gap: 6px; }
.poll-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.repost-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 14px; border-radius: 14px; background: rgba(255, 201, 23, .1); border: 1px solid rgba(255, 201, 23, .3); font-size: 14px; }
.repost-note .ico { flex: none; color: var(--accent); }

/* ---- жалобы ---- */
.rep-ov { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: rgba(5, 5, 7, .7); }
.rep-box { width: min(440px, 100%); max-height: 90vh; overflow-y: auto; margin: 0; }
.rep { padding: 14px 16px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px; }
.rep.closed { opacity: .65; }
.rep-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rep-at { margin-left: auto; }
.pill.warn { background: rgba(255, 77, 77, .18); color: #ff8a8a; }
.rep-who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.rep-note { font-style: italic; color: var(--text-2); }
.rep-prev { padding: 10px 12px; border-radius: 12px; background: var(--bg-3); display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere; max-height: 220px; overflow: hidden; }
.rep-img { max-width: 220px; max-height: 160px; border-radius: 10px; object-fit: cover; }
.rep-act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rep-act .spacer { flex: 1; }

/* ---- личка: действия над сообщением, удалённое, блокировка ---- */
.dm-acts { position: absolute; top: 50%; transform: translateY(-50%); right: calc(100% + 6px); display: none; gap: 4px; }
.dm-msg:not(.me) .dm-acts { right: auto; left: calc(100% + 6px); }
.dm-msg:hover .dm-acts, .dm-msg.acts-on .dm-acts { display: flex; }
.dm-acts button { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--line-2); color: var(--text-2); cursor: pointer; }
.dm-acts button:hover { color: var(--accent); border-color: var(--accent); }
.dm-acts .ico { width: 15px; height: 15px; }
.dm-del { font-style: italic; opacity: .7; }
.dm-block { margin-left: auto; }
@media (max-width: 560px) { .dm-block span { display: none; } }

/* ---- видео-кружочки ---- */
.dm-msg:has(.dm-circle) { background: none; border-color: transparent; padding: 0 0 18px; }
.dm-msg.me:has(.dm-circle) { color: var(--text); }
.dm-circle { position: relative; width: 210px; height: 210px; border-radius: 50%; overflow: hidden; background: #000; cursor: pointer; box-shadow: 0 0 0 3px var(--line-2); }
.dm-circle.snd { box-shadow: 0 0 0 3px var(--accent); }
.dm-circle video { width: 100%; height: 100%; object-fit: cover; display: block; }
.circ-t { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 2px 8px; border-radius: 99px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.circ-snd { position: absolute; right: 22px; top: 22px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; }
.circ-snd .ico { width: 15px; height: 15px; }
.circ-ov { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; background: rgba(5, 5, 7, .86); backdrop-filter: blur(6px); }
.circ-box { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 16px; }
.circ-ring { --p: 0; width: min(300px, 76vw); aspect-ratio: 1; border-radius: 50%; padding: 6px; background: conic-gradient(var(--accent) calc(var(--p) * 360deg), rgba(255, 255, 255, .12) 0); }
.circ-ring video { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; transform: scaleX(-1); background: #000; display: block; }
.circ-t2 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-variant-numeric: tabular-nums; }
.circ-btns { display: flex; gap: 10px; }

/* ---- таймлапс Pixel Battle ---- */
.tl-ov { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 12px; background: rgba(5, 5, 7, .85); backdrop-filter: blur(6px); }
.tl-box { width: min(640px, 100%); max-height: 100%; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); }
.tl-head { display: flex; align-items: center; justify-content: space-between; }
.tl-head b { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); }
.tl-stage { position: relative; display: grid; place-items: center; background: #0b0a08; border-radius: 12px; overflow: hidden; }
.tl-stage canvas { width: 100%; max-height: 62vh; aspect-ratio: 1; object-fit: contain; image-rendering: pixelated; display: block; }
.tl-stage .loader { position: absolute; }
.tl-lbl { font-size: 13px; color: var(--text-2); min-height: 18px; }
.tl-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-ctl input[type=range] { flex: 1; min-width: 120px; accent-color: var(--accent); }
.tl-ctl select { width: auto; height: 34px; padding: 0 8px; }
.tl-note { margin: 0; font-size: 12px; }
.dm-del-tag { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 4px; padding: 1px 8px; border-radius: 99px; background: rgba(255, 77, 77, .2); color: #ff9a9a; font-size: 11.5px; font-weight: 800; }
.dm-msg.me .dm-del-tag { background: rgba(0, 0, 0, .18); color: #7a0000; }
.dm-del-tag .ico { width: 12px; height: 12px; }

/* кнопки у сообщения не пропадают по пути к ним: между пузырём и кнопками нет щели (отступ — внутри блока кнопок) */
.dm-acts { right: 100%; padding: 8px 6px; }
.dm-msg:not(.me) .dm-acts { right: auto; left: 100%; }
.dm-msg { overflow: visible; }

/* реакции в личке — внутри пузыря, над временем */
.reacts.dm { margin: 6px 0 0; gap: 4px; }
.dm-msg:has(.reacts.dm) { padding-bottom: 22px; }
.reacts.dm .rx { height: 26px; font-size: 12px; padding: 0 8px 0 5px; background: rgba(255, 255, 255, .08); }
.reacts.dm .rx img { height: 18px; }
.dm-msg.me .reacts.dm .rx { background: rgba(0, 0, 0, .14); border-color: rgba(0, 0, 0, .18); color: var(--on-accent); }
.dm-msg.me .reacts.dm .rx.on { background: rgba(0, 0, 0, .3); border-color: var(--on-accent); }
.dm-msg:has(.dm-circle) .reacts.dm { justify-content: center; }

/* ---- магазин (скоро) ---- */
.shop-hero { position: relative; overflow: hidden; padding: 28px 24px; margin-bottom: 14px; }
.shop-glow { position: absolute; inset: -40% -10% auto auto; width: 70%; height: 180%; background: radial-gradient(closest-side, rgba(255, 201, 23, .25), transparent); pointer-events: none; }
.shop-title { position: relative; display: flex; align-items: center; gap: 10px; margin: 8px 0 8px; font: 800 30px var(--font-display); }
.shop-title .ico { width: 30px; height: 30px; color: var(--accent); }
.shop-hero p { position: relative; max-width: 560px; color: var(--text-2); margin: 0; }
.shop-soon { position: relative; background: var(--accent); color: var(--on-accent); font-weight: 800; }
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .shop-grid { grid-template-columns: 1fr; } }
.shop-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.shop-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.shop-card header b { font: 700 16px var(--font-display); }
.shop-card p { margin: 0; }
.paints { display: flex; flex-direction: column; gap: 6px; }
.paint-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.paint { font: 800 18px var(--font-display); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: paintMove 3s linear infinite; overflow-wrap: anywhere; }
@keyframes paintMove { to { background-position: 200% center; } }
.p-gold { background-image: linear-gradient(90deg, #b8860b, #ffd700, #fff6c2, #ffd700, #b8860b); }
.p-rainbow { background-image: linear-gradient(90deg, #ff4d4d, #ffa64d, #fff04d, #4dff88, #4dc3ff, #a64dff, #ff4d4d); }
.p-neon { background-image: linear-gradient(90deg, #00f0ff, #ff00e6, #00f0ff); text-shadow: 0 0 12px rgba(0, 240, 255, .35); }
.p-lava { background-image: linear-gradient(90deg, #ff2a00, #ff9a00, #ffd000, #ff2a00); }
.p-ice { background-image: linear-gradient(90deg, #a8e6ff, #ffffff, #6ec6ff, #a8e6ff); }
.p-toxic { background-image: linear-gradient(90deg, #7cff00, #00ff9c, #d4ff00, #7cff00); }
@media (prefers-reduced-motion: reduce) { .paint { animation: none; } }
.shop-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.shop-bdg { position: relative; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--bg-3); }
.shop-bdg img { max-width: 40px; max-height: 40px; object-fit: contain; filter: saturate(.6) brightness(.8); }
.shop-lock { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--accent); }
.shop-lock .ico { width: 12px; height: 12px; }
.frames { display: flex; gap: 18px; padding: 6px 4px; }
.frame { display: inline-flex; border-radius: 50%; padding: 4px; }
.fr-gold { background: conic-gradient(#ffd700, #b8860b, #fff6c2, #ffd700); }
.fr-fire { background: conic-gradient(#ff2a00, #ffd000, #ff2a00); animation: frSpin 3s linear infinite; }
.fr-neon { background: #0b0a08; box-shadow: 0 0 0 3px #00f0ff, 0 0 18px #00f0ff, 0 0 30px #ff00e6; }
.fr-fire > * { animation: frSpin 3s linear infinite reverse; }
@keyframes frSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fr-fire, .fr-fire > * { animation: none; } }
.shop-more { margin: 0; padding-left: 18px; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; }

/* ---- админка: оверлей OBS ---- */
.obs-url { display: flex; gap: 8px; }
.obs-url .input { flex: 1; min-width: 0; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.obs-prev { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2);
  background: repeating-conic-gradient(#2a2820 0% 25%, #1c1b15 0% 50%) 0 0 / 22px 22px; }
.obs-prev iframe { display: block; width: 100%; height: 300px; border: 0; background: transparent; }
.obs-prev iframe { color-scheme: normal; } /* та же схема, что у оверлея, — иначе браузер подложит под него белый фон */

/* ================= новогодняя тема (body.ny) ================= */
#nySnow { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 26; pointer-events: none; }
body.pbfull #nySnow, body.dmfull #nySnow { display: none; }
/* шапка Деда Мороза на логотипе */
.ny .logo-mark { position: relative; }
.ny .logo-mark::after { content: ''; position: absolute; left: -9px; top: -17px; width: 38px; height: 32px; transform: rotate(-22deg); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 54'%3E%3Cpath d='M8 42C14 22 30 8 50 9c-5 8-6 19-3 31z' fill='%23e3262f'/%3E%3Cpath d='M20 38c4-13 14-23 26-26' stroke='%23b3141c' stroke-width='3' fill='none' opacity='.55'/%3E%3Crect x='3' y='38' width='50' height='13' rx='6.5' fill='%23f4f6fb'/%3E%3Ccircle cx='52' cy='9' r='7' fill='%23f4f6fb'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); }
/* гирлянда вдоль нижнего края шапки */
.ny-garland { position: absolute; left: 0; right: 0; bottom: -12px; height: 24px; pointer-events: none; overflow: hidden; z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='12'%3E%3Cpath d='M0 2 Q28 13 56 2' stroke='%2346432f' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") repeat-x 0 0 / 56px 12px; }
.ny-garland i { position: absolute; top: 6px; width: 8px; height: 12px; margin-left: -4px; border-radius: 45% 45% 50% 50%; background: var(--c);
  box-shadow: 0 0 6px 2px var(--c), 0 0 14px 3px color-mix(in srgb, var(--c) 45%, transparent); animation: nyBlink 1.65s ease-in-out infinite; }
.ny-garland i::before { content: ''; position: absolute; left: 1px; top: -3px; width: 6px; height: 4px; border-radius: 2px; background: #5b5642; }
@keyframes nyBlink { 50% { opacity: .35; box-shadow: none; } }
/* снег на карточках */
.ny .post, .ny .widget { position: relative; }
.ny .post::before, .ny .widget::before { content: ''; position: absolute; left: 16px; right: 16px; top: -5px; height: 11px; pointer-events: none; z-index: 1;
  background:
    radial-gradient(circle at 9px 11px, #eef3ff 8.5px, transparent 9px) 0 0 / 26px 11px repeat-x,
    radial-gradient(circle at 20px 12px, #f7f9ff 6.5px, transparent 7px) 6px 0 / 31px 11px repeat-x;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3)); opacity: .9; }
.ny .widget.live-alert::before { display: none; }
/* отсчёт до Нового года */
.ny-cd { text-align: center; padding: 16px 14px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, rgba(227, 38, 47, .28), transparent 70%), linear-gradient(160deg, #1c2416, #16150f 60%);
  border-color: rgba(255, 201, 23, .35); }
.ny-cd-h { font: 800 15px var(--font-display); margin-bottom: 10px; }
.ny-cd-sub { color: var(--text-2); font-size: 13px; }
.ny-cd-row { display: flex; justify-content: center; gap: 8px; }
.ny-cd-row span { min-width: 54px; padding: 8px 4px 6px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; }
.ny-cd-row b { font: 800 22px var(--font-display); color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.1; }
.ny-cd-row small { font-size: 11px; color: var(--text-2); }
.ny-cd.ny-feed { display: none; margin-bottom: 14px; }
@media (max-width: 920px) { .ny-cd.ny-feed { display: block; } }
@media (prefers-reduced-motion: reduce) { .ny-garland i { animation: none; } }
@media (max-width: 1180px) { .nav .beta-tag { display: none; } }
/* снег можно катать: курсор-рука над сугробом и комами */
html.ny-grab, html.ny-grab * { cursor: grab !important; }
html.ny-grabbing, html.ny-grabbing * { cursor: grabbing !important; user-select: none !important; }
/* вкладки, которые не влезают: затухание у краёв, куда ещё можно прокрутить */
.tabs.can-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.tabs.can-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px); mask-image: linear-gradient(90deg, transparent, #000 48px); }
.tabs.can-l.can-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
#adminTabs { cursor: grab; }

/* ---- подтверждение номера (Pixel Battle) ---- */
.phone-box { max-width: 460px; }
.phone-box p { margin: 0 0 10px; }
.phone-steps { margin: 0 0 10px; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.phone-wait { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.phone-wait[hidden] { display: none; }
.pbx-place.verify { background: #4da3ff; color: #04142b; cursor: pointer; }
.pbx-place.verify .pbx-ring { opacity: 0; }
.phone-alt { margin: 0 0 10px; line-height: 1.6; }
.phone-alt[hidden] { display: none; }
.phone-code { padding: 2px 8px; border-radius: 6px; background: var(--bg-3); border: 1px solid var(--line-2); font: 700 14px ui-monospace, Consolas, monospace; color: var(--accent); user-select: all; word-break: break-all; }
#phoneGo.disabled { opacity: .7; pointer-events: none; display: inline-flex; align-items: center; gap: 8px; }
