/* VEORA — сайт платформы, в одном стиле с лаунчером: на фоне — мягко размытый кадр проекта (site.js → softened),
   поверх — тёмное матовое стекло с большими скруглениями, кнопки-пилюли, белая тонкая типографика (Jost, прописные с
   разрядкой), вертикальные японские подписи. Кадры чёрно-белые — цвет возвращается при наведении.
   Первый экран — чёрно-белый кадр с лепестками сакуры (petals.js); остальные кадры — цветные. Сакура — номера разделов,
   выбранное, отметки. Текст — Manrope.
   Копия прежнего оформления — Downloads/NGTL/_design_backup_20261119-design. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2-variations"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2-variations");
  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: "Jost"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/jost-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/jost-latin.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: #0a0a0b;
  --surface: #121214;
  --surface-2: #19191c;
  --surface-3: #26262a;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .24);
  --text: #f2f1ee;
  --muted: #9d9ca0;
  --dim: #646468;
  --accent: #f2f1ee;              /* белый: контурные кнопки, выбранное */
  --accent-hover: #ffffff;
  --accent-ink: #0a0a0b;
  --accent-soft: rgba(242, 241, 238, .06);
  --sakura: #e0435f;              /* единственный цвет: лепестки, номера разделов, отметки */
  --sakura-soft: #f2a7b8;
  --success: #7fd0a2;
  --warning: #e8b45a;
  --danger: #ef6f6f;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 24px;
  --pill: 10px;                   /* кнопки и пункты меню */
  --box: 18px;                    /* подложки под кнопками: шапка, переключатели */
  --glass: rgba(16, 16, 18, .55);           /* тёмное матовое стекло поверх фона */
  --glass-strong: rgba(14, 14, 16, .78);
  --glass-line: rgba(255, 255, 255, .1);
  --glass-blur: blur(22px) saturate(120%);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Jost", "Manrope", "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
  --page: min(1240px, 100% - 48px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; isolation: isolate; }
/* Фон страницы: кадр проекта, заранее уменьшенный на холсте и растянутый, — мягкое размытие без фильтра (как у лаунчера) */
.site-backdrop { position: fixed; inset: 0; z-index: -2; background: center / cover no-repeat; opacity: 0; transition: opacity 1s ease; pointer-events: none; }
.site-backdrop.ready { opacity: .38; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, rgba(10, 10, 11, .2), rgba(10, 10, 11, .75)); }
/* Стекло — общий вид панелей */
.glass, .server-panel, .news-list, .partner, .faq, .download, .buy, .panel, .card, .hero-live, .feature, .row-form, .media-item, .banner-item,
.stats div, .admin-menu, .prefs-glass { background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur); }
main { flex: 1; width: var(--page); margin: 0 auto; }
/* Главная: первый экран во всю ширину окна, остальные блоки — в колонке страницы */
.page-home main { width: 100%; }
.page-home main > :not(.hero):not(.hero-fade):not(dialog) { width: var(--page); margin-inline: auto; }
.hero-fade { position: relative; z-index: -1; height: 340px; margin-bottom: -340px; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 10, 11, .9) 0%, rgba(10, 10, 11, .72) 25%, rgba(10, 10, 11, .4) 55%, rgba(10, 10, 11, .14) 80%, rgba(10, 10, 11, 0) 100%); }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-sm); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: var(--r); }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 13px; }
.clip { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
h1, h2, h3 { letter-spacing: 0; }
/* Заголовки — тонкие прописные с разрядкой */
.section-head h2, .about-title, .faq-intro h2, .custom h2, .page-title, .hero h1, .project h3, .download h2, .buy-head h2, .stat-number,
.error-code, .prose h1 { font-family: var(--display); font-weight: 300; text-transform: uppercase; letter-spacing: .08em; }
/* Служебные подписи: мелкие прописные с широкой разрядкой */
.label, .hero-live dt, .server-table-head, .specs dt, .facts dt, .receipt dt, .stats dt, .ad-label, .news-date, .shot-title, .amount-label,
.buy-step, .hero-projects, .custom-kicker { font-family: var(--display); font-size: 11px !important; font-weight: 500; letter-spacing: .22em;
  text-transform: uppercase; }
/* Короткая подпись над данными (карточки профиля, меню админки): обычный регистр, без разрядки */
.eyebrow { color: var(--muted); font-size: 13px; font-weight: 600; }

/* ── Кнопки и ссылки ── */
/* Разрядка букв даёт пустоту и после последней буквы: слева отступ больше на ту же величину — текст ровно по центру */
.cta, .ghost { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 28px 0 calc(28px + .24em); border-radius: var(--r);
  font: 400 12.5px var(--display); letter-spacing: .24em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s; }
/* Главная кнопка — тонкий белый контур; при наведении заливается белым */
.cta { color: var(--accent-ink); background: var(--text); border: 0; transition: background .25s, transform .25s var(--ease), box-shadow .25s; }
.cta:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(255, 255, 255, .35); }
.ghost { color: var(--text); background: rgba(255, 255, 255, .06); border: 1px solid var(--glass-line); backdrop-filter: var(--glass-blur);
  transition: background .25s, border-color .25s; }
.ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); }
.cta svg, .ghost svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cta.small, .ghost.small { height: 38px; padding: 0 18px 0 calc(18px + .2em); font-size: 11.5px; letter-spacing: .2em; }
.cta.tiny, .ghost.tiny { height: 32px; padding: 0 12px 0 calc(12px + .14em); font-size: 11px; letter-spacing: .14em; }

.ghost.danger { color: #ff9a9a; }
.ghost.danger:hover { color: #ffc2c2; border-color: color-mix(in srgb, var(--danger) 60%, transparent); }
.cta.disabled { opacity: .45; pointer-events: none; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font: 400 12px var(--display); letter-spacing: .22em;
  text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .15s; }
.text-link span { display: inline-block; transition: transform .35s var(--ease); }
.text-link:hover span { transform: translateX(5px); }
.link-button { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.link-button:hover { color: var(--text); }
.link-button.danger:hover { color: var(--danger); }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; color: var(--text); border-radius: var(--r); background: var(--surface-3); }
.icon-button svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.6; fill: none; }

/* ── Шапка ── */
.topbar { position: sticky; top: 12px; z-index: 20; height: 64px; display: flex; align-items: center; gap: 32px;
  padding: 0 10px 0 22px; width: min(1264px, 100% - 24px); margin: 12px auto 0; border-radius: var(--box);
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
/* На главной шапка лежит поверх первого экрана */
.page-home .topbar { margin-bottom: -76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; height: auto; }
.brand span { font: 400 16px/1 var(--display); letter-spacing: .32em; }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; align-self: stretch; }
.nav-link { position: relative; display: flex; align-items: center; height: 100%; padding: 0 12px 0 calc(12px + .22em); color: var(--muted); text-decoration: none;
  font: 400 11.5px var(--display); letter-spacing: .22em; text-transform: uppercase; transition: color .15s; }
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); }
.nav { position: relative; }
/* Подложка пункта меню: стеклянная капсула едет к пункту под курсором и возвращается к текущему (motion.js) */
.nav-glider { position: absolute; left: 0; top: 50%; height: 36px; margin-top: -18px; width: 0; border-radius: var(--pill); background: rgba(255, 255, 255, .1);
  opacity: 0; pointer-events: none; transition: transform .5s var(--ease), width .5s var(--ease), opacity .2s; }
