/* ============================================================
   BL-Modern · Личный кабинет (общие стили для всех страниц)
   ============================================================ */
:root {
    --bg:     #080e18;
    --s1:     rgba(255,255,255,0.035);
    --s2:     rgba(255,255,255,0.055);
    --border: rgba(255,255,255,0.08);
    --bh:     rgba(255,255,255,0.13);
    --text:   #dce8f4;
    --muted:  #6e8da6;
    --faint:  #3d5468;
    --gold:   #f5cc00;
    --gold-d: #c9a700;
    --green:  #18d98a;
    --red:    #e04060;
    --radius: 14px;
    --tr:     .18s ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-width: none; -ms-overflow-style: none; }
::-webkit-scrollbar { display: none; width: 0; height: 0; }
[hidden] { display: none !important; }
body {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    background: var(--bg); color: var(--text);
    overflow-x: hidden; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

/* ── BACKGROUND ── */
.bg-wrap { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg-photo { position: absolute; inset: -4%; background: url('background.png') center / cover no-repeat; filter: brightness(.34) saturate(.7); transform: scale(1.04); }
.bg-vignette { position: absolute; inset: 0; background:
    radial-gradient(ellipse 110% 70% at 50% 0%, rgba(8,14,24,.05), rgba(8,14,24,.55) 60%),
    linear-gradient(180deg, rgba(8,14,24,.35), rgba(8,14,24,.82) 80%); }

.wrap { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

/* ── HEADER ── */
.topbar { position: sticky; top: 0; z-index: 100; background: rgba(8,14,24,.88); border-bottom: 1px solid var(--border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.topbar-inner { width: min(1160px, calc(100% - 48px)); min-height: 72px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; }
.brand strong { display: block; color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700; line-height: 1; }
.brand em { display: block; margin-top: 3px; color: var(--gold); font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-style: normal; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 18px; border-radius: 11px; border: 1px solid transparent; color: #0a1119; background: var(--gold); font-weight: 700; cursor: pointer; transition: filter var(--tr), background var(--tr), border-color var(--tr); }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { color: var(--text); background: var(--s2); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--bh); }

main { padding: 40px 0 80px; }

.panel { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--s1); }
.panel + .panel { margin-top: 16px; }
.panel > h2 { margin: 0 0 14px; color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 700; }
.panel > h2:not(:first-child) { margin-top: 6px; }
.page-title { margin: 0 0 4px; color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; }
.page-sub { color: var(--muted); font-size: .92rem; margin: 0 0 18px; }

/* ── SHELL (sidebar + content) ── */
.cab-shell { display: grid; grid-template-columns: 246px minmax(0, 1fr); gap: 18px; align-items: start; }
.cab-nav { position: sticky; top: 92px; display: grid; gap: 14px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--s1); }
.cab-me { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.cab-me .profile-avatar { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; font-size: 1.25rem; }
.cab-me-body { min-width: 0; }
.cab-me-body strong { display: block; color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 1.02rem; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cab-me-lv { display: block; color: var(--gold); font-size: .78rem; font-weight: 700; }
.cab-links { display: grid; gap: 5px; }
.cab-link { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: .92rem; border: 1px solid transparent; transition: var(--tr); }
.cab-link i { width: 18px; text-align: center; }
.cab-link:hover { color: var(--text); background: var(--s2); }
.cab-link.is-active { color: #0a1119; background: var(--gold); border-color: transparent; }
.cab-srv { display: grid; gap: 7px; padding-top: 12px; border-top: 1px solid var(--border); }
.cab-srv-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .82rem; }
.cab-srv-row b { color: var(--muted); font-weight: 700; }
.cab-content { min-width: 0; }

/* ── AUTH ── */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.cabinet-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.cabinet-tab { min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); background: var(--s2); font-weight: 700; cursor: pointer; transition: var(--tr); }
.cabinet-tab:hover { color: var(--text); border-color: var(--bh); }
.cabinet-tab.is-active { color: #0a1119; background: var(--gold); border-color: transparent; }
.cabinet-form { display: none; gap: 12px; }
.cabinet-form.is-active { display: grid; }
.cabinet-field { display: grid; gap: 6px; }
.cabinet-field span { color: var(--faint); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cabinet-field input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); color: #fff; background: var(--s2); outline: none; transition: border-color var(--tr); }
.cabinet-field input:focus { border-color: rgba(245,204,0,.5); }
.field-pass { position: relative; }
.field-pass input { padding-right: 46px; }
.pass-toggle { position: absolute; right: 6px; bottom: 6px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.pass-toggle:hover { color: var(--text); }
.cabinet-message { display: none; margin-top: 12px; padding: 12px 14px; border-radius: 10px; color: #fff; background: rgba(224,64,96,.14); border: 1px solid rgba(224,64,96,.28); }
.cabinet-message.is-success { background: rgba(24,217,138,.12); border-color: rgba(24,217,138,.28); }
.cabinet-agree { display: flex; gap: 9px; align-items: flex-start; color: var(--muted); font-size: .84rem; line-height: 1.4; cursor: pointer; }
.cabinet-agree input { margin-top: 3px; accent-color: var(--gold); flex-shrink: 0; }
.cabinet-agree a { color: var(--gold); }

/* ── PROFILE AVATAR ── */
.profile-avatar { width: 64px; height: 64px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; color: #0a1119; background: linear-gradient(135deg, var(--gold), var(--green)); font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 700; overflow: hidden; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }

/* ── LEVEL CARD ── */
.level-card { padding: 18px; border-radius: 12px; margin-bottom: 16px; border: 1px solid rgba(245,204,0,.22); background: linear-gradient(135deg, rgba(245,204,0,.08), transparent 55%), var(--s2); }
.level-top { display: flex; align-items: center; gap: 14px; }
.level-badge { width: 56px; height: 56px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; background: rgba(245,204,0,.14); border: 1px solid rgba(245,204,0,.3); }
.level-badge b { font-family: 'Space Grotesk', sans-serif; color: var(--gold); font-size: 1.7rem; line-height: 1; }
.level-meta { flex: 1; min-width: 0; }
.level-meta .lv-title { display: block; color: #fff; font-weight: 700; font-size: 1.05rem; }
.level-meta .lv-sub { display: block; color: var(--muted); font-size: .82rem; }
.level-meta .lv-count { color: var(--gold); font-weight: 700; }
.xp-bar { margin-top: 12px; height: 9px; border-radius: 999px; background: var(--s1); overflow: hidden; border: 1px solid var(--border); }
.xp-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--green)); transition: width .5s ease; }
.xp-text { display: flex; justify-content: space-between; margin-top: 6px; color: var(--faint); font-size: .74rem; font-weight: 700; }

.section-title { margin: 18px 0 10px; color: var(--faint); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-title:first-child { margin-top: 2px; }

/* ── HOME ── */
.pt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pt-card { position: relative; padding: 16px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--s2); }
.pt-card.total { border-color: rgba(245,204,0,.26); background: linear-gradient(135deg, rgba(245,204,0,.09), transparent 58%), var(--s2); }
.pt-card .pt-top { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.pt-ic { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 9px; font-size: .92rem; }
.pt-name { color: #fff; font-weight: 700; font-size: .92rem; line-height: 1.15; }
.pt-name small { display: block; color: var(--faint); font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.pt-val { color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.7rem; line-height: 1; }
.pt-val small { font-size: .8rem; font-weight: 600; color: var(--muted); margin-left: 3px; }
.pt-sub { display: block; color: var(--faint); font-size: .74rem; font-weight: 700; margin-top: 5px; }
.pt-share { height: 6px; border-radius: 999px; background: var(--s1); margin-top: 11px; overflow: hidden; }
.pt-share > i { display: block; height: 100%; border-radius: 999px; }
.home-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.hq { display: flex; align-items: center; gap: 11px; padding: 13px 14px; border-radius: 11px; border: 1px solid var(--border); background: var(--s2); }
.hq > i { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; font-size: 1rem; }
.hq .hq-v { display: block; color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; line-height: 1.1; }
.hq .hq-l { display: block; color: var(--muted); font-size: .76rem; }

/* ── INFO CHIPS ── */
.info-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--s2); color: var(--text); font-size: .82rem; font-weight: 700; }
.chip i { font-size: .8rem; }
.chip.srv i { color: var(--green); }
.chip.rank i { color: var(--gold); }
.chip.rank b { color: var(--gold); }
.chip small { color: var(--muted); font-weight: 600; }

/* ── GAME STAT TILES ── */
.game-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gs-tile { padding: 12px 13px; border-radius: 10px; border: 1px solid var(--border); background: var(--s2); }
.gs-val { display: block; color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.18rem; }
.gs-val small { font-size: .68rem; font-weight: 600; color: var(--faint); margin-left: 2px; }
.gs-label { display: block; color: var(--muted); font-size: .76rem; margin-top: 2px; }
.gs-rank { display: inline-block; margin-top: 7px; padding: 2px 8px; border-radius: 999px; font-size: .68rem; font-weight: 800; color: var(--gold); background: rgba(245,204,0,.12); }
.gs-rank.top1 { color: #0a1119; background: var(--gold); }
.gs-empty { color: var(--muted); padding: 6px 0; }

/* ── CLOSEST ACHIEVEMENTS ── */
.near-strip { display: grid; gap: 8px; }
.near-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--border); background: var(--s2); }
.near-item .ni-ic { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; font-size: .95rem; }
.near-item .ni-body { min-width: 0; }
.near-item .ni-name { display: block; color: #fff; font-weight: 700; font-size: .92rem; }
.near-item .ni-prog { display: block; color: var(--muted); font-size: .76rem; }
.near-bar { height: 6px; border-radius: 999px; background: var(--s1); margin-top: 5px; overflow: hidden; }
.near-bar > i { display: block; height: 100%; border-radius: 999px; background: var(--green); }
.near-item .ni-pct { font-family: 'Space Grotesk', sans-serif; color: var(--green); font-weight: 700; font-size: .95rem; }

/* ── ACHIEVEMENTS ── */
.ach-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 14px; }
.ach-filter { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); background: var(--s2); font-weight: 700; font-size: .84rem; cursor: pointer; transition: var(--tr); }
.ach-filter:hover { color: var(--text); border-color: var(--bh); }
.ach-filter.is-active { color: #0a1119; background: var(--gold); border-color: transparent; }
.ach-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 12px; }
.ach-select { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--s2); color: var(--text); font-weight: 700; font-size: .84rem; cursor: pointer; outline: none; }
.ach-select:focus { border-color: rgba(245,204,0,.5); }
.ach-select option { background: #0e1726; color: #eaf1f8; font-weight: 600; }
.ach-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ach { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 13px; border-radius: 11px; border: 1px solid var(--border); background: var(--s2); transition: var(--tr); }
.ach.locked { opacity: .82; }
.ach.earned { border-color: rgba(245,204,0,.28); background: linear-gradient(135deg, rgba(245,204,0,.07), transparent 60%), var(--s2); }
.ach-ic { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; font-size: 1.05rem; position: relative; }
.ach.locked .ach-ic { filter: grayscale(.7); opacity: .7; }
.ach-ic .lock { position: absolute; right: -3px; bottom: -3px; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); color: var(--faint); font-size: .6rem; }
.ach-body { min-width: 0; }
.ach-name { display: block; color: #fff; font-weight: 700; font-size: .94rem; }
.ach-desc { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.ach-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.ach-xp { font-size: .76rem; font-weight: 800; }
.ach.earned .ach-xp { color: var(--gold); }
.ach.locked .ach-xp { color: var(--faint); }
.ach-done { color: var(--green); font-size: .78rem; font-weight: 800; }
.ach-pbar { flex: 1; height: 6px; border-radius: 999px; background: var(--s1); overflow: hidden; }
.ach-pbar > i { display: block; height: 100%; border-radius: 999px; background: var(--muted); }
.ach-pnum { color: var(--faint); font-size: .72rem; font-weight: 700; white-space: nowrap; }

/* ── SECURITY ── */
.sec-block { padding: 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--s2); margin-bottom: 12px; }
.sec-block h3 { margin: 0 0 4px; color: #fff; font-size: 1.02rem; font-family: 'Space Grotesk', sans-serif; }
.sec-block .sec-hint { color: var(--muted); font-size: .84rem; margin: 0 0 12px; }
.sec-form { display: grid; gap: 10px; }
.sec-row { display: grid; gap: 6px; }
.sec-row span { color: var(--faint); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sec-row input { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); color: #fff; background: var(--s1); outline: none; transition: border-color var(--tr); }
.sec-row input:focus { border-color: rgba(245,204,0,.5); }
.sec-row.two { grid-template-columns: 1fr auto; align-items: end; gap: 8px; }
.sec-msg { display: none; margin-top: 4px; padding: 10px 12px; border-radius: 10px; font-size: .86rem; color: #fff; background: rgba(224,64,96,.14); border: 1px solid rgba(224,64,96,.28); }
.sec-msg.is-success { background: rgba(24,217,138,.12); border-color: rgba(24,217,138,.28); }

/* ── LOGIN HISTORY ── */
.hist-grid { display: grid; gap: 8px; }
.hist-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border-radius: 10px; background: var(--s1); border: 1px solid var(--border); }
.hist-l { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .84rem; font-weight: 600; }
.hist-l i { color: var(--faint); width: 16px; text-align: center; }
.hist-v { color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: .92rem; text-align: right; word-break: break-all; }

/* ── SHARE ── */
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* ── SUBSCRIPTIONS ── */
.sub-top { display: flex; justify-content: center; margin-bottom: 18px; }
.sub-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--s2); }
.sub-tg { min-height: 38px; padding: 0 24px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; transition: var(--tr); }
.sub-tg.is-on { color: #0a1119; background: var(--gold); box-shadow: 0 4px 14px rgba(245,204,0,.28); }

.sub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sub-card {
    position: relative; display: flex; flex-direction: column; padding: 22px 18px 18px; overflow: hidden;
    border-radius: 16px; border: 1px solid var(--border); background: var(--s2);
    transition: transform var(--tr), border-color var(--tr), box-shadow var(--tr);
}
.sub-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--tc); }
.sub-card::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(120% 80% at 50% -10%, var(--tc), transparent 55%); opacity: .12; }
.sub-card > * { position: relative; z-index: 1; }
.sub-card:hover { transform: translateY(-4px); border-color: var(--tc); box-shadow: 0 16px 34px rgba(0,0,0,.35); }
.sub-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sub-ic { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; font-size: 1.35rem; color: #0a1119; background: var(--tc); }
.sub-name { color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.35rem; }
.sub-price { margin-bottom: 14px; }
.sub-price b { color: var(--tc); font-family: 'Space Grotesk', sans-serif; font-size: 2rem; }
.sub-price small { color: var(--muted); font-weight: 600; margin-left: 6px; }
.sub-feats { list-style: none; display: grid; gap: 8px; margin: 0 0 18px; padding: 0; flex: 1; }
.sub-feats li { color: var(--text); font-size: .85rem; line-height: 1.4; display: flex; gap: 8px; align-items: flex-start; }
.sub-feats li i { color: var(--tc); margin-top: 3px; font-size: .78rem; }
.sub-buy { width: 100%; border: 0; color: #0a1119; font-weight: 800; }
.sub-buy:hover { filter: brightness(1.08); }

/* checkout (ник + e-mail при покупке) */
.sub-checkout { margin-top: 18px; padding: 18px; border-radius: 14px; border: 1px solid var(--bh); background: var(--s1); }
.sub-co-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sub-co-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; font-size: 1.2rem; }
.sub-co-title { color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.15rem; }
.sub-co-sub { color: var(--muted); font-size: .9rem; }
.sub-co-sub b { color: #fff; }
.sub-co-l { display: block; color: var(--faint); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 12px 0 6px; }
.sub-co-i { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); color: #fff; background: var(--s2); outline: none; transition: border-color var(--tr); }
.sub-co-i:focus { border-color: rgba(245,204,0,.5); }
.sub-co-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sub-co-act .btn { border: 0; color: #0a1119; font-weight: 800; }
.sub-co-act .btn.ghost { color: var(--text); background: var(--s2); border: 1px solid var(--border); }
.sub-pm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sub-pm { display: flex; align-items: center; gap: 8px; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--border); background: var(--s2); cursor: pointer; font-weight: 700; font-size: .86rem; color: var(--text); }
.sub-pm span { flex: 1; }
.sub-pm b { color: #fff; }
.sub-pm input { accent-color: var(--gold); }
.sub-pm-bal { color: var(--muted); font-size: .82rem; margin-top: 8px; }
.sub-pm-bal b { color: var(--gold); }
.sub-co-agree { display: flex; gap: 9px; align-items: flex-start; margin-top: 12px; color: var(--muted); font-size: .84rem; line-height: 1.4; cursor: pointer; }
.sub-co-agree input { margin-top: 3px; accent-color: var(--gold); flex-shrink: 0; }
.sub-co-agree a { color: var(--gold); }
.sub-co-note { margin: 10px 0 4px; padding: 9px 12px; border-radius: 9px; background: var(--s1); border: 1px solid var(--border); color: var(--muted); font-size: .82rem; line-height: 1.4; }
@media (max-width: 560px) { .sub-pm-row { grid-template-columns: 1fr; } }

.sub-note { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: .88rem; }
.sub-note.is-ok { display: block; color: #fff; background: rgba(24,217,138,.12); border: 1px solid rgba(24,217,138,.28); }
.sub-note.is-err { display: block; color: #fff; background: rgba(224,64,96,.14); border: 1px solid rgba(224,64,96,.28); }
@media (max-width: 760px) { .sub-grid { grid-template-columns: 1fr; } }

/* ── GUIDES ── */
.gd-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.gd-search { flex: 1; min-width: 180px; min-height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); color: #fff; background: var(--s2); outline: none; }
.gd-search:focus { border-color: rgba(245,204,0,.5); }
.gd-write { margin-left: auto; color: #0a1119; }
.gd-top { background: var(--s2); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; }
.gd-top-h { color: #fff; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.gd-top-h i { color: var(--gold); }
.gd-top-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.gd-top-i { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 10px; background: var(--s1); text-decoration: none; }
.gd-top-rk { font-size: 1.05rem; min-width: 24px; text-align: center; font-weight: 800; color: var(--muted); }
.gd-top-av { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--gold); color: #0a1119; font-weight: 800; flex: none; }
.gd-top-nm { color: #fff; font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.gd-top-st { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.gd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gd-card { display: flex; flex-direction: column; border-radius: 14px; border: 1px solid var(--border); background: var(--s2); overflow: hidden; transition: transform var(--tr), border-color var(--tr); }
.gd-card:hover { transform: translateY(-3px); border-color: var(--bh); }
.gd-cover { position: relative; height: 96px; display: grid; place-items: center; font-size: 2rem; background: var(--s1); }
.gd-ok { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .66rem; font-weight: 800; color: #0a1119; background: var(--green); }
.gd-cbody { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.gd-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.gd-tag { padding: 3px 9px; border-radius: 999px; font-size: .7rem; font-weight: 700; color: var(--muted); border: 1px solid var(--border); }
.gd-diff { font-size: .72rem; font-weight: 800; }
.gd-title { color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.05rem; line-height: 1.25; margin-bottom: 6px; }
.gd-excerpt { color: var(--muted); font-size: .84rem; line-height: 1.4; flex: 1; margin-bottom: 12px; }
.gd-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--faint); font-size: .76rem; font-weight: 700; }
.gd-meta i { margin-right: 4px; }

/* guide view */
.gd-back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; font-size: .86rem; margin-bottom: 14px; }
.gd-back:hover { color: var(--text); }
.gd-art-title { color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 700; line-height: 1.1; margin: 8px 0; }
.gd-art-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--faint); font-size: .8rem; font-weight: 700; margin-bottom: 18px; }
.gd-art-meta i { margin-right: 5px; }
.gd-body { color: var(--text); line-height: 1.75; overflow-wrap: anywhere; word-break: break-word; }
.gd-body h2 { color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; margin: 22px 0 10px; }
.gd-body h3 { color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; margin: 18px 0 8px; }
.gd-body h4 { color: var(--text); font-size: 1.02rem; margin: 14px 0 6px; }
.gd-body p { margin: 0 0 12px; }
.gd-body ul, .gd-body ol { margin: 0 0 12px; padding-left: 22px; }
.gd-body li { margin-bottom: 5px; }
.gd-body a { color: var(--gold); }
.gd-body code { font-family: 'Space Grotesk', monospace; background: var(--s2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; font-size: .88em; color: #ffe98a; }
.gd-body pre.gd-code { background: #0b1320; border: 1px solid var(--border); border-radius: 10px; padding: 14px; overflow-x: auto; margin: 0 0 14px; }
.gd-body pre.gd-code code { background: none; border: 0; padding: 0; color: #cfe3f5; }
.gd-body blockquote { border-left: 3px solid var(--gold); background: var(--s1); padding: 10px 14px; border-radius: 0 10px 10px 0; color: var(--muted); margin: 0 0 14px; }
.gd-body img { max-width: 100%; border-radius: 10px; }
.gd-body hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
.gd-art-title, .gd-title, .gd-excerpt, .gd-mytitle, .gd-modtitle, .gd-ctext, .nw-title, .nw-ex, .gd-art-meta { overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
.gd-vote { display: flex; gap: 10px; margin: 20px 0; }
.gd-vbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--s2); color: var(--muted); font-weight: 800; cursor: pointer; transition: var(--tr); }
.gd-vbtn:hover { color: var(--text); border-color: var(--bh); }
.gd-vbtn.is-up { color: #0a1119; background: var(--green); border-color: transparent; }
.gd-vbtn.is-down { color: #fff; background: var(--red); border-color: transparent; }
.gd-cform { display: grid; gap: 8px; margin-bottom: 16px; }
.gd-cform textarea { width: 100%; min-height: 80px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); color: #fff; background: var(--s2); outline: none; resize: vertical; font-family: inherit; }
.gd-cform textarea:focus { border-color: rgba(245,204,0,.5); }
.gd-cform .btn { justify-self: start; }
.gd-comments { display: grid; gap: 10px; }
.gd-comment { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--s2); }
.gd-cav { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #0a1119; background: linear-gradient(135deg, var(--gold), var(--green)); font-weight: 700; }
.gd-chead { display: flex; gap: 8px; align-items: baseline; }
.gd-chead b { color: #fff; }
.gd-chead small { color: var(--faint); font-size: .74rem; }
.gd-ctext { color: var(--text); font-size: .9rem; margin-top: 2px; }

/* editor */
.gd-editor { display: grid; gap: 12px; }
.gd-editor select option, .gd-editor input::placeholder { background: #0e1726; color: #eaf1f8; }
.gd-editor select option { font-weight: 600; }
.gd-mdbar { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 6px; margin-bottom: 10px; border-radius: 11px; border: 1px solid var(--border); background: var(--s1); }
.gd-tb { min-width: 38px; height: 34px; padding: 0 11px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: .92rem; transition: var(--tr); }
.gd-tb:hover { background: var(--s2); color: var(--gold); }
.gd-cover-up { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; }
.gd-cover-prev { position: relative; width: 156px; height: 88px; flex-shrink: 0; border-radius: 12px; border: 1px solid var(--border); background: var(--s2); overflow: hidden; display: grid; place-items: center; color: var(--faint); font-size: .74rem; text-align: center; padding: 6px; }
.gd-cover-prev img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gd-cover-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; display: none; place-items: center; border: 0; border-radius: 8px; background: rgba(8,14,24,.7); color: #fff; cursor: pointer; }
.gd-cover-x:hover { background: var(--red); }
.gd-cover-prev.has-img .gd-cover-x { display: grid; }
.gd-file-btn { flex: 1; min-width: 220px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 88px; padding: 0 16px; border-radius: 12px; border: 1.5px dashed var(--bh); background: var(--s1); color: var(--muted); cursor: pointer; font-weight: 700; font-size: .9rem; transition: var(--tr); }
.gd-file-btn:hover { border-color: var(--gold); color: var(--text); background: var(--s2); }
.gd-file-btn i { font-size: 1.1rem; color: var(--gold); }
.gd-file-btn input { display: none; }
.gd-erow { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.gd-editor label { display: block; color: var(--faint); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.gd-editor input, .gd-editor select { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); color: #fff; background: var(--s2); outline: none; }
.gd-edit-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gd-edit-split textarea { width: 100%; min-height: 360px; padding: 14px; border-radius: 10px; border: 1px solid var(--border); color: #fff; background: var(--s2); outline: none; resize: vertical; font-family: 'Space Grotesk', monospace; line-height: 1.6; }
.gd-preview { min-height: 360px; padding: 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--s1); overflow: auto; }
.gd-eact { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .gd-edit-split { grid-template-columns: 1fr; } }

/* ── GUIDES refresh ── */
.gd-subnav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.gd-subnav a { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--s2); color: var(--muted); font-weight: 700; font-size: .86rem; transition: var(--tr); }
.gd-subnav a:hover { color: var(--text); border-color: var(--bh); }
.gd-subnav a.is-active { color: #0a1119; background: var(--gold); border-color: transparent; }
.gd-cover { gap: 0; }
.gd-card { --mc: var(--gold); }
.gd-card:hover { border-color: color-mix(in srgb, var(--mc) 60%, var(--border)); }
.gd-score { position: absolute; bottom: 8px; left: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 800; color: #fff; background: rgba(8,14,24,.6); backdrop-filter: blur(4px); }
.gd-cfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; }
.gd-author { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: .82rem; font-weight: 700; }
.gd-aav { width: 24px; height: 24px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; color: #0a1119; background: linear-gradient(135deg, var(--gold), var(--green)); font-size: .72rem; font-weight: 800; }
.gd-cstats { display: inline-flex; gap: 12px; color: var(--faint); font-size: .76rem; font-weight: 700; }
.gd-cstats i { margin-right: 3px; }
.gd-art-hero { height: 150px; border-radius: 14px; display: grid; place-items: center; font-size: 3rem; margin-bottom: 16px; border: 1px solid var(--border); }

/* my guides */
.gd-myhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.gd-mystat { color: var(--muted); font-size: .92rem; }
.gd-mystat b { color: #fff; }
.gd-write { color: #0a1119; }
.gd-mylist { display: grid; gap: 10px; }
.gd-myrow { padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--s2); }
.gd-mymain { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.gd-mytitle { color: #fff; font-weight: 700; font-size: .98rem; flex: 1; min-width: 160px; }
.gd-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; border: 1px solid; font-size: .74rem; font-weight: 800; }
.gd-reason { margin-top: 8px; padding: 8px 12px; border-radius: 8px; background: rgba(224,64,96,.1); border: 1px solid rgba(224,64,96,.25); color: #f4b8c4; font-size: .82rem; }
.gd-reason i { color: var(--red); margin-right: 6px; }
.gd-myfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.gd-myact { display: flex; flex-wrap: wrap; gap: 8px; }
.gd-sm { min-height: 36px; padding: 0 14px; font-size: .82rem; }

/* moderation */
.gd-modnote { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(245,204,0,.08); border: 1px solid rgba(245,204,0,.22); color: var(--text); font-size: .88rem; margin-bottom: 16px; }
.gd-modnote i { color: var(--gold); }
.gd-modcard { padding: 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--s2); margin-bottom: 12px; }
.gd-modtop { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.gd-moddate { color: var(--faint); font-size: .78rem; font-weight: 700; margin-left: auto; }
.gd-modtitle { color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.gd-modact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.gd-reward { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .84rem; font-weight: 700; }
.gd-reward i { color: var(--gold); }
.gd-rew { width: 80px; min-height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--s1); color: #fff; outline: none; text-align: center; }
.gd-rew:focus { border-color: rgba(245,204,0,.5); }
.gd-approve { color: #0a1119; }
.gd-rejbox { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gd-rejreason { flex: 1; min-width: 200px; min-height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--s1); color: #fff; outline: none; }
.gd-rejreason:focus { border-color: rgba(224,64,96,.5); }

/* ── NEWS ── */
.nw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.nw-card { display: flex; flex-direction: column; border-radius: 14px; border: 1px solid var(--border); background: var(--s2); overflow: hidden; transition: transform var(--tr), border-color var(--tr); }
.nw-card:hover { transform: translateY(-3px); border-color: var(--bh); }
.nw-cover { position: relative; height: 120px; display: grid; place-items: center; font-size: 2.4rem; }
.nw-cat { position: absolute; top: 10px; left: 10px; padding: 4px 11px; border-radius: 999px; font-size: .7rem; font-weight: 800; color: #0a1119; }
.nw-pin { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: rgba(8,14,24,.6); color: var(--gold); font-size: .8rem; }
.nw-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.nw-date { color: var(--faint); font-size: .76rem; font-weight: 700; }
.nw-title { color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.08rem; line-height: 1.25; }
.nw-ex { color: var(--muted); font-size: .85rem; line-height: 1.45; }

/* ── SKIN ── */
.skin-wrap { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.skin-preview { width: 110px; height: 110px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); background: var(--s1); overflow: hidden; }
.skin-preview img { width: 96px; height: 96px; object-fit: contain; image-rendering: pixelated; }
.skin-preview .skin-none { color: var(--faint); font-size: .76rem; text-align: center; padding: 8px; }
.skin-file { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 14px; border-radius: 10px; border: 1px dashed var(--bh); background: var(--s1); color: var(--text); cursor: pointer; font-weight: 700; font-size: .86rem; }
.skin-file:hover { border-color: var(--gold); }
.skin-file input { display: none; }
.skin-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── IP / SERVERS PANEL ── */
.srv-status { display: grid; gap: 8px; margin-bottom: 14px; }
.srv-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--s2); border: 1px solid var(--border); }
.srv-row .sr-name { color: #fff; font-weight: 700; font-size: .92rem; }
.srv-row .sr-name small { display: block; color: var(--faint); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.srv-state { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.srv-state .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.srv-state.online .dot { background: var(--green); box-shadow: 0 0 0 3px rgba(24,217,138,.18); }
.srv-state.online { color: var(--green); }
.ip-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--s2); border: 1px solid var(--border); }
.ip-row + .ip-row { margin-top: 8px; }
.ip-row small { display: block; color: var(--faint); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 3px; }
.ip-row code { color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: .95rem; }
.ip-copy { min-height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--s1); color: var(--text); font-weight: 700; font-size: .84rem; cursor: pointer; white-space: nowrap; transition: var(--tr); }
.ip-copy:hover { border-color: var(--bh); }
.ip-copy.copied { color: #0a1119; background: var(--green); border-color: transparent; }

footer { padding: 28px 0 40px; color: var(--faint); font-size: .86rem; border-top: 1px solid var(--border); background: rgba(8,14,24,.5); }

/* ── LEGAL DOCS ── */
.legal { max-width: 840px; margin: 0 auto; }
.legal h1 { color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; }
.legal .legal-upd { color: var(--faint); font-size: .84rem; margin: 6px 0 20px; }
.legal h2 { color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; margin: 24px 0 10px; }
.legal h3 { color: var(--text); font-size: 1.02rem; margin: 16px 0 6px; }
.legal p { color: var(--text); line-height: 1.7; margin: 0 0 12px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 22px; color: var(--text); }
.legal li { margin-bottom: 6px; line-height: 1.6; }
.legal a { color: var(--gold); }
.legal .ph { color: var(--gold); font-weight: 700; }
.legal-req { margin-top: 22px; padding: 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--s1); color: var(--muted); font-size: .9rem; }
.legal-req b { color: #fff; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.legal-nav a { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--s2); color: var(--muted); font-size: .84rem; font-weight: 700; }
.legal-nav a:hover { color: var(--text); border-color: var(--bh); }
.legal-nav a.is-active { color: #0a1119; background: var(--gold); border-color: transparent; }

/* ── COOKIE BANNER ── */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300; max-width: 720px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: rgba(12,18,28,.97); backdrop-filter: blur(12px); box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.cookie-bar p { margin: 0; flex: 1; min-width: 220px; color: var(--muted); font-size: .86rem; }
.cookie-bar a { color: var(--gold); }
.cookie-bar .btn { min-height: 40px; }

@media (max-width: 860px) {
    .cab-shell { grid-template-columns: 1fr; }
    .cab-nav { position: static; }
    .cab-links { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 4px; }
    .cab-link { white-space: nowrap; }
}
@media (max-width: 560px) {
    .wrap { width: calc(100% - 28px); }
    .panel { padding: 18px; }
    .game-stats { grid-template-columns: repeat(2, 1fr); }
    .ach-grid { grid-template-columns: 1fr; }
    .skin-wrap { grid-template-columns: 1fr; }
}

/* ───────── Кастомизация (косметика) ───────── */
.cos-top{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:14px}
.cos-card{display:flex;flex-direction:column;align-items:center;gap:8px;padding:18px 26px;border-radius:16px;border:1px solid var(--border);background:var(--s2);min-width:220px}
.cos-ava{width:64px;height:64px;border-radius:16px;display:grid;place-items:center;font-weight:800;font-size:1.7rem;color:#0a1119;flex:none}
.cos-pname{font-family:'Space Grotesk',sans-serif;font-size:1.3rem;font-weight:700;color:#fff;display:flex;align-items:center}
.cos-phint{color:var(--faint);font-size:.78rem}
.cos-bal{color:var(--text);font-size:1.05rem;background:var(--s2);border:1px solid var(--border);border-radius:12px;padding:12px 16px}
.cos-msg{min-height:20px;margin:4px 0 10px;font-size:.9rem}
.cos-msg.is-ok{color:var(--green)} .cos-msg.is-err{color:var(--red)}
.cos-group{margin-top:18px}
.cos-group h3{color:#fff;font-size:1.05rem;margin:0 0 10px}
.cos-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px}
.cos-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:13px;border:1px solid var(--border);background:var(--s2);transition:transform var(--tr),border-color var(--tr),box-shadow var(--tr);cursor:pointer}
.cos-item:hover{transform:translateY(-2px)}
.cos-item.common{border-color:#9aa7b433}
.cos-item.rare{border-color:#5fb0ff55}
.cos-item.epic{border-color:#c98aff55}
.cos-item.legendary{border-color:#f5cc0066;box-shadow:0 0 10px rgba(245,204,0,.12)}
.cos-item.on{outline:2px solid var(--green);outline-offset:-2px}
.cos-sw{width:34px;height:34px;border-radius:9px;flex:none;display:grid;place-items:center;border:1px solid var(--border)}
.cos-emoji{font-size:1.2rem;background:#0b1320}
.cos-meta{min-width:0;flex:1}
.cos-nm{color:#fff;font-weight:600;font-size:.92rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cos-rar{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.4px}
.cos-item .btn.sm{flex:none;padding:6px 10px;font-size:.82rem}
/* надетые украшения на профиле/в каталоге/на стене */
.blm-badge{margin-left:3px}
