/* =====================================================================
   INKARIUS — «живой» слой: фон с движением, картинки в пустых местах, анимации, админка в стиле сайта.
   Подключается последним на всех страницах. Всё движение выключается при «уменьшить движение» в системе.
   ===================================================================== */

/* ---------- 1. Живой фон: мягкие пятна цвета команд медленно плывут за содержимым ---------- */
html body.bshell.live, html body.live[data-page="admin"] { background: transparent !important; }
html:has(body.live) { background: #0E1013 !important; }
.amb { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.amb i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.amb i:nth-child(1) { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: radial-gradient(circle, rgba(43, 214, 107, .22), transparent 65%); animation: ambA 26s ease-in-out infinite alternate; }
.amb i:nth-child(2) { width: 38vw; height: 38vw; right: -10vw; top: 22vh; background: radial-gradient(circle, rgba(30, 107, 214, .16), transparent 65%); animation: ambB 32s ease-in-out infinite alternate; }
.amb i:nth-child(3) { width: 34vw; height: 34vw; left: 30vw; bottom: -18vw; background: radial-gradient(circle, rgba(224, 134, 30, .10), transparent 65%); animation: ambA 38s ease-in-out infinite alternate-reverse; }
body.live[data-page="admin"] .amb i { opacity: .3; }
@keyframes ambA { to { transform: translate(8vw, 6vh) scale(1.15); } }
@keyframes ambB { to { transform: translate(-6vw, -8vh) scale(.9); } }

/* ---------- 2. Шапки страниц: дым и полоса сканера поверх карты ---------- */
.pg-hero { isolation: isolate; }
.pg-hero .pg-smoke { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.pg-hero .pg-smoke i { position: absolute; bottom: -30%; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(200, 210, 220, .10), transparent 65%); filter: blur(10px); animation: smokeUp 14s linear infinite; }
.pg-hero .pg-smoke i:nth-child(1) { left: 8%; animation-delay: -2s; }
.pg-hero .pg-smoke i:nth-child(2) { left: 38%; animation-delay: -7s; width: 280px; height: 280px; }
.pg-hero .pg-smoke i:nth-child(3) { left: 66%; animation-delay: -11s; }
.pg-hero .pg-smoke i:nth-child(4) { left: 86%; animation-delay: -4s; width: 180px; height: 180px; }
@keyframes smokeUp { 0% { transform: translateY(0) scale(.8); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-160%) scale(1.6); opacity: 0; } }

/* ---------- 3. Картинки в пустых местах ---------- */
.tk-empty, .ar-empty, .bempty, .ap-empty, .sk-empty, .hm-empty, .bshop-empty, .a-empty-art { position: relative; text-align: center; }
.tk-empty::before, .ar-empty::before, .bempty::before, .ap-empty::before, .sk-empty::before, .hm-empty::before, .bshop-empty::before, .a-empty-art::before {
  content: ""; display: block; width: 104px; height: 104px; margin: 4px auto 12px; background: var(--art, url("art/radar.svg")) center / contain no-repeat;
  animation: artFloat 5s ease-in-out infinite; }
@keyframes artFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.tk-empty { --art: url("art/headset.svg"); }
.bshop-empty { --art: url("art/bomb.svg"); }
.sk-empty { --art: url("art/crosshair.svg"); }
.hm-empty { --art: url("art/smoke.svg"); }
.ap-empty { --art: url("art/shield.svg"); }
.clans-page .bempty, [data-page="clans"] .bempty { --art: url("art/team.svg"); }
[data-page="punishments"] .bempty { --art: url("art/shield.svg"); }
.a-empty-art.radar { --art: url("art/radar.svg"); }
.art-team { --art: url("art/team.svg"); }
.art-trophy { --art: url("art/trophy.svg"); }
.art-shield { --art: url("art/shield.svg"); }

/* ---------- 4. Анимации: кнопки, карточки, заголовки ---------- */
@media (hover: hover) {
  .btn-primary, .bh-cta { position: relative; overflow: hidden; }
  .btn-primary::after, .bh-cta::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); transition: left .6s ease; }
  .btn-primary:hover::after, .bh-cta:hover::after { left: 130%; }
  .bshell main .card:not(.table-wrap):not(.chart-card) { transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .25s, box-shadow .35s; }
  .bshell main .bshop-card:hover, .bshell main .ar-item:hover, .bshell .pl-card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px -18px rgba(43, 214, 107, .45); }
}
.live-dot { position: relative; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }

/* профиль: под шапкой — карта, растворённая в темноте */
.profile-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 16, 19, .55), #0E1013 92%), linear-gradient(90deg, #0E1013 15%, transparent 60%, #0E1013), var(--p-map, url("maps/mirage.jpg")) center 35% / cover no-repeat;
  opacity: .55; }

/* ---------- 5. Админка в стиле сайта ---------- */
body.live[data-page="admin"] { font-family: var(--b-body); }
body.live[data-page="admin"] .admin { gap: 18px; padding: 18px; }
body.live[data-page="admin"] .admin-nav { background: var(--b-panel) !important; border: 1px solid var(--b-line) !important; border-radius: 4px !important; }
body.live[data-page="admin"] .admin-nav .logo { font-family: var(--b-head); letter-spacing: .04em; }
body.live[data-page="admin"] .admin-link { position: relative; border-radius: 2px !important; font-family: var(--b-head); text-transform: uppercase; letter-spacing: .05em; font-size: 15px; min-height: 46px; gap: 12px; color: var(--b-muted); }
body.live[data-page="admin"] .admin-link::before { display: block !important; content: ""; flex: none; width: 20px; height: 20px; border-radius: 0; background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; opacity: .85; }
body.live[data-page="admin"] .admin-link:hover { background: rgba(43, 214, 107, .08) !important; color: #fff; padding-left: 16px; }
body.live[data-page="admin"] .admin-link[aria-current="page"] { background: linear-gradient(90deg, var(--b-green), #20b65a) !important; color: var(--b-on-green) !important;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); box-shadow: 0 10px 30px -12px rgba(43, 214, 107, .8); }
body.live[data-page="admin"] .admin-link[aria-current="page"]::before { opacity: 1; }
.admin-link[data-tab="overview"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='9'/%3E%3Crect x='14' y='3' width='7' height='5'/%3E%3Crect x='14' y='12' width='7' height='9'/%3E%3Crect x='3' y='16' width='7' height='5'/%3E%3C/svg%3E"); }
.admin-link[data-tab="server"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='3' y='4' width='18' height='7' rx='1'/%3E%3Crect x='3' y='13' width='18' height='7' rx='1'/%3E%3Cpath d='M7 7.5h.01M7 16.5h.01'/%3E%3C/svg%3E"); }
.admin-link[data-tab="lobbies"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V8l8-5 8 5v13'/%3E%3Cpath d='M9 21v-6h6v6'/%3E%3C/svg%3E"); }
.admin-link[data-tab="players"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2 21c0-4 3-7 7-7s7 3 7 7'/%3E%3Cpath d='M16 4a4 4 0 0 1 0 8M22 21c0-3-2-6-5-6.7'/%3E%3C/svg%3E"); }
.admin-link[data-tab="player"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E"); }
.admin-link[data-tab="bans"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m5.6 5.6 12.8 12.8'/%3E%3C/svg%3E"); }
.admin-link[data-tab="clans"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M12 3 20 6v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3C/svg%3E"); }
.admin-link[data-tab="skins"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 14h13l4-4V7H8L3 12z'/%3E%3Cpath d='M8 14l-2 6h4l2-6'/%3E%3C/svg%3E"); }
.admin-link[data-tab="logs"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M8 6h12M8 12h12M8 18h12M4 6h.01M4 12h.01M4 18h.01'/%3E%3C/svg%3E"); }
.admin-link[data-tab="roles"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M3 8l4 4 5-7 5 7 4-4-2 11H5z'/%3E%3C/svg%3E"); }
.admin-link[data-tab="shop"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.5 11h11L21 7H6.2'/%3E%3Ccircle cx='9' cy='19.5' r='1.5'/%3E%3Ccircle cx='17' cy='19.5' r='1.5'/%3E%3C/svg%3E"); }
.admin-link[data-tab="purchases"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E"); }
.admin-link[data-tab="settings"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 2v20M4.9 6l14.2 12M19.1 6 4.9 18M9 4l3 2 3-2M9 20l3-2 3 2'/%3E%3C/svg%3E"); }
.admin-link:not([data-tab]) { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E"); }

/* шапка раздела: карта, затемнение, скошенный зелёный штрих */
body.live[data-page="admin"] .room-head { position: relative; isolation: isolate; overflow: hidden; padding: 26px 26px 24px; margin-bottom: 18px; border: 1px solid var(--b-line); border-radius: 4px; min-height: 132px; align-items: flex-end; }
body.live[data-page="admin"] .room-head::before { content: ""; position: absolute; inset: -12px; z-index: -2; background: var(--a-art, url("maps/mirage.jpg")) center 40% / cover no-repeat; transform: scale(1.04); transition: opacity .5s; animation: kenburns 24s ease-in-out infinite alternate; }
body.live[data-page="admin"] .room-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 16, 19, .96) 30%, rgba(14, 16, 19, .55) 70%, rgba(14, 16, 19, .25)), linear-gradient(0deg, rgba(14, 16, 19, .7), transparent 60%); }
body.live[data-page="admin"] #a-title { font-family: var(--b-head); text-transform: uppercase; letter-spacing: .02em; font-size: clamp(30px, 4vw, 44px) !important; }
body.live[data-page="admin"] #a-title::before { content: ""; display: inline-block; width: 10px; height: .8em; margin-right: 12px; background: var(--b-green); transform: skewX(-18deg); vertical-align: -2px; }
@keyframes kenburns { to { transform: scale(1.12) translate(-1.5%, -1%); } }
.admin-main[data-tab="overview"] { --a-art: url("maps/mirage.jpg"); }
.admin-main[data-tab="server"] { --a-art: url("maps/nuke.jpg"); }
.admin-main[data-tab="lobbies"] { --a-art: url("maps/inferno.jpg"); }
.admin-main[data-tab="players"] { --a-art: url("maps/dust2.jpg"); }
.admin-main[data-tab="player"] { --a-art: url("maps/ancient.jpg"); }
.admin-main[data-tab="bans"] { --a-art: url("maps/vertigo.jpg"); }
.admin-main[data-tab="clans"] { --a-art: url("maps/anubis.jpg"); }
.admin-main[data-tab="skins"] { --a-art: url("modes/comp.jpg"); }
.admin-main[data-tab="logs"] { --a-art: url("maps/nuke.jpg"); }
.admin-main[data-tab="roles"] { --a-art: url("modes/wing.jpg"); }
.admin-main[data-tab="shop"] { --a-art: url("modes/fun.jpg"); }
.admin-main[data-tab="purchases"] { --a-art: url("modes/duel.jpg"); }
.admin-main[data-tab="settings"] { --a-art: url("maps/vertigo.jpg"); }

/* разделы и карточки админки: угловатые, как на сайте; появление при смене вкладки */
body.live[data-page="admin"] .a-panels > .card, body.live[data-page="admin"] .a-panels > section { border-radius: 4px !important; background: var(--b-panel) !important; border: 1px solid var(--b-line) !important; }
body.live[data-page="admin"] .a-panels .tile { border-radius: 4px !important; background: var(--b-panel) !important; border: 1px solid var(--b-line) !important; position: relative; overflow: hidden; }
body.live[data-page="admin"] .a-panels .tile::after { content: ""; position: absolute; right: -14px; bottom: -14px; width: 84px; height: 84px; opacity: .14; background: var(--tile-art, url("art/radar.svg")) center / contain no-repeat; }
body.live[data-page="admin"] .a-panels .tile .v { font-family: var(--b-head); color: #fff; font-size: 40px; }
body.live[data-page="admin"] .a-panels .tile:nth-child(2) { --tile-art: url("art/crosshair.svg"); }
body.live[data-page="admin"] .a-panels .tile:nth-child(3) { --tile-art: url("art/bomb.svg"); }
body.live[data-page="admin"] .a-panels .tile:nth-child(4) { --tile-art: url("art/team.svg"); }
body.live[data-page="admin"] .a-panels h2.display { font-family: var(--b-head); text-transform: uppercase; letter-spacing: .03em; }
body.live[data-page="admin"] .btn { border-radius: 2px !important; font-family: var(--b-head); text-transform: uppercase; letter-spacing: .04em; }
body.live[data-page="admin"] .btn-primary { background: var(--b-green) !important; color: var(--b-on-green) !important; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
body.live[data-page="admin"] .input, body.live[data-page="admin"] input.input, body.live[data-page="admin"] select.input { border-radius: 2px !important; }
body.live[data-page="admin"] .table-wrap, body.live[data-page="admin"] .table { border-radius: 2px !important; }
body.live[data-page="admin"] .ar-item, body.live[data-page="admin"] .a-attn-item { border-radius: 3px !important; }
.a-panels > :not([hidden]) { animation: panelIn .26s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* «Ждёт ответа»: всё разобрано — радар «всё спокойно» */
.a-attn.calm .a-attn-grid { display: none; }
.a-attn-calm { display: none; align-items: center; gap: 18px; margin-top: 10px; color: var(--b-muted); }
.a-attn.calm .a-attn-calm { display: flex; }
.a-attn-calm img { width: 84px; height: 84px; }
.a-attn-calm b { display: block; color: #fff; font-family: var(--b-head); font-size: 20px; text-transform: uppercase; }

@media (max-width: 900px) {
  body.live[data-page="admin"] .admin { padding: 10px; gap: 10px; }
  body.live[data-page="admin"] .admin-link::before { width: 16px; height: 16px; }
  body.live[data-page="admin"] .room-head { min-height: 0; padding: 18px 16px; }
}

/* ---------- уменьшить движение ---------- */
@media (prefers-reduced-motion: reduce) {
  .amb i, .pg-smoke i, .tk-empty::before, .ar-empty::before, .bempty::before, .ap-empty::before, .sk-empty::before, .hm-empty::before, .bshop-empty::before, .a-empty-art::before,
  .live-dot::after, body.live[data-page="admin"] .room-head::before, .a-panels > :not([hidden]) { animation: none !important; }
}

/* ---------- 6. То, что рисует браузер: выделение, курсор, фокус, полоса прокрутки ---------- */
::selection { background: rgba(43, 214, 107, .35); color: #fff; }
input, textarea { caret-color: var(--b-green, #2BD66B); }
:focus-visible { outline: 2px solid var(--b-green, #2BD66B); outline-offset: 2px; }
html { scrollbar-color: #2a3a30 #0E1013; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0E1013; }
::-webkit-scrollbar-thumb { background: #26352b; border: 2px solid #0E1013; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #2BD66B; }
.table td, .mono { font-variant-numeric: tabular-nums; }

/* ---------- 7. Уровни: значки 1–10 ---------- */
.bp-rank { width: 56px; height: 56px; object-fit: contain; vertical-align: middle; margin-left: 10px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }
.bp-level { grid-column: span 2; display: flex !important; flex-direction: row !important; align-items: center; gap: 16px; text-align: left; }
.bp-level img { width: 84px; height: 84px; object-fit: contain; flex: none; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .55)); transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.bp-level:hover img { transform: scale(1.06) rotate(-3deg); }
.bp-level.max img { filter: drop-shadow(0 0 18px rgba(43, 214, 107, .55)); }
.bp-level-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.bp-level-txt b { font-family: var(--b-head); font-size: 24px; text-transform: uppercase; color: #fff; }
.bp-level-txt span { font-size: 13px; color: var(--b-muted); }
.bp-xp { display: block; height: 6px; background: var(--b-line-2); overflow: hidden; }
.bp-xp i { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, #1E9F4F, var(--b-green)); transform-origin: left; animation: xpFill 1s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes xpFill { from { transform: scaleX(0); } }
@media (max-width: 600px) { .bp-level { grid-column: 1 / -1; } .bp-rank { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .bp-xp i { animation: none; } }

/* аватарка и эмблема по умолчанию */
.avatar.def-av { background: #0b0f0c !important; padding: 0 !important; overflow: hidden; }
.avatar.def-av img, .av-img.def-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-emb { width: 44px; height: 44px; object-fit: cover; flex: none; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.cl-emb.big { width: 120px; height: 120px; clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); box-shadow: 0 18px 40px -16px rgba(43, 214, 107, .5); }
.cl-card-head { display: flex; align-items: center; gap: 10px; }
#bp-nick { display: inline-block; vertical-align: middle; }
/* админка · выдать уровень */
.a-lvl-btn { display: inline-flex !important; align-items: center; gap: 6px; }
.a-lvl-btn img { width: 20px; height: 20px; object-fit: contain; }
.lv-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.lv-pick { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border: 1px solid var(--b-line); background: var(--b-panel-2, #1A1E24); color: var(--b-muted); cursor: pointer; border-radius: 3px; transition: border-color .15s, transform .15s; font-family: var(--b-head); }
.lv-pick img { width: 56px; height: 56px; object-fit: contain; }
.lv-pick:hover { transform: translateY(-2px); border-color: var(--b-line-2); }
.lv-pick[aria-checked="true"] { border-color: var(--b-green); color: #fff; box-shadow: 0 8px 24px -12px rgba(43, 214, 107, .7); }
@media (max-width: 520px) { .lv-grid { grid-template-columns: repeat(5, 1fr); gap: 4px; } .lv-pick img { width: 40px; height: 40px; } }
.own-open { margin: 0 0 14px; }
.own-dialog { max-width: 640px; max-height: 92vh; overflow-y: auto; }

/* ---------- 8. Главная: разделы сайта карточками (картинки владельца) ---------- */
.bnavs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bnav { position: relative; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--b-muted); }
.bnav img { display: block; width: 100%; height: auto; aspect-ratio: 749 / 339; object-fit: cover; border-radius: 10px; border: 1px solid var(--b-line);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .8); transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s, border-color .25s, filter .35s; }
.bnav-p { font-size: 14px; line-height: 1.4; padding: 0 2px; }
.bnav:hover img, .bnav:focus-visible img { transform: translateY(-4px); border-color: rgba(43, 214, 107, .55); box-shadow: 0 22px 40px -18px rgba(43, 214, 107, .55); filter: brightness(1.08) saturate(1.1); }
.bnav:hover .bnav-p { color: #fff; }
@media (max-width: 900px) { .bnavs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 520px) { .bnavs { grid-template-columns: 1fr; } }

/* шапки страниц: картинка раздела справа, растворяется в темноту слева */
.pg-hero-art .pg-card { position: absolute; right: 0; top: 0; height: 100%; width: auto; max-width: 62%; object-fit: cover; object-position: left center; z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%); }
.pg-hero-art:has(.pg-card) .map-photo, .pg-hero-art:has(.pg-card) > svg { opacity: .35; }
.pg-hero:has(.pg-card)::after { background: linear-gradient(90deg, rgba(10, 13, 11, .96) 0%, rgba(10, 13, 11, .8) 36%, rgba(10, 13, 11, .1) 70%, transparent 100%), linear-gradient(0deg, rgba(10, 13, 11, .5), transparent 45%) !important; }
@media (max-width: 700px) { .pg-hero-art .pg-card { max-width: 100%; opacity: .45; } }
.bshop-hero-bg.bshop-hero-card { left: auto; right: 22%; width: 46%; object-fit: cover; object-position: center; filter: brightness(.75) saturate(1.1);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%, #000 75%, transparent); mask-image: linear-gradient(90deg, transparent, #000 35%, #000 75%, transparent); }
@media (max-width: 800px) { .bshop-hero-bg.bshop-hero-card { right: 0; width: 100%; filter: brightness(.35); } }

/* ---------- 9. Коины: монета INKARIUS (сталь, неоновый ободок, знак бренда) ---------- */
.bshop-coin { background: url("art/coin.svg") center / contain no-repeat !important; box-shadow: none !important; border-radius: 50%;
  filter: drop-shadow(0 .06em .18em rgba(43, 214, 107, .45)); }
.bshop-coin::after { display: none !important; }
.bshop-coin-lg { animation: coinSpin 6s cubic-bezier(.45, 0, .2, 1) infinite; }
@keyframes coinSpin { 0%, 70% { transform: rotateY(0); } 85% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
@media (prefers-reduced-motion: reduce) { .bshop-coin-lg { animation: none; } }

/* шапка магазина: россыпь коинов (картинка владельца) */
.bshop-hero-bg.bshop-hero-coins { object-position: center 88%; filter: brightness(.62) saturate(1.15); }

/* ---------- 10. Надпись INKARIUS: белая, шрифт как на логотипах — толстый наклонный гротеск (Inter Display Black Italic, OFL) ---------- */
@font-face { font-family: "InkBrand"; src: url("fonts/inter-display-black-italic.woff") format("woff"); font-weight: 900; font-style: italic; font-display: swap; }
html body h1.bhero-brand, html[data-style] body h1.bhero-brand { font-family: "InkBrand", var(--b-head) !important; font-style: italic; font-weight: 900; letter-spacing: -.02em !important; text-transform: uppercase; }
html body h1.bhero-brand .bhero-letters { padding-right: .08em; }
.bh-name { font-family: "InkBrand", var(--b-head) !important; font-style: italic; font-weight: 900; letter-spacing: -.01em !important; color: #fff; }

.pg-hero-art .pg-card { filter: brightness(1.18) saturate(1.15); }
.pg-hero-art:has(.pg-card) .map-photo { opacity: .22; }

/* ---------- 11. Главная: баннер INKARIUS вместо листающихся карт ---------- */
/* картинка — отдельным блоком сверху (надпись на ней не перекрывается), текст и кнопки — под ней на тёмном низе */
.bhero.bhero-pic { --art-h: min(calc(100vw * 572 / 1024), 76vh); display: block; min-height: 0; }
.bhero.bhero-pic::before { display: none; }
.bhero-pic .bhero-art { position: relative; inset: auto; height: var(--art-h); overflow: hidden; background: #07090a; }
.bhero-pic .bhero-art::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, #0E1013 0%, rgba(14, 16, 19, .6) 12%, transparent 30%), linear-gradient(90deg, rgba(14, 16, 19, .5), transparent 15%, transparent 85%, rgba(14, 16, 19, .5)); }
.bhero-bg { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; display: block; transform-origin: 50% 45%; animation: heroBreath 22s ease-in-out infinite alternate; }
@keyframes heroBreath { from { transform: scale(1.02); } to { transform: scale(1.07) translateY(-1%); } }
.bhero-pic .bhero-in { position: relative; z-index: 2; margin-top: calc(var(--art-h) * -.13); padding-top: 0; padding-bottom: 44px; }
.bhero-pic .bhero-text { gap: 18px; }
.bhero-pic .bhero-lead { font-size: 18px; max-width: 620px; }
/* искры: летят вверх, как на картинке */
.bhero-embers { position: absolute; inset: 0; pointer-events: none; }
.bhero-embers i { position: absolute; left: var(--x); bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%; background: #ffb347; box-shadow: 0 0 6px 2px rgba(255, 140, 40, .75);
  opacity: 0; animation: ember var(--t) linear var(--d) infinite; }
.bhero-embers i:nth-child(3n) { background: #7dffad; box-shadow: 0 0 6px 2px rgba(43, 214, 107, .8); }
@keyframes ember { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 70% { opacity: .8; } 100% { transform: translate(40px, calc(var(--art-h, 60vh) * -1)); opacity: 0; } }
@media (max-width: 760px) { .bhero-pic .bhero-in { margin-top: 0; padding-top: 6px; padding-bottom: 30px; } }
@media (prefers-reduced-motion: reduce) { .bhero-bg, .bhero-embers i { animation: none !important; } .bhero-embers { display: none; } }

/* ---------- 12. Знак INKARIUS: светящаяся «I» с крылом ---------- */
.bh-mark-img { width: 46px; height: 38px; flex: none; display: block; filter: drop-shadow(0 0 6px rgba(43, 214, 107, .35)); transition: transform .35s cubic-bezier(.16, 1, .3, 1), filter .35s; }
.bh-logo:hover .bh-mark-img { transform: translateY(-2px) rotate(-3deg); filter: drop-shadow(0 0 12px rgba(43, 214, 107, .7)); }
.bh-logo { gap: 8px; }
@media (max-width: 760px) { .bh-mark-img { width: 38px; height: 32px; } }

/* ===== 13. Заголовки без зелёных палочек, плитки под большие числа, последние матчи сеткой ===== */
.bh2::before, body.live[data-page="admin"] #a-title::before { content: none !important; display: none !important; }

/* цифры не вылезают из плиток, даже когда матчей и убийств десятки тысяч */
.bme-stats > div { min-width: 0; }
.bme-stats b { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bme-list li > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: capitalize; }

/* последние матчи: 6 карточек сеткой — блок одного размера при любом числе игр */
.brcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.brc { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-height: 150px; padding: 16px 18px;
  background: var(--b-panel); border: 1px solid var(--b-line); color: #fff !important; text-decoration: none;
  transition: border-color .25s, transform .35s cubic-bezier(.16, 1, .3, 1); }
.brc > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: saturate(.7); transition: opacity .35s, transform .6s cubic-bezier(.16, 1, .3, 1); }
.brc::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 13, 17, .35), rgba(10, 13, 17, .92) 75%); }
.brc:hover { border-color: rgba(43, 214, 107, .5); transform: translateY(-2px); }
.brc:hover > img { opacity: .42; transform: scale(1.04); }
.brc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.brc-top b { font-family: var(--b-head); font-weight: 700; font-size: 20px; text-transform: capitalize; }
.brc-top span { font-family: var(--b-head); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--b-dim); white-space: nowrap; }
.brc-sc { font-family: var(--b-head); font-weight: 700; font-size: 40px; line-height: 1; color: var(--b-faint); font-variant-numeric: tabular-nums; }
.brc-sc i { font-style: normal; margin: 0 8px; color: #4A515C; }
.brc-sc .w { color: #fff; }
.brc-foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 13px; color: var(--b-dim); }
.brc-best { color: var(--b-green); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 900px) { .brcs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .brcs { grid-template-columns: minmax(0, 1fr); } .brc { min-height: 120px; } .brc-sc { font-size: 34px; } }
@media (prefers-reduced-motion: reduce) { .brc, .brc > img { transition: none; } .brc:hover, .brc:hover > img { transform: none; } }

/* ===== 14. Подсказки ников в админке ===== */
.nsg { position: relative; flex: 1 1 180px; min-width: 0; }
.nsg > .input { width: 100%; }
.nsg-list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; max-height: 320px; overflow-y: auto;
  background: #12161C; border: 1px solid rgba(43, 214, 107, .35); box-shadow: 0 18px 40px rgba(0, 0, 0, .55); animation: nsgIn .16s ease-out; }
.nsg-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; cursor: pointer; color: #E8ECF1; font-size: 15px; }
.nsg-list li img, .nsg-av { width: 28px; height: 28px; flex: none; object-fit: cover; background: #1C222B; }
.nsg-av { display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; color: var(--b-green); }
.nsg-list li.on, .nsg-list li:hover { background: rgba(43, 214, 107, .12); }
.nsg-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.nsg-tag { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--b-dim); white-space: nowrap; }
.nsg-b { display: inline-flex; align-items: center; gap: 5px; color: var(--b-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nsg-coin { width: 14px; height: 14px; background: url(art/coin.svg) center / contain no-repeat; }
.nsg-list li.nsg-empty { cursor: default; color: var(--b-dim); }
.nsg-list li.nsg-empty:hover { background: none; }
@keyframes nsgIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nsg-list { animation: none; } }

/* ===== 14. Скины: модели → окно со скинами одной модели ===== */
.sk-model .n { font-size: 17px; }
.sk-model .w { color: var(--b-dim, #9aa3ad); font-size: 13px; }
.sk-model.on .w { color: var(--b-green, #2BD66B); }
.sk-model::after { content: "→"; position: absolute; right: 14px; bottom: 12px; color: var(--b-dim, #9aa3ad); font-size: 16px; transition: transform .25s, color .25s; }
.sk-model:hover::after { transform: translateX(3px); color: var(--b-green, #2BD66B); }
.sk-model { position: relative; }
.sk-std .sk-img { color: #5a636e; }

.sk-mdl { width: min(1180px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px;
  background: #0f1317; color: #fff; display: none; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.sk-mdl[open] { display: flex; animation: skMdlIn .32s cubic-bezier(.16, 1, .3, 1); }
.sk-mdl::backdrop { background: rgba(5, 7, 9, .72); backdrop-filter: blur(4px); }
@keyframes skMdlIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.sk-mdl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 18px 22px; border-bottom: 1px solid rgba(255, 255, 255, .07); background: #12171c; }
.sk-mdl-t { flex: 1 1 220px; min-width: 0; }
.sk-mdl-t h2 { margin: 0; font-family: var(--b-head, inherit); font-size: 28px; line-height: 1.1; text-transform: uppercase; }
.sk-mdl-t p { margin: 4px 0 0; color: var(--b-dim, #9aa3ad); font-size: 14px; }
.sk-mdl-search { flex: 0 1 300px; margin: 0; }
.sk-mdl-grid { padding: 18px 22px 22px; overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; align-content: start; }
.sk-mdl > .sk-more { margin: 0 22px 20px; }
@media (max-width: 640px) {
  .sk-mdl { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .sk-mdl-head { padding: 14px 16px; }
  .sk-mdl-search { flex: 1 1 100%; }
  .sk-mdl-grid { padding: 14px 16px 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .sk-mdl[open] { animation: none; } .sk-model::after { transition: none; } }

/* ===== 15. Кнопка Steam: ожидание ===== */
a.is-busy { pointer-events: none; opacity: .85; }
.steam-spin { display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: steamSpin .8s linear infinite; }
@keyframes steamSpin { to { transform: rotate(360deg); } }
.steam-wait { margin: 8px 0 0; font-size: 13px; color: var(--b-dim, #9aa3ad); }
@media (prefers-reduced-motion: reduce) { .steam-spin { animation-duration: 2.4s; } }

/* ===== 16. Тикеты: новое сообщение подсвечивается ===== */
.tk-new-msg { animation: tkNew 1.6s ease-out; }
@keyframes tkNew { from { box-shadow: 0 0 0 2px rgba(43, 214, 107, .8); } to { box-shadow: 0 0 0 2px rgba(43, 214, 107, 0); } }
@media (prefers-reduced-motion: reduce) { .tk-new-msg { animation: none; } }

/* ===== 17. Привязка Steam через игру ===== */
.steam-game-btn { margin-left: 4px; }
.sg-dialog { width: min(540px, calc(100vw - 32px)); padding: 26px 28px 22px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .08); background: #0f1317; color: #fff; }
.sg-dialog::backdrop { background: rgba(5, 7, 9, .72); }
.sg-lead { font-size: 14px; margin: 6px 0 16px; }
.sg-code { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 18px; border-radius: 14px; background: #0b0f0c; border: 1px solid rgba(43, 214, 107, .45); }
.sg-code span { font: 700 22px ui-monospace, Menlo, monospace; color: var(--b-dim, #9aa3ad); }
.sg-code b { font: 800 34px ui-monospace, Menlo, monospace; letter-spacing: .12em; color: #fff; }
.sg-code .btn { margin-left: auto; }
.sg-steps { margin: 16px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.sg-steps kbd { padding: 1px 6px; border-radius: 5px; border: 1px solid #3a423c; background: #151a16; font: 700 12px ui-monospace, monospace; }
.sg-status { margin: 16px 0 4px; font-size: 14px; color: var(--b-dim, #9aa3ad); }
.sg-status .g { color: var(--b-green, #2BD66B); }

/* ===== 18. Скины: агенты ===== */
.sk-agent-note { padding: 4px 4px 6px; font-size: 14px; color: var(--b-dim, #9aa3ad); }
.sk-agent .sk-img img { object-fit: contain; max-height: 150px; }
.sk-agent-std { display: flex; align-items: center; justify-content: center; font: 800 42px var(--b-head, sans-serif); color: #3b4440; }

/* ===== 19. Админка: страница Майнкрафта ===== */
.amc-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.amc-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--b-dim, #9aa3ad); }
.amc-wide { grid-column: 1 / -1; }
.amc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) { .amc-grid { grid-template-columns: 1fr; } }

/* ===== 20. Оживление главной: интерактивная сетка точек, карточка сервера CS2, курсорный блик и скролл ===== */
.bhero { position: relative; isolation: isolate; }
.bhero > .hx-dots { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .72; mix-blend-mode: screen; }
.bhero .bhero-in { position: relative; z-index: 2; }

/* Живая карточка сервера CS2 на первом экране (когда нет активного раунда) */
.bscore.bscore-idle { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; background: linear-gradient(165deg, rgba(19, 25, 22, .92), rgba(12, 15, 18, .95)); border: 1px solid rgba(43, 214, 107, .28); border-radius: 12px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .05); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.bscore-srv { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bscore-srv-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bscore-srv-main b { font-family: var(--b-head); font-size: 26px; line-height: 1.1; color: #fff; text-transform: uppercase; letter-spacing: .02em; }
.bscore-srv-main span { font-size: 13px; color: var(--b-dim, #9aa3ad); }
.bscore-tick { flex: none; padding: 4px 9px; border-radius: 6px; background: rgba(43, 214, 107, .12); border: 1px solid rgba(43, 214, 107, .32); color: var(--b-green, #2BD66B); font: 800 11px/1.2 var(--b-head, sans-serif); letter-spacing: .08em; }
.bscore-connect { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 8px; background: rgba(7, 10, 11, .88); border: 1px solid var(--b-line, #232a31); }
.bscore-connect code { font: 600 13px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #dbe5de; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bscore-copy { flex: none; padding: 5px 11px; border-radius: 6px; border: 1px solid rgba(43, 214, 107, .35); background: rgba(43, 214, 107, .1); color: var(--b-green, #2BD66B); font: 700 12px/1.2 var(--b-body, sans-serif); cursor: pointer; transition: background .18s, color .18s, border-color .18s; }
.bscore-copy:hover, .bscore-copy.copied { background: var(--b-green, #2BD66B); color: #04140A; border-color: var(--b-green, #2BD66B); }
.bscore-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bscore-actions .bbtn { flex: 1 1 120px; justify-content: center; }
.bscore-menu-hint { font-size: 12px; color: var(--b-dim, #9aa3ad); padding-top: 4px; border-top: 1px solid rgba(255, 255, 255, .06); }
.bscore-menu-hint kbd { display: inline-block; padding: 1px 6px; border-radius: 4px; background: rgba(43, 214, 107, .14); border: 1px solid rgba(43, 214, 107, .32); color: #fff; font: 700 11px ui-monospace, monospace; }

/* Изумрудный блик под курсором на карточках (.spot) и перелив кнопок */
@media (hover: hover) {
  .bbtn-g { position: relative; overflow: hidden; }
  .bbtn-g::after { content: ""; position: absolute; top: 0; bottom: 0; left: -65%; width: 42%; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .42), transparent); transform: skewX(-20deg); transition: left .65s ease; }
  .bbtn-g:hover::after { left: 135%; }

  .blob, .btop-one, .bcs16-strip, .bstep, .bme-stats > div, .bscore { position: relative; overflow: hidden; transition: border-color .25s, transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s; }
  .blob.spot, .btop-one.spot, .bcs16-strip.spot, .bstep.spot, .bme-stats > div.spot, .bscore.spot {
    border-color: rgba(43, 214, 107, .48);
    background-image: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(43, 214, 107, .11), transparent 70%);
  }
  .blob:hover, .bstep:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -20px rgba(43, 214, 107, .45); }
}

/* Плавное появление секций главной при прокрутке */
.sec-anim { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1); }
.sec-anim.sec-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .sec-anim { opacity: 1; transform: none; transition: none; } }