.nav-link { z-index: 1; }
html:not(.motion) .nav-link.active { background: rgba(255, 255, 255, .1); border-radius: var(--pill); height: 36px; }
.nav-space { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-account { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 4px; border-radius: var(--r); border: 1px solid var(--line);
  text-decoration: none; font-size: 14px; font-weight: 600; transition: border-color .15s; }
.nav-account:hover { border-color: var(--line-2); }
.nav-account img, .nav-account .avatar-dot { width: 28px; height: 28px; border-radius: var(--r-sm); object-fit: cover; }
/* Админка — квадратная кнопка рядом с профилем; подпись видна только в мобильном меню. */
.nav-admin { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: var(--r); color: var(--muted);
  border: 1px solid var(--line); text-decoration: none; transition: color .15s, border-color .15s; }
.nav-admin:hover, .nav-admin.active { color: var(--text); border-color: var(--line-2); }
.nav-admin svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav-admin-label { display: none; }
.avatar-dot { display: grid; place-items: center; background: var(--surface-3); font-size: 12px; font-weight: 700; }
.menu-toggle { display: none; }

.toast { position: fixed; right: 20px; bottom: 20px; z-index: 40; padding: 12px 18px; border-radius: var(--r); background: var(--glass-strong);
  border: 1px solid var(--glass-line); backdrop-filter: var(--glass-blur); animation: toast 4.5s ease both; }
@keyframes toast { 0%, 100% { opacity: 0; } 6%, 88% { opacity: 1; } }

/* ── Первый экран: кадр во всю ширину, текст снизу слева, живой онлайн справа ── */
.hero { position: relative; display: grid; align-items: end; min-height: min(84vh, 800px); isolation: isolate; overflow: hidden; }
.hero.no-image { min-height: auto; padding-top: 72px; }
.hero-shot { position: absolute; inset: 0; z-index: -2; margin: 0; background: var(--surface); }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.8); }
.hero-shot figcaption { position: absolute; top: 18px; right: max(24px, calc((100% - 1240px) / 2)); color: rgba(236, 235, 230, .7);
  font-size: 12px; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
/* Затемнение снизу и слева — только чтобы текст читался на любом кадре */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(10, 10, 11, .8) 24%, rgba(10, 10, 11, .25) 60%, rgba(10, 10, 11, .35) 100%),
              linear-gradient(90deg, rgba(10, 10, 11, .75) 0%, rgba(10, 10, 11, 0) 60%); }
/* Низ первого экрана растворяется в фоне страницы: кадр, затемнение и лепестки уходят в прозрачность маской
   (под первым экраном — размытый кадр, а не сплошной цвет, поэтому затемнять «до фона» нельзя — будет видна граница) */
/* Затухание с замедлением к концу: у линейного в конце остаётся заметный «излом» тона */
.hero-shot, .hero::before, .petals { -webkit-mask: linear-gradient(#000 35%, rgba(0, 0, 0, .78) 52%, rgba(0, 0, 0, .45) 68%, rgba(0, 0, 0, .2) 81%, rgba(0, 0, 0, .06) 92%, transparent 100%); mask: linear-gradient(#000 35%, rgba(0, 0, 0, .78) 52%, rgba(0, 0, 0, .45) 68%, rgba(0, 0, 0, .2) 81%, rgba(0, 0, 0, .06) 92%, transparent 100%); }
.hero { background: linear-gradient(180deg, rgba(10, 10, 11, 0) 30%, rgba(10, 10, 11, .5) 62%, rgba(10, 10, 11, .8) 86%, rgba(10, 10, 11, .9) 100%); }
/* Лепестки сакуры (petals.js) — над кадром, под текстом */
.petals { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.petal { position: absolute; top: 0; left: 0; width: 18px; height: 18px; will-change: transform; }
.petal svg { width: 100%; height: 100%; display: block; }
/* Вертикальные подписи и тонкие линии по краям первого экрана */
.hero-side { position: absolute; z-index: 1; top: 50%; display: flex; align-items: center; gap: 14px; color: var(--muted);
  font: 400 10.5px var(--display); letter-spacing: .3em; text-transform: uppercase; }
.hero-side::before { content: ""; width: 56px; height: 1px; background: var(--line-2); }
.hero-side.left { left: max(24px, calc((100% - 1240px) / 2)); }
.hero-side.right { right: max(24px, calc((100% - 1240px) / 2)); flex-direction: row-reverse; }
.hero-vertical { position: absolute; z-index: 1; right: max(24px, calc((100% - 1240px) / 2)); bottom: 64px; writing-mode: vertical-rl;
  color: var(--muted); font: 400 11px var(--display); letter-spacing: .4em; text-transform: uppercase; }
.hero-vertical b { color: var(--sakura); font-weight: 400; }
.hero.no-image::before { content: none; }
.hero-inner { position: relative; z-index: 1; width: var(--page); margin: 0 auto; padding: 0 0 64px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; }
.hero-copy { display: grid; justify-items: start; gap: 22px; max-width: 880px; }
.hero-projects { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin: 0; }
.hero-projects span { display: inline-flex; align-items: center; gap: 8px; }
.hero-projects img { width: 18px; height: 18px; object-fit: contain; }
.hero-projects em { color: var(--muted); font-style: normal; font-weight: 500; }
.hero h1 { margin: 0; font-size: clamp(40px, 5.6vw, 84px); line-height: 1.02; font-weight: 300; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 .line > span { display: block; }
.hero-lead { max-width: 600px; margin: 0; color: color-mix(in srgb, var(--text) 86%, transparent); font-size: 18px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 4px; }
.hero-live { display: grid; grid-template-columns: repeat(2, auto); gap: 14px 32px; margin: 0 48px 0 0; padding: 18px 22px; border-radius: var(--r-lg); }
.hero-live div { display: grid; gap: 2px; }
.hero-live dt { color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.hero-live dd { margin: 0; font: 300 26px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.hero-live .hero-live-total { grid-column: 1 / -1; }
.hero-live .hero-live-total dd { font-size: 64px; line-height: 1; }

/* ── Разделы ── */
.section { padding: 104px 0 0; }
.section { position: relative; }
.section-head { position: relative; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin: 0 0 28px;
  padding-bottom: 18px; }
.section-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform-origin: left; }
/* Японская подпись раздела — вертикально на поле слева от колонки */
.section[data-jp]::before { content: attr(data-jp); position: absolute; top: calc(104px + 6px); left: -64px; writing-mode: vertical-rl; color: var(--dim);
  font: 400 12px/1 "Yu Gothic", "Hiragino Sans", "Noto Sans JP", sans-serif; letter-spacing: .5em; }
.section[data-jp]::after { content: ""; position: absolute; top: calc(104px - 18px); left: -60px; width: 5px; height: 5px; border-radius: 50%; background: var(--sakura); }
.section-head h2, .about-title, .faq-intro h2, .custom h2 { margin: 0; font-size: clamp(26px, 3.2vw, 42px); line-height: 1.1; }
.page-home main { counter-reset: section; }
.page-home .section-head h2::before, .page-home .about-title::before, .page-home .faq-intro h2::before { counter-increment: section;
  content: counter(section, decimal-leading-zero); display: block; margin-bottom: 10px; color: var(--sakura); font-size: 12px; letter-spacing: .3em; }
.section-lead { max-width: 640px; margin: -10px 0 28px; color: var(--muted); }
.page-title { margin: 0; font-size: clamp(28px, 3.8vw, 46px); line-height: 1.1; }
.page-head { display: grid; gap: 10px; margin-bottom: 28px; }
.page-top { padding-top: 56px; }
.subhead { margin: 34px 0 14px; font-size: 18px; font-weight: 700; }
.empty { color: var(--muted); padding: 30px 0; }
/* Совместимость: старые страницы со «section-head» внутри page-top */
.page-top > .section-head { border: 0; padding: 0; display: grid; }

/* Вкладки с подчёркиванием (серверы по проектам, фильтр новостей) */
.tabs-under { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--glass);
  border: 1px solid var(--glass-line); backdrop-filter: var(--glass-blur); }
.tab-under { border-radius: var(--pill); display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 calc(12px + .2em); color: var(--muted); text-decoration: none;
  font: 400 11.5px var(--display); letter-spacing: .2em; text-transform: uppercase; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.tab-under:hover { color: var(--text); }
.tab-under[aria-selected="true"], .tab-under.active { color: var(--accent-ink); background: var(--text); }
.tab-under { transition: color .25s, background .25s; }
.tab-under img { width: 16px; height: 16px; object-fit: contain; }
.tab-under b { color: var(--dim); font-weight: 700; font-variant-numeric: tabular-nums; }
.tab-under[aria-selected="true"] b { color: rgba(10, 10, 11, .55); }

/* ── Серверы: таблица ── */
.js .server-panel:not(.active) { display: none; }
.server-panel { padding: 14px 26px 6px; border-radius: var(--r-lg); }
.server-panel + .server-panel { margin-top: 16px; }
.server-table-head, .server-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 140px; gap: 24px; align-items: center; }
.server-table-head { padding: 0 0 10px; color: var(--dim); font-size: 13px; font-weight: 600; }
.server-table-head span:last-child, .server-state { text-align: right; }
.server-list { list-style: none; margin: 0; padding: 0; }
.server-row { position: relative; padding: 18px 0; border-top: 1px solid var(--line); isolation: isolate; }
/* Наведение на строку: под ней проступает стеклянная подложка, название сдвигается, точка состояния «дышит» */
.server-row::before { content: ""; position: absolute; inset: 6px -18px; z-index: -1; border-radius: 12px; background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .07); opacity: 0; transform: scale(.98); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.server-row:hover::before { opacity: 1; transform: none; }
.server-name { transition: transform .45s var(--ease); }
.server-row:hover .server-name { transform: translateX(8px); }
.server-row:hover .server-state::before { animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 5px rgba(127, 208, 162, 0); transform: scale(1.4); } }
.server-name { display: grid; gap: 2px; min-width: 0; }
.server-name b { font: 400 20px var(--display); letter-spacing: .1em; text-transform: uppercase; overflow-wrap: anywhere; }
.server-name small { color: var(--dim); font-size: 13px; font-weight: 600; }
.server-load { display: grid; gap: 8px; max-width: 260px; }
.server-count { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.server-count small { color: var(--dim); font-size: 14px; font-weight: 600; }
.load { width: 100%; height: 4px; border: 0; border-radius: 2px; overflow: hidden; background: var(--surface-3); appearance: none; -webkit-appearance: none; }
.load::-webkit-progress-bar { background: var(--surface-3); border-radius: 2px; }
.load::-webkit-progress-value { background: var(--text); border-radius: 2px; transition: inline-size .6s var(--ease); }
.load::-moz-progress-bar { background: var(--text); border-radius: 2px; }
.server-state { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; color: var(--text); font: 400 11px var(--display);
  letter-spacing: .2em; text-transform: uppercase; }
.server-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.server-row.is-offline .server-state { color: var(--dim); }
.server-row.is-offline .server-state::before { background: var(--dim); }
.server-row.is-offline .server-name b, .server-row.is-offline .server-count { color: var(--dim); }
.server-empty { margin: 0; padding: 10px 0 16px; color: var(--muted); }
/* Техработы (включаются в мини-приложении центра): над таблицей серверов */
.server-maintenance { display: grid; gap: 4px; margin: 8px 0 12px; padding: 14px 16px; border-radius: var(--r);
  background: color-mix(in srgb, var(--sakura) 12%, transparent); border: 1px solid color-mix(in srgb, var(--sakura) 45%, transparent); }
.server-maintenance p { margin: 0; }

/* Отдельный блок с числом игроков (по умолчанию выключен — онлайн есть на первом экране) */
.stat { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 36px; }
.stat-number { margin: 0; font-size: clamp(72px, 11vw, 150px); line-height: .9; font-variant-numeric: tabular-nums; }
.stat-text { display: grid; gap: 4px; max-width: 340px; margin: 0; }
.stat-text strong { font-size: 24px; font-weight: 800; }
.stat-text span { color: var(--muted); }

/* ── Проекты: кадр во всю карточку, текст поверх снизу ── */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 16px; }
.project { position: relative; display: grid; align-items: end; min-height: 560px; border-radius: 28px; border: 1px solid var(--glass-line); overflow: hidden; background: var(--surface);
  isolation: isolate; }
.project.no-cover { min-height: 0; border: 1px solid var(--line); }
.project-cover { position: absolute; inset: 0; z-index: -2; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.82); }
.project:hover .project-cover img { filter: brightness(.95); }
.project:not(.no-cover)::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(10, 10, 11, .96) 0%, rgba(10, 10, 11, .78) 32%, rgba(10, 10, 11, 0) 68%); }
.project-body { display: grid; justify-items: start; gap: 14px; padding: 28px; }
.project-num { position: absolute; top: 14px; right: 22px; color: transparent; -webkit-text-stroke: 1px rgba(242, 241, 238, .35);
  font: 200 120px/1 var(--display); letter-spacing: .02em; pointer-events: none; transition: -webkit-text-stroke-color .4s, transform .8s var(--ease); }
