/* Шрифты лежат на нашем сервере (OFL-1.1) — сайт не обращается к Google и другим сторонним сервисам */
@font-face { font-family: Manrope; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(fonts/manrope-cyrillic-wght-normal.woff2) format('woff2-variations'), url(fonts/manrope-cyrillic-wght-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Manrope; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(fonts/manrope-latin-wght-normal.woff2) format('woff2-variations'), url(fonts/manrope-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Unbounded; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(fonts/unbounded-cyrillic-wght-normal.woff2) format('woff2-variations'), url(fonts/unbounded-cyrillic-wght-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Unbounded; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(fonts/unbounded-latin-wght-normal.woff2) format('woff2-variations'), url(fonts/unbounded-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --bg: #0E1012; --bg2: #121518; --card: #14171A; --card2: #1A1E22;
  --line: #1F2328; --line2: #23272C; --line3: #2A2F35;
  --text: #ECEFF1; --text2: #C9CFD4; --muted: #9AA3AB; --muted2: #8A939B;
  --err-bg: #2A1517; --err-line: #5A2328; --err: #FF8A8F; --err-input: #C9454B;
  --accent: #5BE37D; --d1: #2F8A4A; --d2: #1F5C33; --soft: #173322; --ink: #0B1A10;
  --d1-dark: #1F533A; --d2-dark: #173A27;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { color: var(--text); font-family: Manrope, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--text2); } a:hover { color: var(--text); }
button { font-family: inherit; cursor: pointer; }
button:disabled { opacity: .4; cursor: not-allowed; }
input { font-family: inherit; }
input[type=checkbox] { width: 18px; height: 18px; margin: 0; cursor: pointer; accent-color: var(--accent); flex-shrink: 0; }
button:focus-visible, input:focus-visible, a:focus-visible, label:focus-within { outline: 2px solid var(--text); outline-offset: 2px; }
[hidden] { display: none !important; }
.display { font-family: Unbounded, sans-serif; font-weight: 700; }
.app { min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; } /* сдвиг при переходах не даёт горизонтальной прокрутки */
.wrap { max-width: 1200px; width: 100%; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }

/* кнопки */
.btn { height: 44px; padding: 0 18px; border-radius: 12px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.btn-primary { border: 0; background: var(--accent); color: var(--ink); font-weight: 700; }
.btn-primary:hover { color: var(--ink); filter: brightness(1.06); }
.btn-ghost { border: 1px solid var(--line3); background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--card); color: var(--text); }
.btn-soft { height: 40px; padding: 0 16px; border: 1px solid var(--line3); border-radius: 10px; background: var(--card2); color: var(--text); font-size: 14px; font-weight: 600; }
.btn-lg { height: 54px; padding: 0 26px; border-radius: 14px; font-size: 16px; }
.btn-md { height: 50px; padding: 0 24px; border-radius: 14px; font-size: 15px; }
.link-btn { height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--accent); font-size: 14px; font-weight: 700; }

/* шапка */
header.top { border-bottom: 1px solid #1C2024; background: var(--bg); position: relative; z-index: 5; }
header.top .wrap { padding-top: 12px; padding-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.logo { height: 44px; border: 0; background: transparent; color: var(--text); display: flex; align-items: center; gap: 10px; padding: 0 4px; text-decoration: none; }
.logo span { font-family: Unbounded, sans-serif; font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.logo:hover { color: var(--text); }
.cube-a { fill: var(--accent); } .cube-1 { fill: var(--d1); } .cube-2 { fill: var(--d2); }
nav.main { display: flex; gap: 4px; }
nav.main a { height: 44px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; text-decoration: none; }
nav.main a[aria-current=page] { background: #1F2429; color: var(--text); font-weight: 700; }
.spacer { flex: 1; }
.palette { position: relative; }
.palette-btn { height: 44px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 12px; background: var(--card); color: var(--muted); display: flex; align-items: center; gap: 8px; }
.swatch-dot { width: 18px; height: 18px; border-radius: 6px; background: var(--accent); flex-shrink: 0; }
.palette-menu { position: absolute; top: 52px; right: 0; width: 220px; z-index: 20; padding: 6px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line3); box-shadow: 0 16px 40px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 2px; }
.palette-menu .title { padding: 8px 10px 6px; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted2); }
.palette-row { height: 44px; border: 0; border-radius: 10px; padding: 0 10px; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; background: transparent; color: var(--text2); }
.palette-row[aria-pressed=true] { background: #23282E; color: var(--text); }
.palette-row .name { flex: 1; text-align: left; }
.palette-row .check { visibility: hidden; } .palette-row[aria-pressed=true] .check { visibility: visible; }
.auth-btns { display: flex; gap: 8px; }
.user-btn { height: 44px; padding: 0 14px 0 6px; border: 1px solid var(--line2); border-radius: 12px; background: var(--card); color: var(--text); display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; text-decoration: none; }
.user-btn:hover { color: var(--text); }
.avatar-box { width: 32px; height: 32px; border-radius: 8px; background: var(--card2); display: flex; align-items: center; justify-content: center; }
canvas.px { image-rendering: pixelated; image-rendering: crisp-edges; display: block; }

main { flex: 1; display: flex; flex-direction: column; position: relative; z-index: 2; }   /* выпадашки из страницы (смайлы) — поверх подвала */

/* ---------- переходы между страницами ---------- */
:root { --dir: 1; }
:root[data-dir=back] { --dir: -1; }
@keyframes pageOut { to { opacity: 0; transform: translateX(calc(var(--dir) * -24px)); } }
@keyframes pageIn { from { opacity: 0; transform: translateX(calc(var(--dir) * 32px)); } }
@keyframes softIn { from { opacity: 0; transform: translateY(8px); } }

/* View Transitions API: шапка и подвал стоят на месте, меняется только содержимое */
header.top { view-transition-name: cb-header; }
main { view-transition-name: cb-page; }
footer.bottom { view-transition-name: cb-footer; }
/* старая страница уходит, потом приходит новая — без каши из двух страниц */
::view-transition-old(cb-page) { animation: pageOut .15s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(cb-page) { animation: pageIn .34s cubic-bezier(.2, .8, .2, 1) .13s both; }
::view-transition-group(cb-page), ::view-transition-group(cb-footer) { animation-duration: .47s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(cb-header), ::view-transition-new(cb-header) { animation-duration: .25s; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }

/* Запасной вариант для браузеров без View Transitions */
.page-enter { animation: pageIn .38s cubic-bezier(.2, .8, .2, 1) both; }
/* Вкладки кабинета, экраны «письмо отправлено» и т.п. */
.soft-enter { animation: softIn .26s cubic-bezier(.2, .8, .2, 1) both; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .page-enter, .soft-enter { animation: none; }
}
.view { display: flex; flex-direction: column; }

/* главная */
.hero { padding-top: 80px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { margin: 0; font-size: clamp(38px, 5vw, 60px); line-height: 1.08; letter-spacing: -1px; }
.hero p { margin: 0; max-width: 460px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.small-meta { font-size: 13px; color: var(--muted2); }
.hero-art { flex: 1 1 420px; min-width: 0; height: 460px; position: relative; display: flex; align-items: center; justify-content: center; perspective: 1100px; }
.glow { position: absolute; left: 50%; top: 50%; width: 340px; height: 340px; margin: -190px 0 0 -170px; border-radius: 50%; background: var(--accent); opacity: .12; filter: blur(80px); }
.floor-shadow { position: absolute; left: 50%; bottom: 48px; width: 200px; height: 30px; margin-left: -100px; border-radius: 50%; background: #000; opacity: .45; filter: blur(14px); }
.cube { position: relative; transform-style: preserve-3d; }
.cube .spin { position: absolute; inset: 0; transform-style: preserve-3d; }
.cube .f { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; }
.cube-big { width: 210px; height: 210px; }
.cube-big .f { --z: 105px; }
.cube .f.s1 { background: linear-gradient(to bottom, var(--d1) 0%, var(--d1) 55%, var(--d1-dark) 100%); }
.cube .f.s2 { background: linear-gradient(to bottom, var(--d2) 0%, var(--d2) 55%, var(--d2-dark) 100%); }
.cube .f.top { background: var(--accent); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.cube .f.bot { background: var(--bg); }
.cube .f.front { transform: rotateY(0deg) translateZ(var(--z)); }
.cube .f.right { transform: rotateY(90deg) translateZ(var(--z)); }
.cube .f.back { transform: rotateY(180deg) translateZ(var(--z)); }
.cube .f.left { transform: rotateY(-90deg) translateZ(var(--z)); }
.cube .f.top { transform: rotateX(90deg) translateZ(var(--z)); }
.cube .f.bot { transform: rotateX(-90deg) translateZ(var(--z)); }
.cube-mini .f { box-shadow: inset 0 0 0 1px rgba(0,0,0,.28); }
.cube-mini .f.s1 { background: var(--d1); } .cube-mini .f.s2 { background: var(--d2); } .cube-mini .f.bot { background: var(--d2); }
.cube-a1 { position: absolute; right: 9%; top: 12%; width: 54px; height: 54px; } .cube-a1 .f { --z: 27px; }
.cube-a2 { position: absolute; left: 10%; bottom: 24%; width: 34px; height: 34px; } .cube-a2 .f { --z: 17px; }
.cb-l { position: absolute; inset: 0; background: #000; opacity: 0; animation: cbLight 14s linear infinite; }
@keyframes cbSpin { from { transform: rotateX(-26deg) rotateY(0deg); } to { transform: rotateX(-26deg) rotateY(360deg); } }
@keyframes cbSpinR { from { transform: rotateX(32deg) rotateZ(18deg) rotateY(360deg); } to { transform: rotateX(32deg) rotateZ(18deg) rotateY(0deg); } }
@keyframes cbFloat { 0%,100% { transform: translateY(-12px); } 50% { transform: translateY(12px); } }
@keyframes cbShadow { 0%,100% { transform: scale(.82); opacity: .35; } 50% { transform: scale(1); opacity: .6; } }
@keyframes cbLight { 0%,100% { opacity: 0; } 25% { opacity: .25; } 50% { opacity: .45; } 75% { opacity: .25; } }
.cb-spin { animation: cbSpin 14s linear infinite; }
.cb-spin-r { animation: cbSpinR 9s linear infinite; }
.cb-spin-r2 { animation: cbSpinR 6s linear infinite reverse; }
.cb-float { animation: cbFloat 5s ease-in-out infinite; }
.cb-mini { animation: cbFloat 4s ease-in-out infinite reverse; }
.cb-mini2 { animation: cbFloat 3.4s ease-in-out infinite; }
.cb-shadow { animation: cbShadow 5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .cb-spin, .cb-spin-r, .cb-spin-r2, .cb-float, .cb-mini, .cb-mini2, .cb-shadow, .cb-l { animation: none; }
  .cb-spin { transform: rotateX(-26deg) rotateY(-35deg); }
}

.section { padding-top: 24px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 28px; }
h2.h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.5px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.card { padding: 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.card h3 { margin: 0; font-size: 17px; font-weight: 700; }
.card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.icon-tile { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.band { background: var(--bg2); border-top: 1px solid #1C2024; border-bottom: 1px solid #1C2024; }
.band .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps .card { background: var(--bg); }
.num { width: 32px; height: 32px; border-radius: 9px; background: var(--soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; flex-shrink: 0; }
.num.on { background: var(--accent); color: var(--ink); }

/* скачать */
.narrow { max-width: 1000px; }
.page { padding-top: 64px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 28px; }
.page h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.8px; }
.dl-page { max-width: 820px; align-items: stretch; }
.dl-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.dl-os { display: inline-flex; gap: 4px; padding: 4px; margin-top: 6px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.dl-os[hidden] { display: none; }
.dl-os button { height: 34px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.dl-os button:hover { color: var(--text); }
.dl-os button[aria-selected=true] { background: var(--card2); color: var(--text); }
.dl-os button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* большая карточка установщика */
.dl-main { position: relative; overflow: hidden; isolation: isolate; padding: 36px 32px 32px; border-radius: 24px; background: var(--card);
  border: 1px solid var(--line2); box-shadow: 0 30px 80px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.04);
  display: flex; flex-direction: column; align-items: center; gap: 26px; }
/* пиксельная сетка, тающая к краям */
.dl-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 28px 28px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 28%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 28%, #000 20%, transparent 75%); }
.dl-main::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: -1;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .55; }

.dl-stage { position: relative; width: 100%; height: 300px; display: flex; align-items: center; justify-content: center; perspective: 1000px; }
.dl-glow { position: absolute; left: 50%; top: 50%; width: 280px; height: 280px; margin: -160px 0 0 -140px; border-radius: 50%; background: var(--accent); opacity: .16; filter: blur(70px); }
.dl-floor { position: absolute; left: 50%; bottom: 28px; width: 150px; height: 22px; margin-left: -75px; border-radius: 50%; background: #000; opacity: .5; filter: blur(12px); }
.cube-dl { width: 150px; height: 150px; }
.cube-dl .f { --z: 75px; }
.dl-mini1 { position: absolute; right: 22%; top: 16%; width: 40px; height: 40px; } .dl-mini1 .f { --z: 20px; }
.dl-mini2 { position: absolute; left: 23%; bottom: 26%; width: 26px; height: 26px; } .dl-mini2 .f { --z: 13px; }

.dl-file { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; margin-top: -10px; }
.dl-file b { font-size: clamp(26px, 4.5vw, 38px); letter-spacing: -.8px; line-height: 1.1; word-break: break-all; }
.dl-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.dl-chips li { height: 32px; padding: 0 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line2); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.dl-chips li b { font-size: 13px; letter-spacing: 0; color: var(--text); font-weight: 700; font-family: Manrope, system-ui, sans-serif; }

.dl-btn { width: 100%; max-width: 420px; height: 64px; border-radius: 16px; font-size: 18px; gap: 12px;
  box-shadow: 0 16px 44px -14px var(--accent); transition: transform .15s, box-shadow .15s, filter .15s; }
.dl-btn:hover { transform: translateY(-2px); box-shadow: 0 22px 52px -14px var(--accent); }
.dl-btn:active { transform: translateY(0); }

.dl-specs { list-style: none; margin: 4px 0 0; padding: 0; align-self: stretch; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dl-specs li { padding: 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.dl-specs .icon-tile { width: 36px; height: 36px; border-radius: 10px; margin-bottom: 6px; }
.dl-specs .lbl { font-size: 12px; color: var(--muted2); }
.dl-specs b { font-size: 14px; font-weight: 700; }
@media (max-width: 640px) {
  .dl-main { padding: 28px 18px 22px; border-radius: 20px; }
  .dl-stage { height: 220px; }
  .cube-dl { width: 104px; height: 104px; } .cube-dl .f { --z: 52px; }
  .dl-glow { width: 200px; height: 200px; margin: -115px 0 0 -100px; }
  .dl-floor { width: 110px; margin-left: -55px; bottom: 24px; }
  .dl-mini1 { right: 6%; top: 8%; width: 30px; height: 30px; } .dl-mini1 .f { --z: 15px; }
  .dl-mini2 { left: 8%; bottom: 22%; width: 22px; height: 22px; } .dl-mini2 .f { --z: 11px; }
  .dl-specs { grid-template-columns: 1fr; }
  .dl-specs li { flex-direction: row; align-items: center; flex-wrap: wrap; column-gap: 12px; }
  .dl-specs .icon-tile { margin: 0; }
  .dl-specs .lbl { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .dl-btn { transition: none; } .dl-btn:hover { transform: none; } }
.dl-howto { display: flex; flex-direction: column; gap: 14px; padding-top: 12px; }
.dl-howto h2 { margin: 0; font-size: 20px; font-weight: 700; text-align: center; }
.dl-note { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.specs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.specs li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs li:last-child { border-bottom: 0; }
.specs li span:first-child { color: var(--muted); } .specs li span:last-child { font-weight: 600; text-align: right; }
.howto { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; }
.howto li { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--card); font-size: 15px; line-height: 1.5; }
.howto li:last-child { border-bottom: 0; }
.howto .num { width: 30px; height: 30px; border-radius: 8px; font-size: 13px; }

/* формы */
.form-page { flex: 1; padding: 64px 24px 80px; display: flex; justify-content: center; }
.form { width: 100%; max-width: 420px; padding: 32px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.form.wide { max-width: 460px; }
.form h1 { margin: 0; font-size: 28px; letter-spacing: -.5px; }
.form-head { display: flex; flex-direction: column; gap: 8px; }
.form-head p { margin: 0; font-size: 14px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--text2); }
.input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line3); border-radius: 12px; background: var(--bg); color: var(--text); font-size: 15px; }
.input.err { border-color: var(--err-input); }
.pw-wrap { position: relative; } .pw-wrap .input { padding-right: 52px; }
.pw-eye { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.hint { font-size: 12px; color: var(--muted2); } .hint.err { color: var(--err); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; color: var(--text2); cursor: pointer; }
.check.top { align-items: flex-start; line-height: 1.5; } .check.top input { margin-top: 2px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.alert { padding: 12px 14px; border-radius: 12px; background: var(--err-bg); border: 1px solid var(--err-line); color: var(--err); font-size: 14px; }
.submit { height: 52px; border: 0; border-radius: 14px; background: var(--accent); color: var(--ink); font-size: 16px; font-weight: 700; }
.center-note { margin: 0; text-align: center; font-size: 14px; color: var(--muted); }

/* кабинет */
.acc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.acc-ava { width: 88px; height: 88px; border-radius: 20px; background: var(--card2); border: 1px solid var(--line2); display: flex; align-items: center; justify-content: center; }
.acc-name { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; }
.acc-name h1 { margin: 0; font-size: clamp(26px, 3.5vw, 36px); letter-spacing: -.6px; word-break: break-all; }
.acc-sub { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.badge { width: 26px; height: 26px; border-radius: 7px; background: var(--soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; letter-spacing: .3px; }
.tabs { align-self: flex-start; display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.tabs button { height: 40px; padding: 0 18px; border: 0; border-radius: 9px; font-size: 14px; font-weight: 700; background: transparent; color: var(--muted); }
.tabs button[aria-selected=true] { background: #262B31; color: var(--text); }
.seg { display: flex; padding: 3px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line2); }
.seg button { height: 40px; padding: 0 14px; border: 0; border-radius: 9px; font-size: 13px; font-weight: 600; background: transparent; color: var(--muted2); }
.seg button[aria-checked=true] { background: #262B31; color: var(--text); }
.panel { min-width: 0; padding: 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; }
.skin-preview-card { flex: 1 1 340px; padding: 20px; align-items: center; gap: 16px; }
.skin-stage { position: relative; width: 100%; height: 420px; border-radius: 14px; background: var(--bg); border: 1px solid #1C2024; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.skin-stage .glow2 { position: absolute; left: 50%; top: 50%; width: 240px; height: 240px; margin: -150px 0 0 -120px; border-radius: 50%; background: var(--accent); opacity: .08; filter: blur(60px); }
.skin-stage .sh { position: absolute; left: 50%; bottom: 36px; width: 170px; height: 20px; margin-left: -85px; border-radius: 50%; background: #000; opacity: .55; filter: blur(9px); }
.skin-stage canvas { position: relative; }
.skin-stage #skin3d { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; outline: none; }
.skin-stage #skin3d:active { cursor: grabbing; }
.stage-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; background: rgba(20,23,26,.82); border: 1px solid var(--line2); color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none; transition: opacity .4s; }
.stage-hint.gone { opacity: 0; }
.stage-reset { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(20,23,26,.82); color: var(--muted); display: flex; align-items: center; justify-content: center; }
.stage-reset:hover { color: var(--text); background: var(--card2); }
.skin-edit { flex: 1 1 420px; }
.status { height: 28px; padding: 0 10px; border-radius: 8px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; background: var(--soft); color: var(--accent); }
.status.dirty { background: #3A2A12; color: #FFB547; }
.drop { position: relative; min-height: 150px; padding: 20px; border-radius: 14px; border: 1.5px dashed #2F353B; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; cursor: pointer; }
.drop.drag { border-color: var(--accent); background: var(--soft); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.preset { min-height: 96px; padding: 12px; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg); color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 13px; font-weight: 700; }
.preset[aria-pressed=true] { border-color: var(--accent); }
.ok-msg { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text2); }
.settings { padding: 8px 24px; }
.set-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: 0; }
.set-row .lbl { display: flex; flex-direction: column; gap: 2px; }
.set-row .lbl b { font-size: 14px; font-weight: 600; } .set-row .lbl span { font-size: 12px; color: var(--muted2); word-break: break-all; }
.swatches { display: flex; gap: 8px; }
.swatch { width: 36px; height: 36px; border-radius: 10px; border: 0; }
.swatch[aria-pressed=true] { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--sw); }
.inline-form { width: 100%; display: flex; flex-direction: column; gap: 12px; padding-bottom: 4px; }
.inline-form .row-btns .btn { height: 44px; }

/* ---------- документы ---------- */
.doc-page { max-width: 820px; gap: 28px; }
.doc-tabs { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.doc-tabs a { height: 40px; padding: 0 16px; border-radius: 9px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; }
.doc-tabs a:hover { color: var(--text); }
.doc-tabs a[aria-current=page] { background: #262B31; color: var(--text); }
.doc { display: flex; flex-direction: column; color: var(--text2); font-size: 15px; line-height: 1.7; }
.doc-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.doc-head h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.8px; line-height: 1.1; color: var(--text); }
.doc-meta { margin: 0; font-size: 13px; color: var(--muted2); }
.doc-lead { padding: 18px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); margin-bottom: 8px; }
.doc-lead p { margin: 0; }
.doc-lead p + p { margin-top: 8px; }
.doc-lead b { color: var(--text); }
.doc-note { font-size: 13px; color: var(--muted2); }
.doc h2 { margin: 32px 0 10px; font-size: 19px; font-weight: 800; color: var(--text); letter-spacing: -.2px; line-height: 1.3; }
.doc p { margin: 0 0 10px; }
.doc ul { margin: 0 0 12px; padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc li::marker { color: var(--accent); }
.doc a { color: var(--accent); font-weight: 600; text-decoration: none; }
.doc a:hover { text-decoration: underline; }
.doc code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; padding: 2px 6px; border-radius: 6px; background: var(--card2); color: var(--text); }
.ph { padding: 1px 6px; border-radius: 6px; background: #3A2A12; color: #FFB547; font-weight: 600; }
.doc { min-width: 0; }
.doc-table-wrap { min-width: 0; max-width: 100%; overflow-x: auto; margin: 4px 0 12px; border: 1px solid var(--line); border-radius: 14px; }
.doc-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.doc-table th { text-align: left; padding: 12px 14px; background: var(--card); color: var(--muted2); font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.doc-table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.doc-table td:first-child { color: var(--text); font-weight: 700; width: 26%; }
.doc-table td:last-child { width: 26%; color: var(--muted); }
/* на телефоне строки таблицы — карточки */
@media (max-width: 640px) {
  .doc-table-wrap { border: 0; overflow: visible; }
  .doc-table { min-width: 0; }
  .doc-table thead { display: none; }
  .doc-table, .doc-table tbody, .doc-table tr, .doc-table td { display: block; width: auto !important; }
  .doc-table tr { padding: 14px 16px; margin-bottom: 8px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
  .doc-table td { padding: 0; border: 0; }
  .doc-table td:first-child { margin-bottom: 4px; }
  .doc-table td:last-child { margin-top: 6px; font-size: 13px; }
  .doc-table td:last-child::before { content: "Храним: "; color: var(--muted2); }
}
.support-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin-bottom: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line2); text-decoration: none !important; transition: border-color .15s, transform .15s; }
.support-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.support-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.support-text b { font-size: 17px; color: var(--text); }
.support-text span { font-size: 13px; color: var(--muted); font-weight: 500; }
.support-arrow { color: var(--accent); flex-shrink: 0; }
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.faq details[open] { border-color: var(--line3); }
.faq summary { min-height: 52px; padding: 14px 48px 14px 18px; position: relative; display: flex; align-items: center; cursor: pointer; list-style: none; font-weight: 700; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 14px; }
.faq details p { margin: 0; padding: 0 18px 16px; }
@media (prefers-reduced-motion: reduce) { .support-card, .faq summary::after { transition: none; } }

footer.bottom { border-top: 1px solid #1C2024; }
footer.bottom .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: 13px; color: var(--muted2); }
footer.bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; padding: 12px 16px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line3); box-shadow: 0 16px 40px rgba(0,0,0,.5); font-size: 14px; max-width: calc(100% - 32px); }

@media (max-width: 640px) {
  .hero { padding-top: 40px; padding-bottom: 40px; }
  .hero-art { height: 340px; }
  .form { padding: 24px; }
  .form-page { padding: 32px 16px 56px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .skin-stage { height: 360px; }
}

/* ---------- вход в лаунчер ---------- */
.la-box { display: flex; flex-direction: column; gap: 18px; }
.la-box[hidden] { display: none; }
.la-user { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line2); }
.la-user div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.la-user b { font-size: 16px; }
.la-user span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.la-face { width: 48px; height: 48px; border-radius: 10px; background: var(--soft); image-rendering: pixelated; flex: none; }
.la-deny { height: 48px; border-radius: 14px; }
.la-inline { display: inline-flex; align-items: center; height: auto; text-decoration: none; }
.la-center { text-align: center; }
.la-icon { width: 64px; height: 64px; margin: 4px auto 0; border-radius: 18px; display: grid; place-items: center; font-size: 30px; font-weight: 700; background: var(--card2); color: var(--muted); }
.la-icon.ok { background: var(--soft); color: var(--accent); }

/* ---------- сборка по ссылке ---------- */
.sb-box { display: flex; flex-direction: column; gap: 18px; }
.sb-box[hidden] { display: none; }
.sb-code { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line2); }
.sb-code span { font-size: 13px; color: var(--muted); }
.sb-code b { flex: 1; font-size: 22px; letter-spacing: 2px; white-space: nowrap; }
.sb-copy { height: 38px; }
.sb-add { display: flex; flex-direction: column; gap: 8px; }
.sb-open { width: 100%; height: 52px; font-size: 15px; }
.sb-miss { margin: 0; font-size: 13px; color: var(--text2); line-height: 1.5; padding: 10px 12px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line2); }
.sb-miss[hidden] { display: none; }
.sb-files summary { cursor: pointer; font-size: 14px; color: var(--muted); }
.sb-files ul { margin: 10px 0 0; padding-left: 18px; max-height: 260px; overflow: auto; font-size: 13px; color: var(--text2); line-height: 1.7; }

/* ---------- кабинет: профиль ---------- */
.prof-card { gap: 0; padding: 0; overflow: hidden; }
.prof-banner { position: relative; height: clamp(130px, 24vw, 230px); background: #22272C; }
.prof-banner canvas, .prof-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.prof-banner-img { background-size: cover; background-position: center; image-rendering: auto; }
.prof-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.43)); pointer-events: none; }
.prof-row { display: flex; align-items: flex-end; gap: 16px; padding: 0 22px; margin-top: -72px; position: relative; z-index: 1; }
.prof-body { width: 64px; height: 128px; filter: drop-shadow(0 6px 6px rgba(0,0,0,.45)); }
.prof-name { display: flex; flex-direction: column; gap: 2px; padding-bottom: 8px; }
.prof-name b { font-size: 22px; font-weight: 800; }
.prof-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 16px 22px 22px; }
.prof-stats div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: #22272C; }
.prof-stats span { font-size: 12px; color: var(--muted); font-weight: 600; }
.prof-stats b { font-size: 16px; font-weight: 800; }
.prof-bgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.prof-bg { position: relative; padding: 0; border: 2px solid transparent; border-radius: 12px; background: #22272C; overflow: hidden; aspect-ratio: 10 / 3; cursor: pointer; }
.prof-bg canvas, .prof-bg i { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.prof-bg i { background-size: cover; background-position: center; image-rendering: auto; }
.prof-bg span { position: absolute; left: 6px; bottom: 4px; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.prof-bg:hover { border-color: rgba(255,255,255,.45); }
.prof-bg[aria-checked=true] { border-color: var(--accent); }
.prof-bg:disabled { opacity: .6; cursor: progress; }
@media (max-width: 560px) { .prof-row { margin-top: -56px; } .prof-body { width: 48px; height: 96px; } .prof-stats { padding: 12px 14px 16px; } }
.prof-bio { margin: 14px 22px 0; padding: 10px 14px; border-radius: 14px; background: #1C2024; border: 1px solid #2A2F35; font-size: 14px; line-height: 1.5; color: var(--text2, #C9CFD4); white-space: pre-line; overflow-wrap: anywhere; }
.prof-bio-input { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; line-height: 1.5; font: inherit; font-size: 14px; }
.status:empty { display: none; }
.bio-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.bio-link:hover { filter: brightness(1.2); }
.prof-bg-del { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: rgba(10,12,14,.75); color: #fff; z-index: 1; }
.prof-bg-del:hover, .prof-bg-del:focus-visible { background: #C42B1C; outline: none; }
.link-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.6); }
.link-modal[hidden] { display: none; }
.link-card { width: min(460px, 100%); display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line2, #2A2F35); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.link-card h3 { margin: 0; font-size: 18px; font-weight: 800; }
.link-card p { margin: 0; font-size: 13px; line-height: 1.5; }
.link-url { display: block; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line3, #30353B); color: var(--accent); font-size: 13px; line-height: 1.45; word-break: break-all; user-select: all; }
.link-card .row-btns { justify-content: flex-end; }
.prof-bg .prof-bg-del { left: auto; bottom: auto; top: 4px; right: 4px; font-size: 0; text-shadow: none; }

/* ---------- браузер скинов ---------- */
.sk-page { padding-top: 48px; gap: 18px; }
.sk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sk-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sk-search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line3); color: var(--muted); }
.sk-search:focus-within { border-color: var(--accent); }
.sk-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--text); font-size: 15px; outline: none; }
.sk-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.sk-chip { height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); color: var(--muted); font-size: 13px; font-weight: 700; }
.sk-chip:hover { color: var(--text); }
.sk-chip[aria-checked=true] { background: var(--soft); border-color: var(--accent); color: var(--accent); }
.sk-colors { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sk-color { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,.12); padding: 0; }
.sk-color:hover { transform: scale(1.1); }
.sk-color[aria-checked=true] { outline: 2px solid var(--accent); outline-offset: 2px; }
.sk-color.any { background: conic-gradient(#E5484D, #F2C94C, #46A758, #2EC4C9, #3E7BFA, #8E4EC6, #E96BB0, #E5484D); }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sk-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-align: center; cursor: pointer; overflow: hidden; }
.sk-card:hover, .sk-card:focus-visible { border-color: var(--accent); }
.sk-card.ph { height: 236px; background: linear-gradient(90deg, var(--card) 0%, #1A1E22 50%, var(--card) 100%); background-size: 200% 100%; animation: skph 1.2s linear infinite; cursor: default; }
@keyframes skph { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-stage { width: 100%; height: 150px; display: grid; place-items: center; border-radius: 12px; background: radial-gradient(circle at 50% 60%, var(--soft), transparent 70%); }
.sk-stage canvas { height: 128px; width: auto; filter: drop-shadow(0 6px 6px rgba(0,0,0,.4)); }
.sk-card.broken .sk-stage::after { content: "нет превью"; font-size: 12px; color: var(--muted); }
.sk-name { max-width: 100%; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-meta { font-size: 12px; color: var(--muted); }
.sk-apply { position: absolute; left: 18px; right: 18px; top: 122px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: var(--ink); font-size: 13px; font-weight: 800; opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s; }
.sk-card:hover .sk-apply, .sk-card:focus-visible .sk-apply { opacity: 1; transform: none; }
.sk-empty { padding: 40px 0; text-align: center; color: var(--muted); }
.sk-more { display: flex; justify-content: center; }
.sk-credit { font-size: 12px; text-align: center; margin: 8px 0 0; }
.sk-credit a { color: var(--muted); text-decoration: underline; }
.sk-card-big { width: min(520px, 100%); }
.sk-big-stage { display: flex; justify-content: center; gap: 40px; padding: 18px; border-radius: 14px; background: radial-gradient(circle at 50% 60%, var(--soft), var(--bg) 75%); }
.sk-big-stage canvas { height: 224px; width: auto; filter: drop-shadow(0 8px 8px rgba(0,0,0,.45)); }
@media (hover: none) { .sk-apply { opacity: 1; transform: none; position: static; width: 100%; margin-top: 6px; } }
@media (max-width: 560px) { .sk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sk-big-stage canvas { height: 170px; } }

/* ---------- панель скина справа ---------- */
body.no-scroll { overflow: hidden; }
.skd-back { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .25s; }
.skd-back.on { opacity: 1; }
.skd { position: fixed; top: 0; right: 0; bottom: 0; z-index: 201; width: min(460px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 20px; overflow-y: auto;
  background: var(--card); border-left: 1px solid var(--line2, #2A2F35); box-shadow: -24px 0 60px rgba(0,0,0,.45);
  transform: translateX(104%); transition: transform .28s cubic-bezier(.22,.8,.3,1); }
.skd.on { transform: none; }
.skd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.skd-head h2 { margin: 0 0 4px; font-size: 22px; font-weight: 800; overflow-wrap: anywhere; }
.skd-x { flex: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line3, #30353B); background: var(--card2, #1A1E22); color: var(--muted); display: grid; place-items: center; }
.skd-x:hover { color: var(--text); }
.skd-stage { position: relative; flex: none; height: min(56vh, 460px); min-height: 300px; border-radius: 16px; overflow: hidden; background: #22272C; }
.skd-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.skd-3d { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; outline: none; }
.skd-3d:active { cursor: grabbing; }
.skd-3d:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.skd-flat { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 36px; }
.skd-flat[hidden] { display: none; }
.skd-flat canvas { height: 62%; width: auto; filter: drop-shadow(0 8px 8px rgba(0,0,0,.45)); }
.skd-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); }
.skd-stage .stage-reset { position: absolute; top: 10px; right: 10px; }
.skd-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.skd-bgs { display: flex; gap: 6px; flex-wrap: wrap; }
.skd-bgb { width: 30px; height: 30px; padding: 0; border-radius: 9px; overflow: hidden; border: 2px solid transparent; background: none; }
.skd-bgb canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.skd-bgb:hover { border-color: rgba(255,255,255,.45); }
.skd-bgb[aria-checked=true] { border-color: var(--accent); }
.skd-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.skd-actions .btn { height: 48px; width: 100%; font-size: 15px; justify-content: center; }
.skd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.skd-soon { opacity: .55; cursor: default; }
.skd-badge { margin-left: 8px; padding: 2px 8px; border-radius: 10px; background: var(--soft); color: var(--accent); font-size: 11px; font-weight: 800; }
@media (max-width: 560px) { .skd { padding: 16px; } .skd-stage { height: 48vh; min-height: 260px; } }
@media (prefers-reduced-motion: reduce) { .skd, .skd-back { transition: none; } }

/* ---------- «точно поставить?» ---------- */
#askModal { z-index: 300; }                 /* выше панели скина справа */
.ask-card { width: min(500px, 100%); }
.ask-row { display: flex; gap: 16px; align-items: center; }
.ask-skin { flex: 0 0 auto; width: 72px; height: 112px; display: grid; place-items: center; border-radius: 12px; background: radial-gradient(circle at 50% 40%, rgba(46,204,113,.16), transparent 70%), var(--bg); border: 1px solid var(--line3, #30353B); }
.ask-skin canvas { width: 40px; height: 80px; }
.ask-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ask-text p { word-break: break-word; }

/* ---------- последние скины ---------- */
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.rec-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 6px 8px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line3, #30353B); color: var(--text); cursor: pointer; font: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.rec-card:hover { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,204,113,.12); transform: translateY(-1px); }
.rec-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rec-card canvas { width: 32px; height: 64px; }
.rec-card .rec-name { max-width: 100%; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-card.current { border-color: var(--accent); cursor: default; transform: none; }
.rec-card .rec-badge { position: absolute; top: 6px; left: 6px; padding: 2px 6px; border-radius: 6px; background: var(--accent); color: var(--ink); font-size: 10px; font-weight: 800; }
.rec-card.busy { opacity: .6; pointer-events: none; }
.rec-del { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 7px; border: 0; background: rgba(0,0,0,.55); color: var(--muted); font-size: 14px; line-height: 22px; cursor: pointer; opacity: 0; transition: opacity .15s, color .15s; }
.rec-card:hover .rec-del, .rec-del:focus-visible { opacity: 1; }
.rec-del:hover { color: #FF6B6B; }
@media (hover: none) { .rec-del { opacity: 1; } }
.rec-empty { grid-column: 1 / -1; font-size: 13px; color: var(--muted2); padding: 6px 0; }

/* ---------- друзья и публичные профили ---------- */
.nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 6px; background: var(--accent); color: var(--ink); font-size: 11px; font-weight: 800; vertical-align: 1px; }
.nav-badge[hidden] { display: none; }
.fr-search { flex: 0 0 auto; }
.fr-mine { display: flex; flex-direction: column; gap: 28px; }
.fr-mine[hidden] { display: none; }
.fr-block { display: flex; flex-direction: column; gap: 10px; }
.fr-block[hidden] { display: none; }
.fr-h { margin: 0; font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.fr-count { font-size: 13px; font-weight: 700; color: var(--muted2); }
.fr-list { display: flex; flex-direction: column; gap: 8px; }
.fr-empty { font-size: 14px; color: var(--muted2); padding: 4px 2px; }
.fr-guest { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.fr-row { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); transition: border-color .15s; }
.fr-row:hover { border-color: var(--line3, #30353B); }
.fr-ava { flex: 0 0 auto; position: relative; width: 40px; height: 40px; border-radius: 10px; overflow: hidden; background: #22272C; }
.fr-ava canvas { width: 40px; height: 40px; display: block; }
.fr-ava.on::after { content: ""; position: absolute; right: 2px; bottom: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--card); }
.fr-who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; color: var(--text); text-decoration: none; }
.fr-who b { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-who span { font-size: 13px; color: var(--muted2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-who:hover b { color: var(--accent); }
.fr-acts { flex: 0 0 auto; display: flex; gap: 8px; align-items: center; }
.fr-acts .btn { height: 36px; padding: 0 14px; font-size: 13px; }
.fr-tag { display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--muted); padding: 0 4px; white-space: nowrap; }
.fr-tag.ok { color: var(--accent); }
.btn-danger:hover { color: #FF6B6B; border-color: #6B2A2A; }
@media (max-width: 560px) { .fr-row { flex-wrap: wrap; } .fr-acts { width: 100%; justify-content: flex-end; } }

.up-page { max-width: 860px; gap: 16px; }
.up-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; }
.up-back:hover { color: var(--text); }
.up-row { flex-wrap: wrap; }
.up-row .prof-name { flex: 1 1 auto; min-width: 0; }
.up-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; margin-left: auto; }
.up-actions .btn { height: 42px; padding: 0 18px; font-size: 14px; }
.up-online { color: var(--accent); font-weight: 700; }
.up-missing { align-items: flex-start; }
.prof-public { color: var(--accent); font-weight: 700; text-decoration: none; }
.prof-public:hover { text-decoration: underline; }
.btn-danger-solid { background: #D9473A; color: #fff; }
.btn-danger-solid:hover { background: #E85A4D; }

/* ---------- последние версии в профиле ---------- */
.ver-wrap { display: flex; flex-direction: column; gap: 8px; padding: 0 22px 22px; margin-top: -6px; }
.ver-wrap[hidden] { display: none; }
.ver-h { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted2); }
.ver-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.ver-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #22272C; }
.ver-row b { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ver-row span { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }


/* ---------- плитки мини-профилей ---------- */
.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.pt-card { position: relative; display: flex; flex-direction: column; border-radius: 16px; background: var(--card); border: 1px solid var(--line); overflow: hidden; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.pt-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.pt-ban { position: relative; height: 72px; background: #22272C; }
.pt-ban canvas, .pt-ban i { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.pt-ban i { background-size: cover; background-position: center; }
.pt-ban::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.45)); }
.pt-fig { position: absolute; left: 14px; top: 22px; width: 48px; height: 96px; filter: drop-shadow(0 5px 5px rgba(0,0,0,.45)); z-index: 1; }
.pt-dot { position: absolute; left: 54px; top: 106px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--card); z-index: 2; }
.pt-dot[hidden] { display: none; }
.pt-info { display: flex; flex-direction: column; gap: 2px; min-height: 52px; padding: 8px 12px 0 74px; }
.pt-nick { font-size: 15px; font-weight: 800; color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-card:hover .pt-nick { color: var(--accent); }
.pt-info span { font-size: 12px; color: var(--muted2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 12px; margin-top: auto; }
.pt-acts .btn { flex: 1 1 auto; height: 34px; padding: 0 10px; font-size: 13px; }
.pt-acts .fr-tag { flex: 1 1 auto; text-align: center; padding: 8px 0; font-size: 13px; }
.fr-home { display: flex; flex-direction: column; gap: 28px; }
.fr-home[hidden] { display: none; }
@media (max-width: 440px) { .pt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .pt-fig { left: 8px; } .pt-info { padding-left: 62px; } .pt-dot { left: 46px; } }

/* ---------- меню аккаунта в шапке ---------- */
.umenu { position: relative; }
.umenu[hidden] { display: none; }
button.user-btn { font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.user-btn .um-caret { color: var(--muted); transition: transform .15s; margin-left: -2px; }
.user-btn[aria-expanded=true] .um-caret { transform: rotate(180deg); }
.user-btn[aria-expanded=true], .user-btn:hover { border-color: var(--line3); }
.um-menu { width: 230px; }
.um-item { height: 42px; border: 0; border-radius: 10px; padding: 0 10px; display: flex; align-items: center; gap: 12px; font: inherit; font-size: 14px; font-weight: 600; background: transparent; color: var(--text2); text-decoration: none; cursor: pointer; text-align: left; }
.um-item svg { color: var(--muted); flex-shrink: 0; }
.um-item .name { flex: 1; }
.um-item:hover, .um-item:focus-visible { background: #23282E; color: var(--text); outline: none; }
.um-item:hover svg { color: var(--accent); }
.um-item[aria-disabled=true] { cursor: default; color: var(--muted2); }
.um-item[aria-disabled=true]:hover { background: transparent; color: var(--muted2); }
.um-item[aria-disabled=true]:hover svg { color: var(--muted); }
.um-soon { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--soft); color: var(--accent); }
.um-sep { height: 1px; margin: 4px 6px; background: var(--line3); }
.um-out:hover { color: #FF7A6E; }
.um-out:hover svg { color: #FF7A6E; }
@media (max-width: 520px) { .user-btn [data-nick] { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }

/* ---------- свой профиль: правка прямо на месте ---------- */
.up-pen { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid rgba(255,255,255,.14); background: rgba(12,14,16,.72); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none; backdrop-filter: blur(6px); transition: background .15s, border-color .15s, color .15s; }
.up-pen:hover, .up-pen:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--ink); outline: none; }
.up-pen[hidden] { display: none; }
.up-pen-bg { position: absolute; top: 12px; right: 12px; z-index: 2; height: 34px; padding: 0 12px; border-radius: 10px; }
.up-pen-bg[aria-expanded=true] { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.up-fig { position: relative; flex: 0 0 auto; }
.up-pen-skin { position: absolute; right: -10px; bottom: 2px; width: 30px; height: 30px; border-radius: 50%; padding: 0; }
.up-biowrap { position: relative; }
.up-biowrap[hidden] { display: none; }
.up-biowrap .prof-bio { padding-right: 44px; }
.up-pen-bio { position: absolute; top: 21px; right: 29px; width: 30px; height: 30px; border-radius: 9px; padding: 0; background: #262B31; border-color: #353B42; color: var(--muted); }
.up-bio-add { margin: 14px 22px 0; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line3); background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; transition: border-color .15s, color .15s; }
.up-bio-add:hover, .up-bio-add:focus-visible { border-color: var(--accent); color: var(--text); outline: none; }
.up-bio-add[hidden] { display: none; }
.up-bioedit { display: flex; flex-direction: column; gap: 8px; margin: 14px 22px 0; }
.up-bioedit[hidden] { display: none; }
.up-bioedit .row-btns { gap: 8px; }
.up-bgpanel { display: flex; flex-direction: column; gap: 12px; margin: 16px 22px 0; padding: 16px; border-radius: 14px; background: #1C2024; border: 1px solid #2A2F35; }
.up-bgpanel[hidden] { display: none; }
.up-sec { font-size: 15px; font-weight: 800; }
@media (max-width: 520px) { .up-pen-bg span { display: none; } .up-pen-bg { width: 34px; padding: 0; } }

/* ---------- вкладки своего профиля и настройки ---------- */
.up-tabs { align-self: flex-start; }
.up-pane { width: 100%; }
.priv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 4px; }
.priv-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.priv .set-row .lbl { flex: 1 1 260px; min-width: 0; }
.priv .set-row .lbl span { word-break: normal; overflow-wrap: anywhere; }
.priv .seg button:disabled { cursor: default; }
.priv .alert { margin: 0 0 16px; }
@media (max-width: 560px) { .priv .seg { width: 100%; } .priv .seg button { flex: 1; padding: 0 8px; } }
.priv .set-row:nth-last-child(2) { border-bottom: 0; }

/* ---------- капча «я не робот» ---------- */
.cap { display: flex; flex-direction: column; gap: 6px; }
.cap-box { display: flex; align-items: center; gap: 12px; width: 100%; height: 64px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line3); background: var(--bg); color: var(--text); font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; transition: border-color .15s; }
.cap-box:hover, .cap-box:focus-visible { border-color: var(--accent); outline: none; }
.cap-check { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 7px; border: 2px solid var(--muted2); background: var(--card); display: grid; place-items: center; transition: background .15s, border-color .15s; }
.cap.done .cap-check { border-color: var(--accent); background: var(--accent); }
.cap.done .cap-check::after { content: ""; width: 12px; height: 7px; border-left: 2.6px solid var(--ink); border-bottom: 2.6px solid var(--ink); transform: translateY(-2px) rotate(-45deg); }
.cap.done .cap-box { cursor: default; border-color: var(--line3); }
.cap-label { flex: 1; }
.cap-brand { display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--muted2); font-size: 10px; font-weight: 700; letter-spacing: .4px; }
.cap-brand svg { color: var(--accent); }
.cap-err { margin: 0; }
#capModal { z-index: 320; }
.cap-card { width: auto; max-width: calc(100vw - 32px); gap: 14px; padding: 18px; }
.cap-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cap-head h3 { margin: 0 0 4px; font-size: 17px; }
.cap-head p { margin: 0; max-width: 260px; }
.cap-icon { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line3); background: transparent; color: var(--muted); cursor: pointer; }
.cap-icon:hover, .cap-icon:focus-visible { color: var(--text); border-color: var(--accent); outline: none; }
.cap-stage { position: relative; width: 300px; height: 170px; max-width: 100%; border-radius: 12px; overflow: hidden; background: #1C2024; user-select: none; touch-action: none; }
.cap-stage img { position: absolute; left: 0; top: 0; image-rendering: pixelated; pointer-events: none; }
#capBg { width: 100%; height: 100%; }
#capPiece { filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.cap-load { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: var(--muted); }
.cap-track { position: relative; width: 300px; max-width: 100%; height: 44px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line3); overflow: hidden; touch-action: none; }
.cap-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 22px; background: var(--soft); }
.cap-track-text { position: absolute; inset: 0; display: grid; place-items: center; padding-left: 40px; font-size: 13px; font-weight: 600; color: var(--muted2); pointer-events: none; transition: opacity .2s; }
.cap-handle { position: absolute; left: 0; top: 0; width: 44px; height: 42px; border: 0; border-radius: 10px; background: var(--accent); color: var(--ink); display: grid; place-items: center; cursor: grab; touch-action: none; }
.cap-handle:active { cursor: grabbing; }
.cap-handle:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; }
.cap-track.ok { border-color: var(--accent); }
.cap-track.bad { border-color: #E5484D; }
.cap-track.bad .cap-handle { background: #E5484D; color: #fff; }
.cap-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.cap-msg { font-size: 13px; font-weight: 600; color: var(--muted); }
.cap-msg.ok { color: var(--accent); } .cap-msg.bad { color: #FF7A6E; }
@media (max-width: 380px) { .cap-stage, .cap-track { width: 300px; } .cap-card { padding: 14px; } }

/* ---------- почта подтверждена ---------- */
.vbadge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; vertical-align: 1px; background: #3A2A12; color: #FFB547; }
.vbadge.ok { background: var(--soft); color: var(--accent); }
.vbadge[hidden] { display: none; }
.up-vbadge { position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 8px; font-size: 12px; font-weight: 700; background: rgba(12,14,16,.72); color: var(--muted); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); }
.up-vbadge.ok { color: var(--accent); }
.up-vbadge[hidden] { display: none; }
#verifyIcon.ok { background: var(--soft); color: var(--accent); }
#verifyIcon.bad { background: #3A1A1A; color: #FF7A6E; }

/* ---------- комментарии ---------- */
.up-comments { gap: 16px; }
.up-comments[hidden] { display: none; }
.cm-title { margin: 0; font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.cm-compose:empty { display: none; }
.cm-form { display: flex; flex-direction: column; gap: 8px; }
.cm-input { height: auto; min-height: 64px; padding: 10px 12px; resize: vertical; font: inherit; font-size: 14px; line-height: 1.5; }
.cm-form-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cm-form-row .btn { height: 38px; padding: 0 16px; font-size: 14px; }
.cm-cnt { font-size: 12px; }
.cm-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #1C2024; border: 1px solid #2A2F35; font-size: 14px; color: var(--text2, #C9CFD4); }
.cm-note .btn { height: 36px; padding: 0 14px; font-size: 13px; }
.cm-list { display: flex; flex-direction: column; }
.cm-thread { padding: 14px 0; border-top: 1px solid var(--line); }
.cm-thread:first-child { border-top: 0; padding-top: 4px; }
.cm-item { display: flex; gap: 12px; }
.cm-item.reply { margin-top: 12px; }
.cm-replies { margin-left: 48px; display: flex; flex-direction: column; }
.cm-replies > .cm-form { margin-top: 12px; }
.cm-replies > .small-meta { font-size: 12px; margin-top: 8px; }
.cm-ava { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 9px; overflow: hidden; background: #22272C; }
.cm-item.reply .cm-ava { width: 28px; height: 28px; border-radius: 7px; }
.cm-ava canvas { width: 100%; height: 100%; display: block; }
.cm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cm-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cm-nick { font-size: 14px; font-weight: 800; color: var(--text); text-decoration: none; }
.cm-nick:hover { color: var(--accent); }
.cm-time { font-size: 12px; color: var(--muted2); }
.cm-body { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text2, #C9CFD4); white-space: pre-wrap; overflow-wrap: anywhere; }
.cm-acts { display: flex; align-items: center; gap: 4px; margin-left: -8px; }
.cm-act { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--muted2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.cm-act:hover, .cm-act:focus-visible { background: #23282E; color: var(--text); outline: none; }
.cm-like.on { color: #FF6B81; }
.cm-like.on svg path { fill: currentColor; }
.cm-del:hover { color: #FF7A6E; }
.cm-more { align-self: center; height: 40px; padding: 0 18px; }
@media (max-width: 520px) { .cm-replies { margin-left: 24px; } }

/* ---------- уведомления ---------- */
.notif { position: relative; }
.notif[hidden] { display: none; }
.notif-btn { position: relative; padding: 0 13px; }
.notif-btn:hover, .notif-btn[aria-expanded=true] { color: var(--text); }
.notif-badge { position: absolute; top: 5px; right: 4px; margin: 0; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; }
.notif-menu { width: 360px; max-width: calc(100vw - 32px); padding: 6px 6px 8px; }
.notif-list { display: flex; flex-direction: column; gap: 2px; max-height: min(460px, 70vh); overflow-y: auto; }
.notif-empty { padding: 14px 10px; font-size: 13px; color: var(--muted2); line-height: 1.5; }
.notif-item { display: flex; gap: 10px; padding: 10px; border-radius: 10px; color: var(--text2, #C9CFD4); text-decoration: none; }
.notif-item:hover, .notif-item:focus-visible { background: #23282E; outline: none; }
.notif-item.unread { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.notif-item.unread:hover { background: color-mix(in srgb, var(--accent) 15%, transparent); }
.notif-ava { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px; overflow: hidden; background: #22272C; }
.notif-ava canvas { width: 100%; height: 100%; display: block; }
.notif-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notif-line { font-size: 13px; line-height: 1.45; }
.notif-line b { color: var(--text); font-weight: 800; }
.notif-quote { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-time { font-size: 11px; color: var(--muted2); }
@media (max-width: 520px) { .notif-menu { position: fixed; top: 64px; left: 16px; right: 16px; width: auto; max-width: none; } }

/* ---------- закреп и смайлы в комментариях ---------- */
.cm-thread.pinned { border-top: 0; margin-bottom: 4px; padding: 12px 14px; border-radius: 12px; background: #1C2024; border: 1px solid #2A2F35; }
.cm-thread.pinned + .cm-thread { border-top: 0; }
.cm-pinned { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--accent); }
.cm-item.flash .cm-main { animation: cmFlash 1.6s ease-out; border-radius: 8px; }
@keyframes cmFlash { 0%, 40% { background: color-mix(in srgb, var(--accent) 16%, transparent); } 100% { background: transparent; } }
.cm-form-left { display: flex; align-items: center; gap: 8px; }
.cm-emo { position: relative; }
.cm-emo-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line3); background: transparent; color: var(--muted); cursor: pointer; }
.cm-emo-btn:hover, .cm-emo-btn[aria-expanded=true], .cm-emo-btn:focus-visible { color: var(--text); border-color: var(--accent); outline: none; }
.cm-emo-grid { position: absolute; left: 0; top: 42px; z-index: 30; width: 354px; max-width: calc(100vw - 32px); display: flex; flex-direction: column; border-radius: 12px; background: var(--card2); border: 1px solid var(--line3); box-shadow: 0 16px 40px rgba(0,0,0,.5); overflow: hidden; }
.emo-tabs { display: flex; gap: 2px; padding: 6px 6px 4px; border-bottom: 1px solid var(--line3); flex-shrink: 0; }
.emo-tab { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.emo-tab:hover, .emo-tab:focus-visible { color: var(--text); background: #2A2F35; outline: none; }
.emo-tab[aria-selected=true] { color: var(--accent); background: var(--soft); }
.emo-body { height: 260px; overflow-y: auto; padding: 0 6px 6px; overscroll-behavior: contain; }
.emo-head { position: sticky; top: 0; z-index: 1; padding: 8px 4px 4px; background: var(--card2); font-size: 10px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); }
.emo-grid { display: grid; grid-template-columns: repeat(auto-fill, 36px); gap: 2px; }
.cm-emo-grid[hidden] { display: none; }
.cm-emo-i { width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.cm-emo-i:hover, .cm-emo-i:focus-visible { background: #2A2F35; outline: none; }
@media (prefers-reduced-motion: reduce) { .cm-item.flash .cm-main { animation: none; outline: 2px solid var(--accent); } }
.notif-acts { display: flex; gap: 6px; margin: 6px 0 2px; }
.notif-acts .btn { height: 32px; padding: 0 12px; font-size: 13px; }
.notif-done { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--accent); margin-top: 2px; }

/* ---------- страница «Друзья»: списком ---------- */
.fl-page { max-width: 860px; }
.fl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fl-search { flex: 0 1 260px; height: 40px; }
.fl-search[hidden] { display: none; }
.fl-link { color: var(--accent); font-weight: 700; text-decoration: none; }
.fl-link:hover { text-decoration: underline; }
.fr-who span.on { color: var(--accent); }

.cm-emo-grid.up { top: auto; bottom: 42px; }
.notif-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-right: 4px; }
.notif-clear { height: 28px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.notif-clear:hover, .notif-clear:focus-visible { background: #23282E; color: var(--text); outline: none; }
.notif-clear[hidden] { display: none; }

/* жалоба */
.rep-card { width: min(480px, 100%); }
.rep-note { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; font: inherit; }
.rep-btn { height: 44px; padding: 0 20px; }
.cm-report { color: var(--muted2); }

/* ---------- праздничное оформление (включается в админке, выключается кнопкой внизу) ---------- */
.season-toggle { border: 0; background: none; padding: 0; font-size: 13px; color: var(--muted2); text-decoration: underline; text-underline-offset: 3px; }
.season-toggle:hover { color: var(--text); }
html[data-season] body { background: transparent; }
.season-sky { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }

/* Хэллоуин: кубик-тыква с лицом, оранжевое свечение */
html[data-season=halloween] .hero-art,
html[data-season=halloween] .logo svg,
html[data-season=halloween] footer.bottom svg { --accent: #F59A2E; --d1: #E0761A; --d2: #B3560F; --d1-dark: #A34E10; --d2-dark: #7A3A0B; }
html[data-season=halloween] .hero-art .glow { background: #FF8A1F; opacity: .2; }
html[data-season=halloween] .cube-big .f.front::after,
html[data-season=halloween] .cube-big .f.back::after {
  content: ''; position: absolute; inset: 16% 12% 14%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 80'%3E%3Cg fill='%23FFD45C'%3E%3Cpath d='M10 34 38 34 24 8Z'/%3E%3Cpath d='M62 34 90 34 76 8Z'/%3E%3Cpath d='M42 44 50 30 58 44Z'/%3E%3Cpath d='M6 50 18 58 30 50 42 58 50 52 58 58 70 50 82 58 94 50 86 72 70 76 50 70 30 76 14 72Z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(255, 190, 60, .75));
}
html[data-season=halloween] .cube-big .f.s1 { background: repeating-linear-gradient(90deg, transparent 0 31%, rgba(0,0,0,.14) 31% 35%), linear-gradient(to bottom, var(--d1) 0%, var(--d1) 55%, var(--d1-dark) 100%); }
html[data-season=halloween] .cube-big .f.s2 { background: repeating-linear-gradient(90deg, transparent 0 31%, rgba(0,0,0,.14) 31% 35%), linear-gradient(to bottom, var(--d2) 0%, var(--d2) 55%, var(--d2-dark) 100%); }
html[data-season=halloween] .cube-big .f.top::after { content: ''; position: absolute; left: 44%; top: 44%; width: 12%; height: 12%; background: #5E7A2E; box-shadow: 0 0 0 4px #3F5520; }

/* Новый год: снег на кубике, кубики-подарки, гирлянда под шапкой */
html[data-season=newyear] .cube-big .f.top { background: #F4F8FC; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
html[data-season=newyear] .cube-big .f.s1::after,
html[data-season=newyear] .cube-big .f.s2::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 26%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 26' preserveAspectRatio='none'%3E%3Cpath fill='%23F4F8FC' d='M0 0H100V9Q96 17 92 9V11Q86 24 80 11V8Q75 14 70 8V12Q62 26 54 12V9Q49 15 44 9V13Q36 22 28 12V8Q23 14 18 8V10Q11 23 4 10V8Q2 12 0 9Z'/%3E%3C/svg%3E") top / 100% 100% no-repeat;
}
html[data-season=newyear] .cube-a1 .f { background: linear-gradient(90deg, transparent 42%, #FFD45C 42% 58%, transparent 58%), #D94848; }
html[data-season=newyear] .cube-a1 .f.top,
html[data-season=newyear] .cube-a1 .f.bot { background: linear-gradient(90deg, transparent 42%, #FFD45C 42% 58%, transparent 58%), linear-gradient(transparent 42%, #FFD45C 42% 58%, transparent 58%), #E05252; }
html[data-season=newyear] .cube-a2 .f { background: linear-gradient(90deg, transparent 40%, #F4F8FC 40% 60%, transparent 60%), #3C8DDB; }
html[data-season=newyear] .cube-a2 .f.top,
html[data-season=newyear] .cube-a2 .f.bot { background: linear-gradient(90deg, transparent 40%, #F4F8FC 40% 60%, transparent 60%), linear-gradient(transparent 40%, #F4F8FC 40% 60%, transparent 60%), #4A9AE6; }
html[data-season=newyear] .hero-art .glow { background: #7FB8FF; opacity: .14; }
html[data-season=newyear] .logo svg .cube-a { fill: #F4F8FC; }
html[data-season=newyear] header.top::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -9px; height: 12px; pointer-events: none;
  background:
    radial-gradient(circle at 15px 6px, #FF5A5A 0 3.5px, transparent 4.5px) 0 0 / 120px 12px repeat-x,
    radial-gradient(circle at 45px 6px, #FFD45C 0 3.5px, transparent 4.5px) 0 0 / 120px 12px repeat-x,
    radial-gradient(circle at 75px 6px, #5AD1FF 0 3.5px, transparent 4.5px) 0 0 / 120px 12px repeat-x,
    radial-gradient(circle at 105px 6px, #7BE07B 0 3.5px, transparent 4.5px) 0 0 / 120px 12px repeat-x;
  animation: seasonBlink 2.4s ease-in-out infinite;
}
@keyframes seasonBlink { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { html[data-season=newyear] header.top::after { animation: none; } }