.project:hover .project-num { -webkit-text-stroke-color: var(--sakura); transform: translateY(-4px); }
.project-cover img { transition: filter .6s var(--ease), transform 1.2s var(--ease); }
.project:hover .project-cover img { transform: scale(1.04); }
/* Наведение на проект: текст приподнимается, описание проясняется, номер окрашивается сакурой */
.project-body { transition: transform .55s var(--ease); }
.project:hover .project-body { transform: translateY(-6px); }
.project-text { transition: color .4s; }
.project:hover .project-text { color: var(--text); }
.project-id { display: flex; align-items: center; gap: 14px; }
.project-logo { width: 44px; height: 44px; object-fit: contain; padding: 6px; border-radius: 12px; background: rgba(10, 10, 11, .7); border: 1px solid var(--line-2); }
.project h3 { margin: 0; font-size: 30px; line-height: 1.05; }
.project-tagline { margin: 4px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.project-text { margin: 0; max-width: 52ch; color: color-mix(in srgb, var(--text) 88%, transparent); font-size: 15px; }
.partner-monogram { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r); background: var(--accent); color: var(--accent-ink);
  font: 300 22px var(--display); }
.partner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.partner-actions .socials { margin: 0; }

/* Соцсети: строка коротких ссылок со значками */
.socials { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.social { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 10px; border-radius: var(--r); text-decoration: none;
  border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; transition: border-color .15s; background: rgba(10, 10, 11, .5); }
.social:hover { border-color: var(--text); }
.social-icon { display: grid; place-items: center; }
.social-icon svg { width: 16px; height: 16px; fill: currentColor; }

/* ── Партнёры ── */
.partners { display: grid; gap: 16px; }
.partner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; padding: 28px;
  border-radius: 28px; }
.partner.no-banner { grid-template-columns: 1fr; }
.partner-content { display: grid; gap: 14px; justify-items: start; }
.ad-label { color: var(--dim); font-size: 12px; font-weight: 600; }
.partner-id { display: flex; align-items: center; gap: 14px; }
.partner-logo { width: 48px; height: 48px; object-fit: contain; padding: 6px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.partner h3 { margin: 0; font-size: 24px; font-weight: 800; }
.partner-tagline { margin: 2px 0 0; color: var(--muted); }
.partner-text { margin: 0; max-width: 520px; color: color-mix(in srgb, var(--text) 86%, transparent); font-size: 15px; }
.partner-banner { display: block; border-radius: 18px; overflow: hidden; }
.partner-banner img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.partner-marking { grid-column: 1 / -1; margin: 0; color: var(--dim); font-size: 11px; }

/* ── Платформа: текст и характеристики слева, кадр со списком возможностей справа ── */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.about-text { display: grid; gap: 22px; align-content: start; }
.prose { color: color-mix(in srgb, var(--text) 86%, transparent); font-size: 16px; line-height: 1.7; }
.prose p { margin: 0 0 14px; }
.prose h1 { font-size: 30px; line-height: 1.1; margin: 0 0 10px; }
.prose h2 { font-size: 22px; margin: 32px 0 10px; }
.prose h3 { font-size: 18px; margin: 24px 0 8px; }
.prose a { color: var(--sakura-soft); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose code { font-family: var(--mono); font-size: 13px; background: var(--surface-3); padding: 2px 6px; border-radius: var(--r-sm); }
.prose blockquote { margin: 16px 0; padding: 10px 18px; border-radius: var(--r); background: rgba(255, 255, 255, .05); color: var(--muted); }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
.specs div { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: 13px; font-weight: 600; }
.specs dd { margin: 0; font-size: 15px; font-weight: 700; }
.showcase { display: grid; gap: 20px; }
.showcase-frame { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--glass-line); background: var(--surface); aspect-ratio: 16 / 10; }
.showcase-panel { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .45s var(--ease); }
.showcase-panel.active { opacity: 1; }
.showcase-panel img { width: 100%; height: 100%; object-fit: cover; }
.showcase-panel .no-image { height: 100%; background: var(--surface-2); }
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.feature { display: grid; align-content: start; gap: 8px; padding: 14px 16px; text-align: left; border-radius: 18px;
  transition: background .3s, border-color .3s, transform .3s var(--ease); }
.feature:hover { transform: translateY(-2px); }
.feature b { font: 400 12.5px var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: color .15s; }
.feature span { color: var(--dim); font-size: 13px; line-height: 1.5; }
.feature:hover b { color: var(--text); }
.feature[aria-selected="true"] { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.feature[aria-selected="true"] b { color: var(--text); }
.feature[aria-selected="true"] span { color: var(--muted); }

/* ── Кадры: ровная сетка с подписями под кадром ── */
.gallery { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; margin: 0; padding: 0; }
.shot { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--surface); cursor: zoom-in; }
.shot { position: relative; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
/* Наведение на кадр: кадр мягко приближается, по центру — стеклянная круглая кнопка «открыть» */
.shot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .5); background: rgba(10, 10, 11, .35) center / 20px no-repeat
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7'/%3E%3C/svg%3E");
  backdrop-filter: blur(10px); opacity: 0; transform: scale(.7); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.shot:hover::after, .shot:focus-visible::after { opacity: 1; transform: none; }
.shot-title { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; color: var(--muted); transition: color .3s, transform .45s var(--ease); }
.shot-title::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sakura); opacity: .7; }
.gallery li:hover .shot-title { color: var(--text); transform: translateX(4px); }
.shot img { transition: filter .6s var(--ease), transform 1.2s var(--ease); }
.shot:hover img { transform: scale(1.05); }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin-top: 28px; }
.video { margin: 0; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-load { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; background: var(--surface-2); font-weight: 700; }
.video-load small { color: var(--muted); font-size: 12px; font-weight: 400; }
.video-play { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--text); display: grid; place-items: center; }
.video-play::before { content: ""; border-left: 15px solid var(--text); border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(5, 5, 7, .92); }
.lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; border-radius: var(--r); }
.lightbox-close { position: fixed; top: 16px; right: 16px; }

/* ── Новости: строки, кадр — только если он есть ── */
.news-list { list-style: none; margin: 0; padding: 6px 26px; border-radius: var(--r-lg); }
.news-list > li + li { border-top: 1px solid var(--line); }
.news-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 28px; align-items: start; padding: 24px 0; text-decoration: none; }
.news-row.has-cover { grid-template-columns: 170px minmax(0, 1fr) 220px; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.news-row .news-meta { display: grid; gap: 6px; justify-items: start; }
.news-date { color: var(--muted); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.news-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-size: 13px; font-weight: 700; }
.news-badge img { width: 14px; height: 14px; object-fit: contain; }
.news-text { display: grid; gap: 8px; min-width: 0; }
.news-text b { font-size: 19px; font-weight: 600; line-height: 1.35; transition: color .3s; }
/* Наведение на новость: стеклянная подложка, заголовок светлеет, справа выезжает стрелка в круге */
.news-row { position: relative; isolation: isolate; }
.news-row::before { content: ""; position: absolute; inset: 8px -18px; z-index: -1; border-radius: 14px; background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07); opacity: 0; transform: scale(.98); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.news-row::after { content: ""; position: absolute; right: 0; top: 50%; width: 38px; height: 38px; margin-top: -19px; border-radius: 50%;
  border: 1px solid var(--line-2); background: center / 14px no-repeat
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23f2f1ee' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M5 11l6-6M6 5h5v5'/%3E%3C/svg%3E");
  opacity: 0; transform: translateX(-10px) rotate(-45deg); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.news-row:hover::before { opacity: 1; transform: none; }
.news-row:hover::after { opacity: 1; transform: none; }
.news-row:not(.has-cover) { padding-right: 60px; }
.news-row.has-cover:hover::after { opacity: 0; }
.news-text > span { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-cover { display: block; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.news-row:hover .news-cover img { transform: scale(1.06); }
.news-filter { margin: 0 0 24px; }
.pager { display: flex; gap: 10px; margin-top: 28px; }
.article { max-width: 800px; margin: 0 auto; }
.article .page-title { margin: 12px 0 22px; }
.article-cover { width: 100%; margin: 6px 0 26px; border-radius: var(--r-lg); }
.lead { font-size: 19px; color: var(--text); }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.back:hover { color: var(--text); }

/* ── Лаунчер: сплошная жёлтая полоса ── */
.download { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: center; padding: 64px 56px;
  border-radius: 28px; overflow: hidden; }
.download::before { content: "桜"; position: absolute; right: 56px; top: 50%; transform: translateY(-50%); color: rgba(224, 67, 95, .08);
  font: 400 220px/1 "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", serif; pointer-events: none; }
.download h2 { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.05; }
.download p { margin: 0; max-width: 560px; color: var(--muted); font-size: 17px; }
.download-side { position: relative; display: grid; justify-items: start; gap: 12px; }
.download-side small { color: var(--dim); font-size: 13px; }

/* ── Вопросы ── */
.faq-section { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.faq-intro { display: grid; gap: 14px; }
.faq-intro p { margin: 0; color: var(--muted); }
.faq { display: grid; padding: 4px 26px; border-radius: var(--r-lg); }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px; border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); border-color: var(--sakura); }
.faq-body { overflow: hidden; }
.faq details p { margin: 0; padding: 0 0 22px; max-width: 64ch; color: var(--muted); }

/* ── Помощь (/help): темы с вопросами-аккордеонами, ответы — пошаговые списки ── */
.help-lead, .help-support { max-width: 70ch; color: var(--muted); }
.help-topic { margin-top: 48px; scroll-margin-top: 96px; }
.help-topic h2 { margin: 0 0 16px; font-size: clamp(22px, 2.4vw, 30px); }
.help .faq-body { padding-bottom: 8px; }
.help .faq-body p { padding: 0 0 12px; }
.help .faq-body ol, .help .faq-body ul { margin: 0 0 16px; color: var(--muted); max-width: 72ch; }
.help .faq-body strong { color: var(--text); font-weight: 600; }
.help-support { margin-top: 48px; }

/* ── Свои разделы главной (home_sections): текст, текст + картинка, картинка во всю ширину с текстом поверх ── */
.custom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.custom.no-image, .custom.layout-text { grid-template-columns: minmax(0, 760px); }
.custom.layout-image-left .custom-media { order: -1; }
.custom-text { display: grid; gap: 18px; justify-items: start; }
.custom-kicker { margin: 0 0 -8px; color: var(--sakura); }
.custom-media { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.custom-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.custom.layout-cover:not(.no-image) { position: relative; grid-template-columns: minmax(0, 640px); margin-top: 104px; padding: 56px 48px;
  border-radius: var(--r-lg); overflow: hidden; isolation: isolate; }
.custom-cover { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.custom.layout-cover:not(.no-image)::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10, 10, 11, .92), rgba(10, 10, 11, .55) 60%, rgba(10, 10, 11, .15)); }

/* ── Донат ── */
.donate { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
.donate-intro { position: sticky; top: 100px; display: grid; gap: 20px; }
.donate-intro .page-title { margin: 0; }
.facts { display: grid; margin: 0; }
.facts div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 14px; font-weight: 600; }
.facts dd { margin: 0; font-size: 15px; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-methods span { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line);
  font-size: 13px; color: var(--muted); }
.sandbox-banner { margin: 0; padding: 12px 16px; border-radius: var(--r); background: color-mix(in srgb, var(--warning) 8%, transparent);
  border-left: 3px solid var(--warning); color: var(--warning); font-size: 14px; }
.donate-history { margin-top: 56px; }

/* minmax(0, 1fr): иначе колонка растягивается под «естественную» ширину большого поля суммы и блоки вылезают за карточку */
.buy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 28px; border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--line); min-width: 0; }
.buy > * { min-width: 0; }
.buy-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.buy-head h2 { margin: 0; font-size: 24px; line-height: 1.1; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.buy-step { padding: 0; margin: 0 0 10px; color: var(--muted); font-size: 13px; font-weight: 700; }
.project-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.project-picks .buy-step { grid-column: 1 / -1; }
.project-pick input { position: absolute; opacity: 0; pointer-events: none; }
.project-pick-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line-2);
  cursor: pointer; transition: border-color .15s, background .15s; }
.project-pick-card img { width: 34px; height: 34px; object-fit: contain; padding: 4px; border-radius: var(--r-sm); background: var(--bg); flex: none; }
.project-pick-text { display: grid; min-width: 0; }
.project-pick-text b { font-size: 15px; font-weight: 800; }
.project-pick-text small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-pick-card:hover { border-color: var(--text); }
.project-pick input:checked + .project-pick-card { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.project-pick input:focus-visible + .project-pick-card { outline: 2px solid var(--accent); outline-offset: 3px; }
.methods { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.methods .buy-step { width: 100%; }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method-pill { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 16px 0 12px; border-radius: var(--r);
  border: 1px solid var(--line-2); font-size: 14px; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s; }
.method-pill:hover { border-color: var(--text); }
.method input:checked + .method-pill { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.method input:focus-visible + .method-pill { outline: 2px solid var(--accent); outline-offset: 3px; }
.method-icon { width: 20px; height: 20px; flex: none; display: inline-block; border-radius: 50%; background: center / contain no-repeat var(--icon); }
.method-sbp { --icon: url("../img/m-sbp.svg"); }
.method-card { --icon: url("../img/m-card.svg"); }
.method-sberpay { --icon: url("../img/m-sberpay.svg"); }
.method-usdt { --icon: url("../img/m-usdt.svg"); }
.amount { display: grid; gap: 10px; padding: 18px 20px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line-2); transition: border-color .15s; }
.amount:focus-within { border-color: rgba(255, 255, 255, .45); }
.amount-label { color: var(--muted); font-size: 13px; font-weight: 600; }
.amount-row { display: flex; align-items: baseline; gap: 8px; }
.amount input { flex: 1; width: 100%; min-width: 0; padding: 0; border: 0; background: none; color: var(--text); font: 300 44px/1.1 var(--display);
  font-variant-numeric: tabular-nums; outline: none; }
.amount input::placeholder { color: #3c3c40; }
.amount-cur { color: var(--muted); font-size: 30px; font-weight: 700; }
.amount-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--dim); font-size: 13px; }
.receive { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); }
.receive span { color: var(--muted); font-size: 14px; }
.receive b { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.receive .receive-coin { padding: 2px 8px; border-radius: var(--r-sm); background: var(--sakura); color: #fff; font-size: 12px; font-weight: 800; }
.receive .receive-coin:empty { display: none; }
.buy-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ── Поля форм ── */
.field { display: grid; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field input:not(:where([type="checkbox"], [type="radio"], [type="file"])), .field select, .field textarea, .row-form input:not(:where([type="checkbox"], [type="radio"], [type="file"])), .media-edit input:not(:where([type="checkbox"], [type="radio"], [type="file"])),
.search-row input {
  width: 100%; height: 46px; padding: 0 14px; background: var(--bg); color: var(--text); border: 1px solid var(--line-2);
  border-radius: var(--r); font: 500 15px var(--font); transition: border-color .15s; }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.55; }
.field textarea.mono { font: 13px/1.6 var(--mono); }
.field select { appearance: none; padding-right: 36px;
  background: var(--bg) right 14px center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' stroke='%239d9ca0' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
.field input:focus, .field select:focus, .field textarea:focus, .row-form input:focus, .media-edit input:focus, .search-row input:focus,
.field input[type="file"]:focus-visible { outline: none; border-color: rgba(255, 255, 255, .45); }
.field small { font-weight: 400; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { appearance: none; display: grid; place-content: center; width: 18px; height: 18px; margin: 1px 0 0; flex: none;
  border-radius: 3px; border: 1px solid var(--line-2); background: var(--bg); cursor: pointer; transition: background .15s, border-color .15s; }
.check input[type="radio"] { border-radius: 50%; }
.check input:hover { border-color: var(--text); }
.check input:checked { border-color: var(--accent); background: var(--accent); }
.check input[type="checkbox"]:checked { background: var(--accent) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9' stroke='%230a0a0b' stroke-width='1.9' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.check input[type="radio"]:checked { box-shadow: inset 0 0 0 4px var(--bg); }
.check input:focus-visible, .switch input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check:has(input:checked) { color: var(--text); }
.check a { color: var(--text); text-underline-offset: 2px; }
/* Переключатель «вкл/выкл» (role="switch"): дорожка с бегунком, включён — жёлтый. */
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; user-select: none; }
.switch input { appearance: none; position: relative; width: 36px; height: 20px; margin: 0; flex: none; border-radius: 10px; cursor: pointer;
  background: var(--surface-3); border: 1px solid var(--line-2); transition: background .15s, border-color .15s; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted);
  transition: transform .2s var(--ease), background .15s; }
.switch input:checked { background: var(--accent); border-color: var(--accent); }
.switch input:checked::after { transform: translateX(16px); background: var(--accent-ink); }
.switch:has(input:checked) { color: var(--text); }
/* Поле файла: пунктирная рамка, кнопка выбора — жёлтая. */
.field input[type="file"] { width: 100%; padding: 8px; border: 1px dashed var(--line-2); border-radius: var(--r); background: transparent;
  color: var(--muted); font: 500 13px var(--font); cursor: pointer; transition: border-color .15s; }
.field input[type="file"]:hover { border-color: var(--text); }
.field input[type="file"]::file-selector-button { height: 32px; margin-right: 12px; padding: 0 14px; border: 0; border-radius: var(--r-sm);
  background: var(--accent); color: var(--accent-ink); font: 700 13px var(--font); cursor: pointer; }
.form-error { margin: 0; padding: 12px 16px; border-radius: var(--r); background: color-mix(in srgb, var(--danger) 10%, transparent);
  border-left: 3px solid var(--danger); color: #ffd0d0; font-size: 14px; }
.pay { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px; border-radius: var(--r); background: var(--text); color: var(--accent-ink);
  text-decoration: none; font: 500 13px var(--display); letter-spacing: .2em; text-transform: uppercase; transition: background .15s; }
.pay:hover { background: var(--accent-hover); }
/* Кнопка оплаты — всегда в одну строку: длинное название способа сокращается многоточием, сумма не переносится */
.pay [data-pay-label] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay b { margin-left: auto; flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pay .method-icon { flex: none; }
.pay[aria-busy="true"] { opacity: .6; pointer-events: none; }
.pay[aria-busy="true"]::after { content: ""; width: 18px; height: 18px; margin-left: 12px; border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, .2); border-top-color: var(--accent-ink); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.buy-note { margin: 0; text-align: center; color: var(--dim); font-size: 13px; }

/* ── Заказы и квитанции ── */
.order-list { display: grid; border-top: 1px solid var(--line); }
.order-row { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1.2fr 1fr; gap: 12px; align-items: center; padding: 14px 4px; text-decoration: none;
  border-bottom: 1px solid var(--line); font-size: 14px; transition: background .15s; }
.order-row:hover { background: var(--surface); }
.order-row time { color: var(--muted); text-align: right; }
.order-id { font-weight: 700; font-variant-numeric: tabular-nums; }
.status-paid .order-status, .status-delivered .order-status { color: var(--success); }
.status-failed .order-status, .status-expired .order-status, .status-create_failed .order-status { color: var(--muted); }
.status-review .order-status, .status-refunded .order-status { color: var(--warning); }
.status-title.status-delivered, .status-title.status-paid { color: var(--success); }
.status-title.status-review { color: var(--warning); }
.receipt { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 24px; margin: 24px 0; }
.receipt > div { padding: 12px 0; border-top: 1px solid var(--line); }
.receipt dt { color: var(--muted); font-size: 13px; font-weight: 600; }
.receipt dd { margin: 4px 0 0; font-size: 16px; font-weight: 700; }
.order-page { max-width: 820px; }
.order-page .cta { margin-bottom: 12px; }
.panel { max-width: 560px; padding: 32px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.sandbox-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tag, .pill { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--r-sm); font-size: 12px; font-weight: 700; }
.tag { background: color-mix(in srgb, var(--warning) 14%, transparent); color: var(--warning); }
.pill { background: var(--surface-3); color: var(--muted); }
.pill.ok { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.status-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--r-sm); background: var(--surface-3);
  color: var(--muted); font-size: 12px; font-weight: 700; }
.status-pill.is-online { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }

/* ── Вход и аккаунт ── */
.auth { display: grid; place-items: center; min-height: 58vh; }
.auth .panel { display: grid; gap: 16px; width: 100%; text-align: center; justify-items: center; }
.auth .panel p { margin: 0; }
.auth .panel .page-title { font-size: 30px; }
.auth-logo { width: 56px; }
.notice-line { padding: 10px 14px; border-radius: var(--r); border-left: 3px solid var(--warning); background: color-mix(in srgb, var(--warning) 8%, transparent);
  color: var(--warning); font-size: 14px; }
.tg-widget { min-height: 46px; }
.account-head { display: flex; gap: 20px; align-items: center; }
.avatar { width: 72px; height: 72px; border-radius: var(--r-lg); object-fit: cover; }
.avatar-empty { display: grid; place-items: center; background: var(--surface-3); font: 300 28px var(--display); }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 24px; }
.account-actions form { margin: 0; }
.tabs-line { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.tabs-line a { display: inline-flex; align-items: center; height: 40px; padding: 0 12px 0 calc(12px + .2em); color: var(--muted); text-decoration: none;
  font: 400 11.5px var(--display); letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid transparent; margin-bottom: -1px; }
.tabs-line a:hover { color: var(--text); }
.tabs-line a.active { color: var(--accent-ink); background: var(--text); border-radius: var(--pill); border-color: transparent; }
.legal { max-width: 860px; margin: 0 auto; }
.error-page { display: grid; justify-items: center; text-align: center; gap: 14px; min-height: 56vh; align-content: center; }
.error-code { font-size: 160px; line-height: .85; color: var(--text); }

/* ── Подвал ── */
.footer { margin-top: 120px; background: rgba(12, 12, 14, .55); border-top: 1px solid var(--glass-line); backdrop-filter: var(--glass-blur); }
.footer-top, .footer-links, .footer-fine { width: var(--page); margin: 0 auto; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; padding: 40px 0 28px; }
.footer-brand { display: grid; gap: 12px; align-content: start; }
.footer-brand p { margin: 0; color: var(--muted); max-width: 380px; font-size: 14px; }
.footer-support { margin: 0; color: var(--text); font-size: 14px; font-weight: 700; line-height: 1.8; }
.footer-support span { color: var(--muted); font-weight: 500; }
.footer-links { display: grid; gap: 10px; padding-bottom: 28px; }
.footer-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; font-size: 14px; }
.footer-links a { text-decoration: none; color: var(--muted); transition: color .15s; }
.footer-links a:hover { color: var(--text); }
.footer-links ul + ul a { color: var(--dim); }
.footer-links ul + ul a:hover { color: var(--text); }
.footer-links a.footer-project { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; }
.footer-project img { width: 18px; height: 18px; object-fit: contain; }
.footer-mark { width: var(--page); margin: 8px auto 0; color: transparent; -webkit-text-stroke: 1px rgba(242, 241, 238, .09); text-align: center;
  font: 200 clamp(80px, 17vw, 250px)/.8 var(--display); letter-spacing: .3em; text-indent: .3em; text-transform: uppercase; user-select: none; overflow: hidden; }
.footer-fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 18px 0 32px; border-top: 1px solid var(--line);
  color: var(--dim); font-size: 12px; }

/* ── Админка ── */
.admin { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding-top: 32px; }
.admin-nav { position: sticky; top: 88px; align-self: start; display: grid; gap: 1px; padding: 8px 0; border-right: 1px solid var(--line); }
.admin-nav .eyebrow { padding: 4px 12px 10px; color: var(--dim); }
.admin-nav a { padding: 8px 12px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.admin-nav a:hover { color: var(--text); }
.admin-nav a.active { color: var(--accent-ink); border-color: transparent; background: var(--text); border-radius: var(--pill); }
.admin-body { min-width: 0; }
.admin-body > .page-title { margin-bottom: 24px; font-size: 32px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.admin-head .page-title { font-size: 32px; }
.admin-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 0; }
.stats div { padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.stats .attention { border-color: color-mix(in srgb, var(--warning) 50%, transparent); }
.stats dt { color: var(--muted); font-size: 13px; font-weight: 600; }
.stats dd { margin: 8px 0 0; font: 300 30px/1 var(--display); }
.stats a { text-decoration: none; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.table th { text-align: left; padding: 11px 14px; color: var(--dim); font-weight: 600; font-size: 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(255, 255, 255, .02); }
.table a { text-underline-offset: 3px; }
.row-actions { text-align: right; white-space: nowrap; }
.row-actions form { display: inline-flex; margin: 0 0 0 8px; }
.form { display: grid; gap: 16px; max-width: 840px; }
/* кнопка отправки — по содержимому, а не во всю ширину сетки формы (вход/регистрация растягивают её ниже, .auth-form) */
.form > .cta, .form > .ghost { justify-self: start; }
/* форма или таблица сразу под другой — с отступом, а не впритык */
.admin-body > .form + .table, .admin-body > .table + .row-form { margin-top: 16px; }
.card { padding: 22px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.card .subhead, .card legend.subhead { margin: 0 0 4px; }
fieldset.card legend { float: left; width: 100%; }
.form-actions { display: flex; gap: 10px; align-items: center; }
.form-actions.sticky { position: sticky; bottom: 0; padding: 14px 0; background: var(--bg); border-top: 1px solid var(--line); }
.field.narrow { max-width: 220px; }
.preview { max-width: 360px; border-radius: var(--r); border: 1px solid var(--line); }
.preview-logo { max-width: 96px; }
.rows { display: grid; gap: 8px; }
.row-form { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; padding: 14px 16px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); }
.row-form label:not(.switch) { display: grid; gap: 6px; flex: 0 1 180px; min-width: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.row-form label.grow { flex: 1 1 220px; }
.row-form label.short { flex: 0 0 96px; }
.row-form input:not(:where([type="checkbox"], [type="radio"], [type="file"])) { width: 100%; height: 38px; font-size: 14px; }
.row-form > .switch, .row-form > button { height: 38px; }
.row-form > button { margin-left: auto; }
.row-code { display: grid; gap: 6px; flex: 0 0 150px; align-self: stretch; align-content: end; }
.row-code small { color: var(--dim); font-size: 12px; font-weight: 600; }
.row-code b { display: flex; align-items: center; height: 38px; font: 600 13px var(--mono); color: var(--muted); }
.row-form.new { border-style: dashed; }
.row-form.is-off, .media-item.is-off { opacity: .55; }
.media-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.media-item { display: grid; gap: 8px; align-content: start; padding: 10px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.media-item img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-radius: var(--r-sm); }
.media-video-tag { aspect-ratio: 16 / 9; display: grid; place-content: center; gap: 4px; text-align: center; border-radius: var(--r-sm); background: var(--surface-3); font-weight: 700; }
.media-video-tag small { font-weight: 400; color: var(--muted); max-width: 200px; }
.media-edit { display: grid; gap: 10px; }
.media-edit input:not(:where([type="checkbox"], [type="radio"], [type="file"])) { height: 36px; padding: 0 10px; font-size: 13px; }
.media-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.media-sort { display: inline-flex; align-items: center; gap: 8px; color: var(--dim); font-size: 12px; font-weight: 600; }
.media-edit .media-sort input { width: 64px; text-align: center; }
/* Низ карточки (кадры, баннеры): действия справа, разделитель сверху. */
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.media-edit .card-actions { justify-content: flex-end; }
.card-buttons { display: inline-flex; gap: 8px; }

/* Форма проекта/партнёра: лишние для выбранного вида блоки скрыты (значения всё равно проверяет сервер) */
.partner-form:has(select[name="kind"] option[value="partner"]:checked) .only-project,
.partner-form:has(select[name="kind"] option[value="project"]:checked) .only-partner { display: none; }

/* Админка: порядок блоков главной и логотипы в списках */
.layout-list { display: grid; gap: 0; padding: 6px 18px; }
.layout-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 10px 0; }
.layout-row + .layout-row { border-top: 1px solid var(--line); }
.layout-row.is-off .layout-title { color: var(--dim); }
.layout-pos { width: 56px; height: 38px; padding: 0 10px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg);
  color: var(--text); font: inherit; font-weight: 700; text-align: center; }
.layout-title { font-weight: 700; }
.with-logo { white-space: nowrap; }
.with-logo a { display: inline-flex; align-items: center; gap: 10px; vertical-align: middle; font-weight: 600; text-decoration: none; }
.with-logo a:hover { text-decoration: underline; }
.with-logo .pill { margin-left: 10px; vertical-align: middle; }
.with-logo img { width: 24px; height: 24px; object-fit: contain; padding: 3px; border-radius: var(--r-sm); background: var(--bg); }
/* Порядок блоков главной: кнопки ↑↓ (без JS остаются поля с номерами) */
.layout-move { display: inline-flex; gap: 4px; }
.layout-move button { width: 32px; height: 32px; border-radius: var(--r); border: 1px solid var(--line-2); color: var(--muted);
  font-size: 14px; line-height: 1; transition: color .15s, border-color .15s; }
.layout-move button:hover:not(:disabled) { color: var(--text); border-color: var(--text); }
.layout-move button:disabled { opacity: .3; cursor: default; }
.js .layout-row { grid-template-columns: 64px auto minmax(0, 1fr) auto auto; }

/* Меню админки на телефоне: карточка с текущим разделом, по нажатию — сетка разделов */
.admin-menu { display: none; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.admin-menu summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; }
.admin-menu summary::-webkit-details-marker { display: none; }
.admin-menu-label { display: grid; gap: 2px; }
.admin-menu-label small { color: var(--dim); font-size: 12px; font-weight: 600; }
.admin-menu-label b { font-size: 17px; font-weight: 800; }
.admin-menu summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; transition: transform .2s var(--ease); }
.admin-menu[open] summary svg { transform: rotate(180deg); }
.admin-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px 14px; }
.admin-menu-grid a { display: grid; place-items: center; min-height: 44px; padding: 8px 10px; border-radius: var(--r); text-align: center;
  border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.admin-menu-grid a.active { color: var(--text); border-color: var(--accent); }

/* ── VEORA ID: формы входа/регистрации и профиль ── */
.auth-form { width: 100%; text-align: left; }
.auth-form .cta { width: 100%; justify-content: center; }
.auth-links { margin: 4px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.auth-divider { display: flex; align-items: center; gap: 12px; width: 100%; color: var(--dim); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.code-input { font: 700 26px/1 var(--mono) !important; letter-spacing: .4em; text-align: center; }
.profile-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; margin: 28px 0 22px; }
.profile-cards .card { display: grid; align-content: start; gap: 8px; }
.profile-cards .status-pill { justify-self: start; }
.veora-id { font: 800 32px/1 var(--mono); letter-spacing: .1em; }
.dev-letter pre { margin: 0; white-space: pre-wrap; font: 14px/1.6 var(--mono); color: var(--text); }
/* вход в лаунчер по коду (/device) */
.device-code { margin: 18px 0; padding: 16px; border: 1px solid var(--accent); border-radius: var(--r); text-align: center; font: 800 32px/1 var(--mono);
  letter-spacing: .18em; color: var(--accent); background: var(--accent-soft); }
.device-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 18px; font-size: 14px; }
.device-facts dt { color: var(--muted); }
.device-facts dd { margin: 0; overflow-wrap: anywhere; }
.device-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.device-actions button { flex: 1 1 160px; }
/* админка: баннеры лаунчера и аккаунты */
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.banner-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.banner-item { display: grid; gap: 10px; align-content: start; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.banner-item.is-off { opacity: .55; }
.banner-item img { aspect-ratio: 3 / 1; object-fit: cover; width: 100%; border-radius: var(--r-sm); }
.banner-edit { gap: 10px; }
.search-row { display: flex; gap: 10px; margin: 0 0 16px; }
.search-row input { flex: 1; min-width: 0; height: 42px; }
.inline-flags { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.table tr.is-off td { opacity: .55; }
/* профиль: привязка Telegram */
.steps { margin: 8px 0 12px; padding-left: 18px; display: grid; gap: 6px; color: var(--muted); }
.tg-link { display: flex; gap: 8px; flex-wrap: wrap; }
.tg-link .small-code { flex: 1 1 140px; min-width: 0; height: 42px; font-size: 18px !important; letter-spacing: .2em; }
.tg-unlink { margin-top: 10px; }
.tg-unlink summary { cursor: pointer; list-style: none; }
.tg-unlink summary::-webkit-details-marker { display: none; }
.tg-unlink .form { margin-top: 10px; }
/* профиль: безопасность */
.security-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
.security-grid .form { margin-top: 12px; }
.card-link { display: inline-block; margin-top: 8px; }
.choice { border: 0; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.inline-form { display: inline; }
/* профиль: игровые аккаунты */
.game-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.game-card { display: grid; gap: 10px; align-content: start; }
.game-card.is-pending { border-color: color-mix(in srgb, var(--warning) 40%, var(--line)); }
.game-head { display: grid; gap: 4px; }
.game-head b { font-size: 18px; overflow-wrap: anywhere; }
.game-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.game-stats { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: 14px; }
.game-stats dt { color: var(--muted); }
.game-stats dd { margin: 0; overflow-wrap: anywhere; }

/* ── Движение: только там, где оно что-то сообщает ──
   Картинка проявляется, когда загрузилась; вкладки сменяют кадр; вопросы раскрываются по высоте (скрипт);
   полоса сверху показывает переход между страницами. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
.loading-bar { position: fixed; left: 0; top: 0; z-index: 60; height: 2px; width: 0; pointer-events: none; opacity: 0; background: var(--text); }
.navigating .loading-bar { opacity: 1; animation: loading 8s cubic-bezier(.1, .8, .2, 1) forwards; }
@keyframes loading { 0% { width: 0; } 20% { width: 45%; } 100% { width: 92%; } }
.js .media-load img { opacity: 0; transition: opacity .4s ease; }
.js .media-load.loaded img { opacity: 1; }
.lightbox[open] { animation: fade-in .2s ease both; }
@keyframes fade-in { from { opacity: 0; } }


/* ── Первый экран: кадр медленно наезжает, строки заголовка выезжают из-под маски, остальное — по очереди ── */
.hero-scroll { position: absolute; z-index: 1; left: calc((100% - 1240px) / 2 - 58px); bottom: 0; display: grid; justify-items: center; gap: 10px;
  color: var(--muted); text-decoration: none; font: 400 10px var(--display); letter-spacing: .3em; text-transform: uppercase; }
.hero-scroll span { writing-mode: vertical-rl; }
.hero-scroll i { position: relative; width: 1px; height: 54px; background: var(--line-2); overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--sakura); animation: scroll-hint 2.2s var(--ease) infinite; }
@keyframes scroll-hint { to { top: 100%; } }
.motion .hero-shot img { animation: ken-burns 2.8s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes ken-burns { from { transform: scale(1.12); filter: grayscale(1) contrast(1.1) brightness(.35); } }
.motion .hero h1 .line > span { animation: line-up 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.motion .hero h1 .line:nth-child(1) > span { animation-delay: .25s; }
.motion .hero h1 .line:nth-child(2) > span { animation-delay: .37s; }
.motion .hero h1 .line:nth-child(3) > span { animation-delay: .49s; }
.motion .hero h1 .line:nth-child(4) > span { animation-delay: .61s; }
@keyframes line-up { from { transform: translateY(105%); } }
.motion .hero-projects, .motion .hero-lead, .motion .hero-actions, .motion .hero-live, .motion .hero-vertical {
  animation: soft-up .9s cubic-bezier(.2, .8, .2, 1) both; }
.motion .hero-projects { animation-delay: .15s; }
.motion .hero-lead { animation-delay: .7s; }
.motion .hero-actions { animation-delay: .82s; }
.motion .hero-live { animation-delay: .95s; }
.motion .hero-vertical { animation-delay: 1.1s; }
.motion .hero-scroll { animation: fade-in 1s ease 1.2s both; }
@keyframes soft-up { from { opacity: 0; transform: translateY(18px); } }

/* ── Разделы при прокрутке (motion.js ставит rv и, когда видно, in) ── */
.word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; }
.word > span { display: inline-block; }
.motion .rv .word > span { transform: translateY(110%); transition: transform .9s cubic-bezier(.2, .8, .2, 1) calc(var(--w, 0) * 60ms + 80ms); }
.motion .rv.in .word > span { transform: none; }
/* Первый экран: кадр слегка следует за курсором (motion.js → --mx, --my) */
.hero-shot { transform: translate3d(calc(var(--mx, 0) * -14px), calc(var(--my, 0) * -10px), 0) scale(1.04); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.motion .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms); }
.motion .rv.in { opacity: 1; transform: none; }
.motion .section-head.rv::after { transform: scaleX(0); transition: transform 1.2s var(--ease) .15s; }
.motion .section-head.rv.in::after { transform: scaleX(1); }
.motion .rv-clip { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1) var(--d, 0ms); }
.motion .rv-clip.in { clip-path: inset(0 0 0 0); }
.motion .rv-row { transform: translateX(-14px); }
.motion .rv-row.in { transform: none; }

/* ── Узкие экраны ── */
@media (max-width: 1360px) {
  .section[data-jp]::before, .section[data-jp]::after, .hero-scroll { display: none; }
}
@media (max-width: 1040px) {
  :root { --page: calc(100% - 40px); }
  .project-num { font-size: 90px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-live { grid-template-columns: repeat(3, auto); justify-content: start; }
  .hero-live .hero-live-total { grid-column: auto; }
  .hero-live .hero-live-total dd { font-size: 40px; }
  .about, .donate, .admin-split, .partner, .faq-section { grid-template-columns: 1fr; gap: 28px; }
  .donate-intro { position: static; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download { grid-template-columns: 1fr; padding: 32px; }
  .admin { grid-template-columns: 1fr; gap: 20px; }
  .admin-nav { display: none; }
  .admin-menu { display: block; }
  .section { padding-top: 80px; }
}
@media (max-width: 760px) {
  :root { --page: calc(100% - 32px); }
  body { font-size: 15px; }
  .topbar { padding: 0 16px; gap: 12px; }
  .menu-toggle { display: grid; align-content: center; gap: 6px; width: 40px; height: 40px; margin-left: auto; }
  .menu-toggle span:not(.sr) { display: block; height: 2px; margin: 0 9px; background: var(--text); transition: transform .2s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .nav { position: fixed; inset: 64px 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; background: var(--bg);
    border-bottom: 1px solid var(--line); opacity: 0; pointer-events: none; transition: opacity .15s; }
  .nav.open { opacity: 1; pointer-events: auto; }
  .nav-link { height: auto; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-link.active::after { left: 0; right: auto; width: 3px; top: 14px; bottom: 14px; height: auto; }
  .nav-link.active { padding-left: 12px; }
  .nav-actions { flex-wrap: wrap; padding-top: 14px; }
  .nav-admin { display: flex; gap: 8px; width: auto; padding: 0 14px 0 10px; font-size: 14px; font-weight: 600; }
  .nav-admin-label { display: inline; }
  .hero { min-height: 640px; }
  .hero-inner { padding-bottom: 36px; }
  .hero-lead { font-size: 16px; }
  .hero-live { grid-template-columns: repeat(2, auto); }
  .hero-live .hero-live-total { grid-column: 1 / -1; }
  .section { padding-top: 64px; }
  .section-head { align-items: start; flex-direction: column; }
  .server-table-head { display: none; }
  .server-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; }
  .server-load { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .project { min-height: 480px; }
  .project-body { padding: 22px; }
  .gallery { grid-template-columns: 1fr; }
  .news-row, .news-row.has-cover { grid-template-columns: 1fr; gap: 10px; }
  .news-row .news-meta { display: flex; }
  .news-row.has-cover .news-cover { order: -1; }
  .download { padding: 28px 22px; }
  .buy { padding: 20px 16px; }
  .buy-fields { grid-template-columns: 1fr; }
  .amount input { font-size: 34px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .order-row { grid-template-columns: 1fr 1fr; }
  .order-row time { text-align: left; }
  .partner { padding: 22px; }
  .custom { grid-template-columns: 1fr; gap: 24px; }
  .custom.layout-image-left .custom-media { order: 0; }
  .custom.layout-cover:not(.no-image) { padding: 28px 22px; }
  .specs { grid-template-columns: 1fr; }
  .page-top { padding-top: 36px; }
  .admin-head { flex-direction: column; align-items: stretch; gap: 14px; }
  .admin-head .page-title, .admin-body > .page-title { font-size: 26px; }
  /* На телефоне со скриптом номера порядка не нужны — хватает ↑↓ (поля остаются в форме и отправляются) */
  .js .layout-pos { display: none; }
  .js .layout-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .js .layout-row > .small, .js .layout-row > span:empty { display: none; }
  /* Таблицы админки — карточки: строка = карточка, у значения подпись колонки (data-label ставит admin.js) */
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table { border: 0; border-radius: 0; overflow: visible; }
  .table thead { display: none; }
  .table tbody { display: grid; gap: 12px; }
  .table tr { padding: 4px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
  .table td { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; text-align: right;
    border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
  .table td:last-child { border-bottom: 0; }
  .table td::before { content: attr(data-label); flex: none; color: var(--dim); font-size: 12px; font-weight: 600; text-align: left; }
  .table td:first-child { justify-content: center; text-align: center; font-size: 16px; font-weight: 700; }
  .table td:first-child::before, .table td:not([data-label])::before, .table td.row-actions::before { content: none; }
  .table td.row-actions { justify-content: center; }
  .table td.clip { max-width: none; white-space: normal; }
  .table tbody tr:hover td { background: none; }
}
@media (max-width: 560px) {
  .banner-admin { grid-template-columns: 1fr; }
  .device-code { font-size: 26px; letter-spacing: .1em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero-scroll i::after { display: none; }
  .js .media-load img { opacity: 1; }
  @view-transition { navigation: none; }
}

/* Безопасность → активные входы */
.login-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: var(--r); list-style: none; }
.login-row p { margin: 2px 0 0; }
.logins { padding: 0; }
.logins-all { margin-top: 14px; }

/* Страница проекта, рейтинг, публичный профиль */
.project-page .project-hero { min-height: 420px; margin-bottom: 40px; }
.project-page .section-head { margin-top: 40px; }
.rating { list-style: none; margin: 0; padding: 8px 18px; border-radius: var(--r-lg); }
.rating-row { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rating-row:last-child { border-bottom: 0; }
.rating-place { color: var(--sakura); font: 400 13px var(--display); letter-spacing: .2em; }
.rating-value { font: 300 22px/1 var(--display); font-variant-numeric: tabular-nums; }
.profile-head { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: var(--r-lg); margin-bottom: 24px; }
.profile-avatar { width: 72px; height: 72px; border-radius: var(--r); object-fit: cover; font-size: 32px; }
.public-toggle { display: grid; gap: 12px; justify-items: start; padding: 18px; border-radius: var(--r); }
.project-page figure.project-cover { margin: 0; }
