:root, html[data-color="light"] {
    color-scheme: light;
    --bg: #f7f9f8;
    --panel: rgba(255, 255, 255, 0.96);
    --panel-solid: #ffffff;
    --line: #e3e9e6;
    --line-hot: rgba(0, 184, 116, 0.28);
    --text: #121714;
    --muted: #6b746f;
    --orange: #00b874;
    --gold: #07884e;
    --cta: #00b874;
    --cta-2: #34d399;
    --on-cta: #ffffff;
    --accent: #00b874;
    --radius: 16px;
    --ok: #059669;
    --off: #94a3b8;
    --shadow: 0 10px 30px rgba(20, 82, 50, 0.08);
    --nav-bg: transparent;
    --nav-active-bg: rgba(0, 184, 116, 0.12);
    --nav-active-fg: #07884e;
    --input-bg: #ffffff;
    --logo: #121714;
    --hero-scrim: linear-gradient(90deg, rgba(247, 249, 248, 0.55) 0%, rgba(247, 249, 248, 0.18) 42%, transparent 72%),
        linear-gradient(180deg, transparent 28%, rgba(247, 249, 248, 0.58) 100%);
    --track: rgba(18, 23, 20, 0.12);
    --glow: rgba(0, 184, 116, 0.22);
    --well: #eef3f0;
    --well-2: #e4ece8;
    --on-media: #f8fafc;
}
html[data-color="dark"] {
    color-scheme: dark;
    --bg: #0b0d12;
    --panel: rgba(16, 18, 24, 0.78);
    --panel-solid: rgba(14, 16, 22, 0.92);
    --line: rgba(255, 255, 255, 0.08);
    --line-hot: rgba(74, 222, 128, 0.32);
    --text: #f4f7f5;
    --muted: #9aa3ad;
    --orange: #4ade80;
    --gold: #86efac;
    --cta: #4ade80;
    --cta-2: #22c55e;
    --on-cta: #052e16;
    --accent: #4ade80;
    --ok: #4ade80;
    --off: #64748b;
    --shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
    --nav-bg: transparent;
    --nav-active-bg: rgba(74, 222, 128, 0.1);
    --nav-active-fg: #4ade80;
    --input-bg: rgba(8, 10, 16, 0.72);
    --logo: #f8fafc;
    --hero-scrim: linear-gradient(90deg, rgba(8, 10, 16, 0.62) 0%, rgba(8, 10, 16, 0.22) 42%, transparent 72%),
        linear-gradient(180deg, transparent 28%, rgba(8, 10, 16, 0.62) 100%);
    --track: rgba(255, 255, 255, 0.1);
    --glow: rgba(74, 222, 128, 0.28);
    --well: rgba(255, 255, 255, 0.045);
    --well-2: rgba(0, 0, 0, 0.28);
    --on-media: #f8fafc;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }

.bg-smoke {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    display: block;
    opacity: 0.4;
}
html[data-color="dark"] body {
    background:
        radial-gradient(920px 520px at 50% -8%, rgba(74, 222, 128, 0.16), transparent 58%),
        var(--bg);
}
html[data-color="light"] body {
    background:
        radial-gradient(920px 420px at 50% -10%, rgba(0, 184, 116, 0.12), transparent 56%),
        var(--bg);
}
.site {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 16px 40px 8px;
    display: grid;
    grid-template-columns: 240px 1fr auto;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
}
.logo { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.logo__img {
    height: 36px;
    width: 36px;
    display: block;
    filter: drop-shadow(0 0 10px var(--glow));
}
.logo__mark {
    display: inline;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--logo);
    font-size: 15px;
}
.mainnav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
}
.mainnav a,
.nav-more summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 12px;
    font-weight: 650;
    color: var(--muted);
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    list-style: none;
}
.mainnav a svg,
.nav-more summary svg { display: block; flex: 0 0 auto; opacity: 0.9; }
.mainnav a.is-active,
.mainnav a:hover,
.nav-more.is-active summary,
.nav-more summary:hover,
.nav-more[open] summary {
    background: var(--nav-active-bg);
    color: var(--nav-active-fg);
    box-shadow: none;
}
.nav-more { position: relative; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more__chev { opacity: 0.7; }
.nav-more__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    padding: 8px;
    border-radius: 14px;
    background: var(--panel-solid);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    z-index: 20;
    display: grid;
    gap: 2px;
}
.nav-more__menu a {
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--text);
}
.top-actions { display: flex; align-items: center; gap: 8px; }
.theme-form { margin: 0; }
.theme-btn {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    border-radius: 12px;
    cursor: pointer;
}
.theme-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    border-radius: 12px;
    cursor: pointer;
}
.icon-btn svg { display: block; flex: 0 0 auto; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn__cash {
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--accent);
}
.top-actions form { margin: 0; }
.btn-reg, .btn-login, .btn-orange, .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    border-radius: 10px;
    padding: 9px 14px;
}
.btn-reg, .btn-orange {
    background: var(--cta);
    color: var(--on-cta);
    box-shadow: 0 8px 18px var(--glow);
}
.btn-login, .btn-ghost {
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--line);
}
.who { color: var(--muted); font-size: 13px; }
.who--link {
    font-weight: 800;
    color: var(--text);
    padding: 8px 10px;
    border-radius: 10px;
}
.who--link:hover { color: var(--accent); background: var(--nav-bg); }

.page-shell {
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 28px 40px 24px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}
.page-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
    min-width: 0;
    align-items: stretch;
}
.col-left, .col-right, .col-center {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
}
body.nav-home .page-shell { align-items: start; }
body.nav-home .page-main {
    grid-template-rows: none;
    align-items: start;
}
body.nav-home .col-right { align-self: start; }
body.nav-home .col-center {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
body.nav-home .heroes,
body.nav-home .proj-chat,
body.nav-home .col-right {
    grid-column: auto;
    grid-row: auto;
}
body.nav-home .proj-chat {
    flex: none;
    width: 100%;
    height: 528px;
    min-height: 528px;
    max-height: 528px;
    margin-top: 0;
}

.panel, .hero, .knives, .mega, .countdown, .mini, .auth-card, .mon, .sidemenu a, .stats-board, .proj-chat {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.mon { padding: 0; overflow: hidden; }
.mon__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 14px 10px;
    border-bottom: 1px solid var(--line);
}
.mon__head h2 { margin: 0; font-size: 15px; letter-spacing: 0.04em; }
.mon__all { color: var(--gold); font-size: 12px; font-weight: 700; }
.mon__list {
    display: grid;
    gap: 10px;
    padding: 10px;
}
.mon-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 132px;
    border-radius: 18px;
    color: var(--on-media);
    background: #10131a;
    border: 1px solid rgba(255,255,255,.08);
}
.mon-card__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #10131a;
}
.mon-card__map {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: saturate(0.85) brightness(0.72);
}
.mon-card__media.is-ready .mon-card__map { opacity: 1; }
.mon-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(8,10,16,.72) 0%, rgba(8,10,16,.38) 55%, rgba(8,10,16,.55) 100%);
}
.mon-card__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    min-height: 132px;
    padding: 14px;
}
.mon-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}
.mon-card__row--foot { align-items: flex-end; }
.mon-card h3 {
    margin: 0;
    min-width: 0;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--on-media);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mon-card__slots {
    flex: 0 0 auto;
    min-height: 26px;
    padding: 0 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(8,10,16,.5);
    color: var(--on-media);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    backdrop-filter: blur(10px);
}
.mon-card.is-on .mon-card__slots { color: var(--accent); }
.mon-card__slots:hover { color: var(--accent); }
.mon-card__slots:disabled { cursor: default; opacity: 0.7; }
.mon-card__mapname {
    min-width: 0;
    font-size: 12px;
    color: rgba(248,250,252,.78);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mon-card__icons { display: flex; gap: 6px; flex: 0 0 auto; }
.mon-ico-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(8,10,16,.62);
    color: var(--accent);
    cursor: pointer;
}
.mon-ico-btn svg { width: 15px; height: 15px; display: block; }
.mon-ico-btn:hover,
.mon-ico-btn.is-copied {
    background: color-mix(in srgb, var(--accent) 16%, #0b0d12);
    border-color: var(--accent);
}

.sidemenu { display: flex; flex-direction: column; gap: 8px; background: none; border: 0; box-shadow: none; backdrop-filter: none; }
.sidemenu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}
.sidemenu a b, .sidemenu a small { display: block; }
.sidemenu a small { color: var(--muted); font-size: 12px; font-weight: 500; }
.sidemenu a.is-active { border-color: var(--line-hot); }
.side-ico {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    background: var(--nav-active-bg);
    flex: 0 0 36px;
}
.side-ico svg { width: 18px; height: 18px; display: block; }

.heroes {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 12px;
    flex: 0 0 auto;
}
.hero {
    position: relative;
    isolation: isolate;
    min-height: 200px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    color: var(--on-media);
}
.hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: var(--hero-scrim);
}
.hero > :not(.hero__media) { position: relative; z-index: 2; }
body.nav-home .hero {
    min-height: 196px;
    padding: 16px 18px;
}
body.nav-home .hero__title { font-size: 24px; }
.hero-shop, .hero-vip { background-color: color-mix(in srgb, var(--panel-solid) 70%, #10131a); }
.hero__kicker {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}
.hero__title {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
.hero__tags { color: #ffd9a0; font-size: 12px; margin: 4px 0 8px; }
.hero__btn {
    align-self: flex-start;
    background: var(--cta);
    color: var(--on-cta);
    font-weight: 800;
    border-radius: 12px;
    padding: 10px 14px;
}

.knives { padding: 16px; }
.knives__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.knives__head > div { display: flex; gap: 10px; align-items: center; }
.knives__head img { width: 46px; }
.knives__head h2, .knives__head p, .panel h1 { margin: 0; }
.knives__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.knives__grid article {
    background: var(--well);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 10px;
    text-align: center;
}
.knives__grid img { height: 92px; object-fit: contain; margin: 0 auto 8px; }
.knives__grid a { color: var(--orange); font-size: 13px; font-weight: 700; }

.mega {
    min-height: 170px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.58)),
        url("/theme-assets/time2cs/img/mega.png") center/cover;
}
.mega__kicker { font-weight: 900; color: var(--gold); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.mega__text { font-weight: 800; }
.mega__btn {
    background: #2fbf5a;
    align-self: flex-start;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 800;
    color: #fff;
}
.countdown { padding: 16px; text-align: center; }
.countdown h3 { margin: 0 0 12px; font-size: 14px; }
.countdown__digits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.countdown__digits div {
    background: var(--cta);
    color: var(--on-cta);
    border-radius: 12px;
    padding: 10px 6px;
}
.countdown__digits b { display: block; font-size: 28px; }
.mini-links { display: flex; flex-direction: column; gap: 10px; }
.mini-card {
    position: relative;
    isolation: isolate;
    min-height: 92px;
    display: flex;
    align-items: flex-end;
    padding: 14px 16px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: #12141c;
    box-shadow: var(--shadow);
}
.mini-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}
.mini-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(8,10,16,.72) 0%, rgba(8,10,16,.18) 70%, transparent 100%);
}
.mini-card span { position: relative; z-index: 2; }
.mini-card b { display: block; font-size: 16px; color: #fff; text-shadow: 0 1px 8px #000; }
.mini-card small { display: block; color: var(--accent); font-weight: 700; }
.mini {
    min-height: 72px;
    display: flex;
    align-items: flex-end;
    padding: 12px;
    font-weight: 800;
    background-size: cover;
    background-position: center;
}
.mini-swine { background-image: url("/theme-assets/time2cs/img/shop/swine.png"); }
.mini-cases { background-image: url("/theme-assets/time2cs/img/shop/cases.png"); }
.mini-box { background-image: url("/theme-assets/time2cs/img/shop/boxes.png"); }

.panel { padding: 20px; }
.panel h1 { margin-bottom: 12px; font-size: 24px; }
.search { display: flex; gap: 8px; margin: 12px 0 16px; }
.search input, .auth-card input {
    flex: 1;
    width: 100%;
    background: var(--input-bg);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    margin: 0 0 12px;
}
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.flash { background: color-mix(in srgb, #be123c 16%, var(--panel-solid)); color: #9f1239; padding: 10px 12px; border-radius: 10px; }
html[data-color="dark"] .flash { background: #3a1d24; color: #ffd4d9; }
.auth-card { max-width: 420px; }
.auth-card label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.server-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.server-grid .mon-card,
.server-grid .mon-card__body { min-height: 158px; }

.stats-board { padding: 22px; border-color: var(--line-hot); }
.stats-board__head h1 {
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.stats-bolt { color: var(--orange); display: inline-flex; }
.stats-pick { margin: 18px 0 14px; }
.stats-pick__label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.stats-pick__row { display: flex; align-items: center; gap: 8px; }
.stats-pick__arrow {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--panel-solid); color: var(--text); cursor: pointer;
}
.stats-chips {
    display: flex; gap: 8px; overflow-x: auto; flex: 1; scrollbar-width: none;
}
.stats-chips::-webkit-scrollbar { display: none; }
.stats-chip {
    white-space: nowrap;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--well);
    color: var(--text);
    border: 1px solid var(--line);
    font-weight: 800;
    font-size: 13px;
}
.stats-chip.is-active {
    background: var(--cta);
    color: var(--on-cta);
    border-color: transparent;
}
.stats-search {
    display: flex; gap: 8px; margin: 0 0 18px;
    background: var(--input-bg); color: var(--text);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 6px 6px 6px 14px;
}
.stats-search input {
    flex: 1; background: transparent; border: 0; color: var(--text); margin: 0; padding: 10px 0;
}
.stats-search__btn {
    width: 44px; border: 0; border-radius: 12px; cursor: pointer;
    background: var(--cta); color: var(--on-cta);
}
.podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
.podium-card {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--well);
    text-align: center;
}
.podium-card.place-1 { box-shadow: inset 0 0 0 1px rgba(255,216,74,.35), 0 0 28px rgba(255,157,0,.12); }
.podium-card.place-2 { box-shadow: inset 0 0 0 1px rgba(200,210,230,.28); }
.podium-card.place-3 { box-shadow: inset 0 0 0 1px rgba(196,120,60,.32); }
.podium-card__rank {
    width: 34px; height: 34px; margin: 0 auto 10px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 900;
    background: var(--cta); color: var(--on-cta);
}
.place-2 .podium-card__rank { background: linear-gradient(180deg, #e8eef8, #8b97ad); color: #111; }
.place-3 .podium-card__rank { background: linear-gradient(180deg, #e0b07a, #8a4b22); }
.podium-card__name { font-weight: 800; color: var(--gold); margin-bottom: 12px; }
.place-2 .podium-card__name { color: #2563eb; }
.place-3 .podium-card__name { color: #b45309; }
html[data-color="dark"] .podium-card__name { color: #7dffb0; }
html[data-color="dark"] .place-2 .podium-card__name { color: #7ec8ff; }
html[data-color="dark"] .place-3 .podium-card__name { color: #ffd27a; }
.podium-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.podium-card__stats small { display: block; color: var(--muted); font-size: 11px; }
.podium-card__stats b { display: block; }
.stat-ico { color: var(--orange); display: inline-flex; }
.stat-ico svg { width: 16px; height: 16px; }
.skill-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 84px; padding: 6px 10px; border-radius: 10px;
    background: #c62828; color: #fff; font-weight: 800; font-size: 12px;
}
.stat-list { display: flex; flex-direction: column; gap: 8px; }
.stat-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1.4fr) repeat(3, 88px) auto;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    background: var(--well);
    border: 1px solid var(--line);
}
.stat-row__place { color: var(--muted); font-weight: 800; font-size: 18px; }
.stat-row__name { font-weight: 700; color: var(--gold); }
html[data-color="dark"] .stat-row__name { color: #7dffb0; }
.stat-row__metric { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }

.proj-chat {
    flex: 1 1 auto;
    height: auto;
    min-height: 280px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-color: var(--line);
}
.proj-chat__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.proj-chat__title { display: flex; align-items: center; gap: 10px; }
.proj-chat__title small { display: block; color: var(--muted); font-weight: 500; }
.proj-chat__icon {
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--cta); color: var(--on-cta);
}
.proj-chat__live {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 10px 6px 12px; border-radius: 999px;
    border: 1px solid var(--line-hot); color: var(--text); font-weight: 700;
}
.proj-chat__count {
    min-width: 22px; height: 22px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--well-2); color: var(--text); font-size: 12px;
}
.proj-chat__grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    flex: 1;
    min-height: 0;
}
.proj-chat__users {
    padding: 14px; border-right: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 10px;
    background: var(--well);
    min-height: 0;
}
.proj-chat__users-head, .proj-chat__visits {
    display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
}
.proj-chat__mini-ico {
    width: 22px; height: 22px; color: var(--orange); display: inline-flex;
}
.proj-chat__mini-ico svg { width: 18px; height: 18px; }
.proj-chat__user-list { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.chat-user {
    display: flex; align-items: center; gap: 10px;
    padding: 8px; border-radius: 12px; background: var(--panel-solid);
    border: 1px solid var(--line);
}
.chat-user__av {
    width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 800;
    background: var(--cta); color: var(--on-cta);
}
.chat-user__meta { flex: 1; min-width: 0; }
.chat-user__meta b { display: flex; align-items: center; font-size: 13px; }
html[data-color="dark"] .chat-user__meta b { color: inherit; }
.chat-user__meta small { color: var(--muted); }
.chat-user__go {
    width: 22px; height: 22px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--orange); color: var(--on-cta); font-weight: 900;
}
.proj-chat__visits { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.proj-chat__visits b {
    margin-left: auto; width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--orange); color: var(--on-cta);
}
.proj-chat__main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.proj-chat__help {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; color: var(--muted); font-size: 13px;
    border-bottom: 1px solid var(--line);
}
.proj-chat__help span {
    width: 22px; height: 22px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--orange); color: var(--on-cta); font-weight: 900;
}
.proj-chat__feed { flex: 1; min-height: 0; overflow: auto; padding: 12px 14px; }
.chat-msg { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.chat-msg time { color: var(--muted); font-size: 12px; width: 42px; padding-top: 12px; }
.chat-msg__bubble {
    flex: 1; background: var(--well); border-radius: 16px; padding: 8px 12px;
    border: 1px solid var(--line);
}
.chat-msg__bubble b { display: flex; align-items: center; font-size: 13px; }
.chat-msg__bubble p { margin: 4px 0 0; }
.chat-msg__del {
    margin-top: 6px; border: 0; background: transparent;
    color: var(--muted); cursor: pointer; font-size: 12px; padding: 0;
}
.chat-msg__del:hover { color: #ef4444; }
.proj-chat__form {
    display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line);
}
.proj-chat__form input {
    flex: 1; margin: 0; background: var(--input-bg); color: var(--text);
    border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.proj-chat__locked {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 16px;
    text-align: center;
}
.proj-chat__locked-actions { display: flex; justify-content: center; gap: 10px; }

html[data-color="light"] .stats-chip.is-active {
    background: var(--cta);
    color: var(--on-cta);
    border-color: transparent;
}
html[data-color="light"] .mon-btn--play {
    background: var(--cta);
    color: var(--on-cta);
    border-color: transparent;
    box-shadow: 0 6px 16px var(--glow);
}
html[data-color="light"] .proj-chat__live,
html[data-color="light"] .proj-chat__help,
html[data-color="light"] .proj-chat__users-head,
html[data-color="light"] .proj-chat__visits { color: var(--muted); }
html[data-color="light"] .hero,
html[data-color="dark"] .hero { color: var(--on-media); }
html[data-color="light"] .hero__title,
html[data-color="dark"] .hero__title { text-shadow: 0 2px 14px rgba(0,0,0,0.55); }
html[data-color="light"] .mini {
    color: var(--text);
    text-shadow: 0 0 10px #fff, 0 1px 0 #fff, 0 0 18px rgba(255,255,255,0.9);
}
html[data-color="light"] .mega { color: var(--text); }

.players-modal[hidden] { display: none; }
.players-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 20px;
}
.players-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 10, 16, 0.62);
}
.players-modal__box {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: min(80vh, 720px);
    overflow: auto;
    background: var(--panel-solid);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    color: var(--text);
}
html[data-color="light"] .players-modal__box {
    background: #ffffff;
    border-color: var(--line);
    color: var(--text);
}
.players-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: var(--panel-solid);
    z-index: 1;
}
html[data-color="light"] .players-modal__head {
    background: #ffffff;
    border-bottom-color: var(--line);
}
.players-modal__head h2 { margin: 0; font-size: 16px; }
.players-modal__close {
    width: 36px; height: 36px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--well); color: var(--text);
    cursor: pointer; font-size: 22px; line-height: 1;
}
html[data-color="light"] .players-modal__close {
    border-color: var(--line); background: var(--panel); color: var(--text);
}
.players-empty { margin: 18px 12px; color: var(--muted); text-align: center; }
.players-modal__list { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.player-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 110px minmax(140px, 0.9fr);
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--well);
    border: 1px solid var(--line);
}
html[data-color="light"] .player-row { background: #f1f5f9; }
.player-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.player-cell b { display: block; font-size: 14px; }
.player-cell small { color: var(--muted); font-size: 12px; }
.player-ico {
    width: 32px; height: 32px; border-radius: 10px;
    display: grid; place-items: center;
    background: var(--cta); color: var(--on-cta); flex: 0 0 32px;
}
.player-ico svg { width: 16px; height: 16px; display: block; }
.nc-0 { color: #4ade80; }
.nc-1 { color: #fb923c; }
.nc-2 { color: #eab308; }
.nc-3 { color: #f9a8d4; }
.nc-4 { color: #38bdf8; }
.nc-5 { color: #c4b5fd; }
.nc-6 { color: #4ade80; }
.nc-7 { color: #86efac; }
html[data-color="light"] .nc-2 { color: #a16207; }
html[data-color="light"] .nc-4 { color: #0369a1; }
html[data-color="light"] .nc-5 { color: #6d28d9; }
body.is-modal { overflow: hidden; }

.nick-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.nick-link:hover { color: var(--cta); }
.btn-sm {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 8px;
    white-space: nowrap;
}
.confirm-modal__box { width: min(440px, 100%); }
.confirm-modal__text {
    margin: 0;
    padding: 18px 18px 8px;
    color: var(--text);
    line-height: 1.45;
}
.confirm-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 18px 18px;
}
.svino-block__title {
    margin: 28px 0 4px;
    font-size: 20px;
}
.svino-block__lead { margin: 0 0 16px; }

.profile {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.profile__hero {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 22px 28px;
    color: #f8fafc;
    text-align: center;
}
.profile__cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}
.profile__hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,10,16,.2), rgba(8,10,16,.78));
}
.profile__ident {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.profile__av {
    width: 112px; height: 112px; border-radius: 22px;
    display: grid; place-items: center;
    font-size: 42px; font-weight: 900;
    color: #fff; border: 3px solid rgba(255,255,255,.72);
    box-shadow: 0 12px 30px rgba(0,0,0,.28);
}
.av-0 { background: linear-gradient(135deg, #7c3aed, #2563eb); }
.av-1 { background: linear-gradient(135deg, #059669, #4ade80); }
.av-2 { background: linear-gradient(135deg, #0f766e, #059669); }
.av-3 { background: linear-gradient(135deg, #be123c, #e11d48); }
.av-4 { background: linear-gradient(135deg, #1d4ed8, #0ea5e9); }
.av-5 { background: linear-gradient(135deg, #a16207, #ca8a04); }
.profile__name { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; }
.profile__role { font-weight: 800; margin-top: 4px; }
.profile__tabs {
    display: flex; gap: 6px; flex-wrap: wrap;
    padding: 12px 16px; border-bottom: 1px solid var(--line);
    justify-content: center;
}
.profile__tabs a {
    padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 700;
}
.profile__tabs a.is-active, .profile__tabs a:hover {
    background: var(--nav-active-bg); color: var(--nav-active-fg);
}
.profile__h {
    margin: 18px 16px 10px;
    font-size: 15px;
    display: flex; align-items: center; gap: 8px;
}
.profile__h::before {
    content: "";
    width: 4px; height: 16px; border-radius: 99px; background: var(--cta);
}
.profile__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 0 16px 18px;
}
.profile__card {
    background: var(--well);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
}
html[data-color="light"] .profile__card { background: var(--well); }
.profile__card small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.profile__card b { font-size: 15px; }
.profile__av--img {
    object-fit: cover;
    padding: 0;
    background: var(--well);
    max-width: none;
    width: 112px;
    height: 112px;
}
.profile__vip {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--cta);
    color: var(--on-cta);
    font-size: 11px;
    letter-spacing: .08em;
}
.profile__social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}
.soc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(8,10,16,.45);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
.soc svg { width: 16px; height: 16px; display: block; overflow: visible; }
.soc--vk { background: #0077FF; color: #fff; }
.soc--telegram { background: #26A5E4; color: #fff; }
.soc--github { background: #111827; }
.soc--steam { background: #171a21; }
html[data-color="light"] .soc--github { color: #fff; }
.pset { padding: 18px 18px 24px; }
.pset h1 { margin: 0 0 14px; font-size: 28px; }
.pset__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.pset__card {
    background: var(--well);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
html[data-color="light"] .pset__card { background: var(--well); }
.pset__card h2 { margin: 0; font-size: 18px; }
.pset__hint { margin: 0; color: var(--muted); font-size: 13px; }
.pset__card label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.pset__card input[type=text],
.pset__card input[type=email],
.pset__card input[type=password],
.pset__card input[type=file] {
    width: 100%;
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--input-bg, rgba(8,10,16,.35));
    color: var(--text);
}
html[data-color="light"] .pset__card input {
    background: #fff;
    color: #0f172a;
}
.pset__preview {
    width: 96px;
    height: 96px;
    border-radius: 18px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: var(--well);
    color: var(--muted);
    font-size: 12px;
}
.pset__preview img { max-width: none; width: 100%; height: 100%; object-fit: cover; }
.pset__preview--wide { width: 100%; height: 120px; border-radius: 14px; }
.pset__contacts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.pset__card .balance__submit { width: 100%; margin-top: 4px; }
body.nav-profile .page-main { grid-template-columns: minmax(0, 1fr); }
body.nav-profile .col-right { display: none; }

.store-hub {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
body.nav-shop .page-main { grid-template-columns: minmax(0, 1fr); }
body.nav-shop .col-right { display: none; }
.store-card {
    position: relative;
    isolation: isolate;
    min-height: 210px;
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    background: var(--panel-solid);
    border: 1px solid var(--line);
    color: var(--text);
    box-shadow: var(--shadow);
    text-decoration: none;
}
.store-card__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 82% center;
    z-index: 0;
    pointer-events: none;
    transform: scale(1.04);
    transition: transform .35s ease;
}
.store-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, var(--panel-solid) 0%, color-mix(in srgb, var(--panel-solid) 92%, transparent) 34%, color-mix(in srgb, var(--panel-solid) 42%, transparent) 58%, color-mix(in srgb, var(--panel-solid) 8%, transparent) 78%, transparent 100%);
}
.store-card__body {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 18px 18px 22px;
    max-width: 58%;
}
.store-card:hover .store-card__bg { transform: scale(1.08); }
.store-card h2 {
    margin: 0 0 8px;
    font-size: 17px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: none;
}
.store-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
    text-shadow: none;
}
.store-card img:not(.store-card__bg) { display: none; }
.store-card__go {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #34d399, #00b874);
    color: #052e16;
    font-weight: 800;
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    box-shadow: 0 8px 18px var(--glow);
}
.store-card__go::after { content: "›"; font-size: 18px; line-height: 1; }
.priv { display: flex; flex-direction: column; gap: 16px; }
.priv__head, .balance__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}
.priv__head h1, .balance h1 { margin: 0 0 6px; }
.crumb { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.priv__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 14px;
}
.priv-card {
    overflow: hidden;
    border-radius: 18px;
    background: var(--panel-solid);
    border: 1px solid var(--line);
    color: var(--text);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.priv-card__media { position: relative; background: var(--well, var(--input-bg)); }
.priv-card__media > img:first-child {
    width: 100%;
    height: 160px;
    max-width: none;
    object-fit: cover;
}
.priv-card__icon {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 12px 16px rgba(0,0,0,.4));
    transform: perspective(480px) rotateY(-24deg) rotateX(10deg);
    pointer-events: none;
}
.priv-card__body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.priv-card__body h2 { margin: 0 0 8px; }
.priv-card__body p { margin: 0; color: var(--muted); }
.priv-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 12px 0 14px;
    flex-wrap: wrap;
}
.priv-card__meta b { color: var(--accent); font-size: 22px; }
.priv-card .store-card__go { align-self: stretch; justify-content: center; }
.priv-block { display: flex; flex-direction: column; gap: 12px; }
.priv-block__title {
    display: flex; align-items: center; gap: 10px;
    margin: 0; font-size: 16px; font-weight: 800;
}
.priv-block__title svg { width: 18px; height: 18px; color: var(--accent); flex: 0 0 18px; }
.priv-chip {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 0; color: var(--muted); font-weight: 700;
}
.priv-chip svg { width: 18px; height: 18px; color: var(--accent); }
.priv-pick { display: flex; flex-wrap: wrap; gap: 8px; scrollbar-width: none; }
.priv-pick::-webkit-scrollbar { display: none; }
.priv-pick__item {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 56px; max-width: 100%;
    padding: 10px 16px 10px 12px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--panel-solid);
    color: var(--text);
    transition: border-color .15s, background .15s, color .15s;
}
.priv-pick__item:hover { border-color: var(--cta); }
.priv-pick__item.is-on {
    border-color: transparent;
    background: var(--cta);
    color: var(--on-cta);
}
.priv-pick__item.is-on .priv-pick__ico,
.priv-pick__item.is-on .priv-pick__text small { color: inherit; opacity: .86; }
.priv-pick__ico { width: 22px; height: 22px; color: var(--accent); flex: 0 0 22px; }
.priv-pick__ico svg { width: 22px; height: 22px; display: block; }
.priv-pick__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.priv-pick__text small {
    color: var(--muted); font-size: 11px; font-weight: 800;
    letter-spacing: .06em; text-transform: uppercase;
}
.priv-pick__text b { font-size: 14px; overflow-wrap: anywhere; }
.priv-card__buy {
    margin-top: auto;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 44px; padding: 0 14px;
    border-radius: 12px;
    background: var(--cta);
    color: var(--on-cta);
    font-weight: 800;
}
.priv-card__buy:hover { filter: brightness(1.06); }
.priv-card__off {
    padding: 3px 8px; border-radius: 999px;
    background: color-mix(in srgb, var(--on-cta) 18%, transparent);
    font-size: 12px; font-weight: 800;
}
.pdp { display: flex; flex-direction: column; gap: 18px; padding: 8px 0 28px; min-width: 0; }
.pdp__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 20px;
    align-items: start;
}
.pdp__showcase, .pdp__buy, .pdp-body {
    background: var(--panel-solid);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    min-width: 0;
}
.pdp__showcase { padding: 16px; }
.pdp__buy { padding: 20px 18px; position: sticky; top: 12px; overflow: visible; }
.pdp__buy h1 { margin: 0 0 16px; font-size: clamp(22px, 3vw, 28px); overflow-wrap: anywhere; }
.pdp__buy > .pdp-field { margin: 0 0 14px; }
.pdp-gallery { position: relative; }
.pdp-gallery__stage { position: relative; }
.pdp-gallery__main {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: var(--well, var(--input-bg));
    border-radius: 14px;
    overflow: hidden;
    cursor: zoom-in;
}
.pdp-gallery__main img {
    width: 100%;
    height: min(42vw, 320px);
    max-width: none;
    object-fit: cover;
}
.pdp-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: color-mix(in srgb, #000 55%, transparent);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}
.pdp-gallery__nav--prev { left: 10px; }
.pdp-gallery__nav--next { right: 10px; }
.pdp-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 8px;
    margin-top: 10px;
}
.pdp-gallery__thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: var(--well, var(--input-bg));
    cursor: pointer;
}
.pdp-gallery__thumb.is-on { border-color: var(--cta); }
.pdp-gallery__thumb img {
    width: 100%;
    height: 64px;
    max-width: none;
    object-fit: cover;
}
.pdp-icon {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: clamp(72px, 18vw, 108px);
    height: clamp(72px, 18vw, 108px);
    z-index: 2;
    pointer-events: none;
    perspective: 640px;
}
.pdp-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 18px 20px rgba(0,0,0,.45));
    animation: pdp-tilt 7s ease-in-out infinite;
    transform-style: preserve-3d;
}
@keyframes pdp-tilt {
    0%, 100% { transform: rotateY(-18deg) rotateX(8deg) translateY(0); }
    50% { transform: rotateY(16deg) rotateX(4deg) translateY(-6px); }
}
.pdp-lead { color: var(--muted); margin: 14px 0 10px; line-height: 1.5; }
.pdp-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 700;
}
.pdp-more::after { content: "↗"; }
.pdp-buy { display: grid; gap: 14px; }
.pdp-field { display: grid; gap: 7px; min-width: 0; }
.pdp-field__name {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.pdp-field__hint { color: var(--muted); font-size: 12px; font-weight: 500; }
.pdp-control {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--well, var(--input-bg));
    color: var(--text);
}
html[data-color="dark"] .pdp-control {
    background: color-mix(in srgb, var(--text) 7%, var(--panel-solid));
    border-color: color-mix(in srgb, var(--text) 14%, var(--line));
}
.pdp-control:focus-within {
    border-color: var(--cta);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--cta) 22%, transparent);
}
.pdp-control__ico {
    flex: none;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    line-height: 0;
}
.pdp-control__ico svg {
    width: 20px;
    height: 20px;
    display: block;
}
.pdp-control input {
    flex: 1;
    min-width: 0;
    height: 22px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 15px;
    line-height: 22px;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}
.pdp-control input::placeholder { color: var(--muted); opacity: .85; }
.pdp-choices { display: grid; gap: 8px; }
.pdp-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--well, var(--input-bg));
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
}
html[data-color="dark"] .pdp-choice {
    background: color-mix(in srgb, var(--text) 6%, var(--panel-solid));
}
.pdp-choice span { flex: 1; min-width: 0; }
.pdp-choice .pdp-control__ico { flex: none; }
.pdp-choice b { color: var(--accent); font-size: 13px; white-space: nowrap; }
.pdp-choice input {
    flex: none;
    margin: 0;
    accent-color: var(--cta);
}
.pdp-choice:has(input:checked) {
    border-color: var(--cta);
    background: color-mix(in srgb, var(--cta) 12%, var(--panel-solid));
}
.pdp-choice--static {
    cursor: default;
    justify-content: flex-start;
}
.pdp-dd { position: relative; }
.pdp-dd__btn {
    position: relative;
    width: 100%;
    margin: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
    padding-right: 36px;
}
.pdp-dd__btn::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    pointer-events: none;
}
.pdp-dd.is-open .pdp-dd__btn::after {
    margin-top: -2px;
    transform: rotate(225deg);
}
.pdp-dd__label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}
.pdp-dd__menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 40;
    display: none;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel-solid);
    box-shadow: var(--shadow), 0 16px 40px rgba(0, 0, 0, 0.28);
    max-height: min(280px, 50vh);
    overflow: auto;
}
.pdp-dd__menu[hidden] { display: none !important; }
.pdp-dd.is-open .pdp-dd__menu {
    display: grid;
}
html[data-color="dark"] .pdp-dd__menu {
    background: #141821;
    border-color: rgba(255, 255, 255, 0.12);
}
.pdp-dd__opt {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--well, var(--input-bg));
    color: var(--text);
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}
html[data-color="dark"] .pdp-dd__opt {
    background: color-mix(in srgb, var(--text) 6%, #1a1f28);
}
.pdp-dd__opt.is-on,
.pdp-dd__opt:hover {
    border-color: var(--cta);
    background: color-mix(in srgb, var(--cta) 12%, var(--panel-solid));
}
.pdp-control--steam {
    border-color: color-mix(in srgb, #66c0f4 40%, var(--line));
    background:
        linear-gradient(90deg, color-mix(in srgb, #66c0f4 16%, transparent), transparent 56%),
        var(--well, var(--input-bg));
}
html[data-color="dark"] .pdp-control--steam {
    background:
        linear-gradient(90deg, rgba(102, 192, 244, 0.16), transparent 56%),
        #121820;
    border-color: color-mix(in srgb, #66c0f4 42%, var(--line));
}
.pdp-control--steam .pdp-control__ico { color: #66c0f4; }
.pdp-control--steam input {
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-weight: 650;
    letter-spacing: .02em;
    font-size: 14px;
}
.pdp-radios { display: grid; gap: 8px; }
.pdp-radios label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    background: var(--well, var(--input-bg));
    color: var(--text);
}
html[data-color="dark"] .pdp-radios label {
    background: color-mix(in srgb, var(--text) 6%, var(--panel-solid));
}
.pdp-radios input { accent-color: var(--cta); flex: 0 0 auto; }
.pdp-buy:has([value="nick"]:checked) .pdp-radios label:has([value="nick"]),
.pdp-buy:has([value="steam"]:checked) .pdp-radios label:has([value="steam"]),
.pdp-buy:has([value="steam_pass"]:checked) .pdp-radios label:has([value="steam_pass"]) {
    border-color: var(--cta);
    background: color-mix(in srgb, var(--cta) 12%, var(--panel-solid));
}
.pdp-buy:has([value="steam"]:checked) .pdp-field--nick,
.pdp-buy:has([value="steam"]:checked) .pdp-field--pass { display: none; }
.pdp-buy:has([value="nick"]:checked) .pdp-field--steam { display: none; }
.pdp-buy:has([value="steam_pass"]:checked) .pdp-field--nick { display: none; }
.pdp-buy--auth-nick .pdp-field--steam { display: none; }
.pdp-buy--auth-steam .pdp-field--nick,
.pdp-buy--auth-steam .pdp-field--pass { display: none; }
.pdp-buy--auth-steam_pass .pdp-field--nick { display: none; }
.pdp-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0 4px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}
.pdp-total__sum { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pdp-total b { font-size: 22px; }
.pdp-total s { color: var(--muted); }
.pdp-total em:empty, .pdp-total s:empty { display: none; }
.pdp-total em {
    font-style: normal;
    color: #fb7185;
    background: rgba(225, 29, 72, 0.16);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 800;
}
.pdp-agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}
.pdp-agree input { margin-top: 2px; accent-color: var(--cta); flex: 0 0 auto; }
.pdp-buy__go {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 12px;
    padding: 14px 16px;
    background: var(--cta);
    color: var(--on-cta);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
}
.pdp-buy__go:disabled { opacity: .65; cursor: wait; }
.pdp-body { padding: 22px 24px; line-height: 1.65; overflow-wrap: anywhere; }
.pdp-body a { color: var(--accent); text-decoration: underline; }
.pdp-body img { border-radius: 12px; margin: 10px 0; }
.pdp-body blockquote {
    margin: 12px 0;
    padding: 8px 0 8px 14px;
    border-left: 3px solid var(--cta);
    color: var(--muted);
}
.pdp-body ul { padding-left: 18px; }
.pdp-lite {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,.84);
    padding: 24px;
}
.pdp-lite[hidden] { display: none; }
.pdp-lite img {
    max-width: min(1100px, 92vw);
    max-height: 86vh;
    object-fit: contain;
    border-radius: 12px;
}
.pdp-lite__close, .pdp-lite__nav {
    position: absolute;
    border: 0;
    background: color-mix(in srgb, #000 40%, transparent);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
}
.pdp-lite__close { top: 16px; right: 16px; width: 44px; height: 44px; font-size: 28px; }
.pdp-lite__nav { top: 50%; width: 44px; height: 44px; font-size: 28px; transform: translateY(-50%); }
.pdp-lite__nav--prev { left: 16px; }
.pdp-lite__nav--next { right: 16px; }
@media (max-width: 860px) {
    .pdp__grid { grid-template-columns: 1fr; }
    .pdp__buy { position: static; }
    .pdp-gallery__main img { height: 220px; }
    .priv__head { align-items: stretch; }
    .priv__head .btn-orange { justify-content: center; width: 100%; }
    .priv-pick { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
    .priv-pick__item { flex: 0 0 auto; }
}
@media (max-width: 640px) {
    .pdp { padding: 0 0 20px; gap: 12px; }
    .pdp__showcase, .pdp__buy, .pdp-body { padding: 14px; border-radius: 14px; }
    .pdp-gallery__main img { height: 180px; }
    .pdp-gallery__nav { width: 32px; height: 32px; }
    .pdp-icon { width: 72px; height: 72px; }
    .pdp-control { height: 46px; }
    .pdp-choice { min-height: 44px; }
    .pdp-dd__opt { min-height: 44px; }
    .pdp-radios label { min-height: 44px; }
    .pdp-lite { padding: 10px; }
    .pdp-lite img { max-height: 72vh; }
    .pdp-lite__close { top: 8px; right: 8px; }
    .pdp-lite__nav--prev { left: 6px; }
    .pdp-lite__nav--next { right: 6px; }
    .priv-card__media > img:first-child { height: 140px; }
    .priv-card .store-card__go, .priv-card__buy { width: 100%; }
}
.flash-ok { background: color-mix(in srgb, #16a34a 16%, var(--panel-solid)); color: #166534; padding: 10px 12px; border-radius: 10px; }
.flash-bad { background: color-mix(in srgb, #be123c 16%, var(--panel-solid)); color: #991b1b; padding: 10px 12px; border-radius: 10px; }
html[data-color="dark"] .flash-ok { background: #163226; color: #c6f3d8; }
html[data-color="dark"] .flash-bad { background: #3a1d24; color: #ffd4d9; }
.balance {
    padding: 28px 28px 32px;
    max-width: 640px;
}
.balance.panel h1,
.balance h1 {
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0.01em;
}
.balance__sum {
    margin: 0 0 22px;
    font-size: 16px;
    color: var(--text);
}
.balance__sum b { font-weight: 800; }
.balance__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 520px;
}
.balance__pills, .balance__paytype {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
}
.balance__paytype {
    grid-template-columns: 1fr 1fr;
}
.pay-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--well);
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
    user-select: none;
}
.pay-chip input {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 18px;
    border: 2px solid #64748b;
    border-radius: 50%;
    background: transparent;
    display: grid;
    place-items: center;
}
.pay-chip input::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
}
.pay-chip:has(input:checked),
.pay-chip:hover { border-color: var(--cta); }
.pay-chip input:checked { border-color: var(--cta); }
.pay-chip input:checked::after { background: var(--cta); }
.balance__custom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}
.balance__custom input,
.balance .balance__custom input {
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 14px 16px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font-size: 16px;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.balance__custom input::placeholder { color: #94a3b8; font-weight: 500; }
.balance__submit,
.balance .balance__submit {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 12px;
    background: var(--cta);
    color: var(--on-cta);
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
}
.balance__submit:hover { filter: brightness(1.06); }
.balance__submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: none;
}
.balance__hist-title { margin: 28px 0 10px; font-size: 18px; }
.balance__hist { list-style: none; padding: 0; margin: 0; }
.balance__hist li {
    display: flex;
    gap: 12px;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
html[data-color="light"] .pay-chip { background: #fff; }
html[data-color="light"] .balance__custom input,
html[data-color="light"] .balance .balance__custom input {
    background: #fff;
    box-shadow: inset 0 0 0 1px #cbd5e1;
}
html[data-color="light"] .flash-ok { background: #dcfce7; color: #166534; }
html[data-color="light"] .flash-bad { background: #fee2e2; color: #991b1b; }
html[data-color="dark"] .pay-chip { background: rgba(8, 10, 16, 0.55); }
.shop-stub { min-height: 240px; }

.site-footer {
    position: relative;
    width: 100%;
    max-width: 1480px;
    margin: 132px auto 28px;
    padding: 0 40px 8px;
    z-index: 2;
}
.site-footer__people {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    transform: translateY(-100%);
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 0 64px;
    box-sizing: border-box;
    z-index: 5;
    pointer-events: none;
}
.site-footer__people img {
    display: block;
    width: 120px;
    height: 120px;
    max-width: none;
    object-fit: contain;
    object-position: center bottom;
    animation: footer-idle 3.1s ease-in-out infinite;
}
.site-footer__people img:nth-child(2) { animation-delay: .25s; }
.site-footer__people img:nth-child(3) { animation-delay: .5s; }
.site-footer__people img:nth-child(4) { animation-delay: .75s; }
@keyframes footer-idle {
    0%, 100% { transform: translateY(2px); }
    50% { transform: translateY(-7px); }
}
.site-footer__box {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr 1fr auto;
    gap: 22px;
    padding: 26px 28px 22px;
    border-radius: 20px;
    color: #eef2f7;
    background:
        linear-gradient(180deg, rgba(12,14,20,.55), rgba(12,14,20,.82)),
        url("/theme-assets/time2cs/img/footer/back.png") center/cover;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.footer-age {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    height: fit-content;
}
.footer-age__ico {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ff6969, #ff4545);
    color: #fff;
    font-weight: 900;
    font-size: 12px;
    flex: 0 0 auto;
}
.footer-age b, .footer-col b { display: block; margin-bottom: 8px; }
.footer-age small { display: block; color: #94a3b8; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: #cbd5e1; font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-social__row { display: flex; gap: 8px; }
.footer-social__row .soc {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
}
.footer-social__row .soc svg { width: 18px; height: 18px; display: block; overflow: visible; }
.footer-social__row .soc--vk { background: #0077FF; }
.footer-social__row .soc--telegram { background: #26A5E4; }
html[data-color="light"] .store-card h2 {
    color: var(--text);
    text-shadow: 0 1px 0 rgba(255,255,255,.7);
}
html[data-color="light"] .store-card p { color: var(--muted); text-shadow: none; }

@media (max-width: 1080px) {
    body { overflow: auto; }
    .site { height: auto; min-height: 100vh; }
    .page-shell, .page-main, .topbar { grid-template-columns: 1fr; }
    body.nav-home .page-main { grid-template-rows: none; }
    body.nav-home .col-center {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    body.nav-home .heroes,
    body.nav-home .proj-chat,
    body.nav-home .col-right {
        grid-column: auto;
        grid-row: auto;
    }
    .col-left, .col-right, .col-center { height: auto; overflow: visible; }
    .heroes, .knives__grid, .server-grid, .podium { grid-template-columns: 1fr 1fr; }
    .proj-chat { flex: none; height: min(52vh, 460px); min-height: 280px; }
    .proj-chat__grid, .stat-row, .profile__grid { grid-template-columns: 1fr; }
    .mainnav { flex-wrap: wrap; border-radius: 16px; }
    body.nav-home .proj-chat {
        width: 100%;
        height: 528px;
        min-height: 528px;
        max-height: 528px;
        margin-top: 0;
        flex: none;
    }
    .store-hub { grid-template-columns: 1fr 1fr; }
    .store-card { min-height: 188px; }
    .store-card__body { max-width: 64%; }
    .site-footer { margin-top: 88px; }
    .site-footer__people img { width: 72px; height: 72px; }
    .site-footer__box { grid-template-columns: 1fr 1fr; padding: 22px 18px; }
    .icon-btn__cash { display: none; }
    .profile__hero { min-height: 220px; }
    .profile__av { width: 92px; height: 92px; font-size: 34px; }
    .pset__grid, .pset__contacts { grid-template-columns: 1fr; }
    .players-modal { padding: 12px; align-items: end; }
    .player-row { grid-template-columns: 1fr 1fr; }
    .player-cell:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    .heroes, .knives__grid, .server-grid, .podium { grid-template-columns: 1fr; }
    .logo__mark { letter-spacing: 0.14em; }
    .topbar, .page-shell, .site-footer { padding-left: 20px; padding-right: 20px; }
    .site-footer__box { grid-template-columns: 1fr; }
    .profile__grid { grid-template-columns: 1fr; }
    .store-hub { grid-template-columns: 1fr; }
    .store-card { min-height: 168px; }
    .store-card__body { max-width: 70%; padding: 18px 16px 16px 18px; }
    .store-card__bg { object-position: 70% center; }
    .balance { padding: 20px 18px 24px; max-width: none; }
    .balance.panel h1, .balance h1 { font-size: 26px; }
    .balance__pills { grid-template-columns: 1fr 1fr; }
    .balance__paytype { grid-template-columns: 1fr; }
    .pay-chip { width: 100%; }
    .kz-hero { min-height: 0; padding: 36px 20px 40px; }
    .kz-hero__title { font-size: 40px; }
    .mainnav { justify-content: flex-start; overflow-x: auto; }
}

/* Kingz hero */
.kz-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(240px, 420px) minmax(220px, 1fr);
    align-items: center;
    gap: 28px 32px;
    min-height: 380px;
    padding: 48px 40px 36px;
    margin: 0 auto;
    width: 100%;
    max-width: 1480px;
}
.kz-hero__glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(520px, 70vw);
    height: min(220px, 36vw);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow) 0%, transparent 72%);
    pointer-events: none;
    z-index: 0;
}
.kz-hero__ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(340px, 42vw);
    height: min(340px, 42vw);
    transform: translate(-50%, -50%);
    border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.kz-hero__col,
.kz-hero__copy {
    position: relative;
    z-index: 1;
}
.kz-hero__col {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}
.kz-hero__col--right { align-items: flex-end; }
.kz-mon,
.kz-admin {
    width: 100%;
    max-width: 340px;
    box-shadow: 0 18px 40px rgba(0,0,0,.22);
}
.kz-mon {
    display: grid;
    align-content: start;
    gap: 10px;
    max-height: calc(132px * 2 + 10px);
    overflow: hidden;
}
.kz-mon.is-scroll {
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-snap-type: y mandatory;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--accent) 55%, transparent) transparent;
}
.kz-mon.is-scroll::-webkit-scrollbar { width: 4px; }
.kz-mon.is-scroll::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: color-mix(in srgb, var(--accent) 55%, transparent);
}
.kz-mon .mon-card {
    min-height: 132px;
    max-width: none;
    box-shadow: none;
    scroll-snap-align: start;
}
.kz-mon .mon-card__body { min-height: 132px; }
.kz-admin {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 18px 16px;
    border-radius: 22px;
    color: var(--text);
    background:
        radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 58%),
        var(--panel-solid);
    border: 1px solid var(--line);
}
.kz-admin__mark {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
    box-shadow: 0 0 28px var(--glow);
}
.kz-admin__mark svg { width: 34px; height: 34px; display: block; }
.kz-admin h2 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 800;
}
.kz-admin > p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
}
.kz-admin__list {
    display: grid;
    gap: 8px;
    width: 100%;
    text-align: left;
}
.kz-admin__list a {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 10px;
    border-radius: 14px;
    color: inherit;
    background: var(--well);
    border: 1px solid var(--line);
}
.kz-admin__list a:hover {
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.kz-admin__list a span small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}
.kz-admin__list a > span:last-child { font-weight: 700; font-size: 14px; }
.kz-admin__list .role-nick { font-weight: 800; }
.kz-admin__ico {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.kz-admin__ico svg { width: 18px; height: 18px; display: block; overflow: visible; }
.kz-admin__ico--tg {
    color: #26A5E4;
    background: color-mix(in srgb, #26A5E4 16%, transparent);
}
.kz-admin__ico--tg svg { width: 18px; height: 18px; }
.kz-admin__ico--vk {
    color: #fff;
    background: #0077FF;
}
.kz-admin__ico--vk svg { width: 20px; height: 20px; }
.kz-admin__ico--user {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.kz-hero__copy { text-align: center; }
.kz-hero__kicker {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.kz-hero__title {
    margin: 0 0 10px;
    font-size: clamp(44px, 6vw, 72px);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 0.95;
    color: var(--accent);
}
.kz-hero__lead {
    margin: 0 auto 22px;
    max-width: 280px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}
.kz-hero__cta {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.kz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
}
.kz-btn--ghost:hover { border-color: color-mix(in srgb, var(--text) 30%, transparent); }
.kz-btn--accent {
    border-color: var(--accent);
    color: var(--accent);
}
.kz-btn--accent:hover {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
}
html[data-color="light"] .kz-btn {
    background: rgba(255,255,255,.55);
}
html[data-color="light"] .kz-hero__glow { opacity: 0.35; }
html[data-color="light"] .kz-hero__ring {
    border-color: color-mix(in srgb, var(--accent) 12%, transparent);
}
.theme-btn, .icon-btn {
    border-radius: 12px;
    background: color-mix(in srgb, var(--panel-solid) 80%, transparent);
}
body.nav-home .page-shell { padding-top: 16px; }
@media (max-width: 1080px) {
    .topbar {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
    .mainnav {
        grid-column: 1 / -1;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .kz-hero {
        grid-template-columns: 1fr 1fr;
        min-height: 0;
        padding: 36px 24px 32px;
    }
    .kz-hero__copy { grid-column: 1 / -1; order: -1; }
    .kz-hero__col--right { align-items: flex-start; }
    .kz-mon, .kz-admin { max-width: none; }
}
@media (max-width: 720px) {
    .kz-hero { grid-template-columns: 1fr; gap: 22px; padding: 32px 20px 28px; }
    .kz-hero__col--right { align-items: stretch; }
    .kz-hero__ring { display: none; }
}

.site-footer,
.site-footer__people { display: none !important; }
.kz-live {
    width: 100%;
    max-width: 1480px;
    margin: 48px auto 0;
    padding: 0 40px;
}
.kz-live__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: color-mix(in srgb, var(--panel-solid) 88%, var(--bg));
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
}
.kz-live__cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 108px;
    padding: 18px 20px;
    color: inherit;
    border-right: 1px dashed color-mix(in srgb, var(--muted) 35%, transparent);
}
.kz-live__cell:last-child { border-right: 0; }
.kz-live__label {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 6px;
}
.kz-live__value {
    display: block;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}
.kz-live__cell small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}
.kz-live__ico {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.kz-live__ico svg { width: 22px; height: 22px; display: block; }
.kz-live__avatars {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.kz-live__av {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}
.kz-live__av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
}
.kz-live__empty { color: var(--muted); font-size: 13px; }
.kz-foot {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto 28px;
    padding: 0 40px 8px;
}
.kz-foot__rule {
    height: 3px;
    width: 100%;
    background: var(--accent);
    box-shadow: 0 0 16px var(--glow);
    border-radius: 99px;
}
.kz-foot__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 4px 12px;
}
.kz-foot__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--logo);
}
.kz-foot__brand img {
    width: 34px;
    height: 34px;
    filter: drop-shadow(0 0 8px var(--glow));
}
.kz-foot__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 18px;
}
.kz-foot__links a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}
.kz-foot__links a:hover { color: #fff; }
.kz-foot__copy {
    margin: 0;
    padding: 4px 4px 10px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}
html[data-color="light"] .kz-live__grid {
    background: #f6f8f7;
    border-color: #e3e9e6;
}
html[data-color="light"] .kz-live__ico {
    background: #e5f7ee;
    border-color: #00b874;
    color: #07884e;
}
@media (max-width: 1080px) {
    .kz-live { padding: 0 20px; }
    .kz-live__grid { grid-template-columns: 1fr 1fr; border-radius: 16px 16px 0 0; }
    .kz-live__cell:nth-child(2n) { border-right: 0; }
    .kz-live__cell { border-bottom: 1px dashed color-mix(in srgb, var(--muted) 35%, transparent); }
    .kz-live__cell:nth-last-child(-n+1) { border-bottom: 0; }
    .kz-foot { padding-left: 20px; padding-right: 20px; }
    .kz-foot__row { flex-direction: column; align-items: flex-start; }
    .kz-foot__links { justify-content: flex-start; }
}
@media (max-width: 720px) {
    .kz-live__grid { grid-template-columns: 1fr; }
    .kz-live__cell { border-right: 0; }
}

html[data-color="light"] .panel,
html[data-color="light"] .stats-board,
html[data-color="light"] .proj-chat,
html[data-color="light"] .sidemenu a,
html[data-color="light"] .countdown,
html[data-color="light"] .auth-card,
html[data-color="light"] .mon,
html[data-color="light"] .knives,
html[data-color="light"] .profile,
html[data-color="light"] .kz-admin {
    background: var(--panel-solid);
    color: var(--text);
    box-shadow: var(--shadow);
}
html[data-color="light"] .kz-admin {
    background:
        radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 58%),
        var(--panel-solid);
}
html[data-color="light"] .sidemenu a small,
html[data-color="light"] .chat-msg time,
html[data-color="light"] .proj-chat__title small,
html[data-color="light"] .priv-card__body p,
html[data-color="light"] .profile__card small {
    color: var(--muted);
}
html[data-color="light"] .btn-ghost,
html[data-color="light"] .btn-login,
html[data-color="light"] .theme-btn,
html[data-color="light"] .icon-btn,
html[data-color="light"] .stats-pick__arrow {
    background: #fff;
    color: var(--text);
    border-color: var(--line);
}
html[data-color="light"] .proj-chat__head,
html[data-color="light"] .proj-chat__help,
html[data-color="light"] .proj-chat__form,
html[data-color="light"] .mon__head {
    background: var(--panel-solid);
    color: var(--text);
}
html[data-color="light"] .proj-chat__locked {
    color: var(--text);
    background: var(--well);
}
html[data-color="light"] .muted a,
html[data-color="light"] .crumb a {
    color: var(--gold);
    font-weight: 700;
}
html[data-color="light"] tbody tr:hover td { background: var(--well); }
html[data-color="light"] .player-row {
    background: var(--well);
    border-color: var(--line);
}
html[data-color="light"] .stats-search,
html[data-color="light"] .pay-chip,
html[data-color="light"] .kz-btn {
    background: #fff;
    color: var(--text);
}
html[data-color="light"] .kz-btn--accent { color: var(--accent); }
html[data-color="light"] .nc-0,
html[data-color="light"] .nc-6,
html[data-color="light"] .nc-7 { color: #047857; }
html[data-color="light"] .nc-1 { color: #c2410c; }
html[data-color="light"] .nc-3 { color: #be185d; }
html[data-color="light"] input::placeholder { color: #8a948e; }
html[data-color="light"] .priv-card,
html[data-color="light"] .store-card {
    color: var(--text);
    background: var(--panel-solid);
    border-color: var(--line);
}
html[data-color="light"] .kz-live__grid {
    background: var(--panel-solid);
    border-color: var(--line);
}
html[data-color="light"] .kz-live__cell {
    color: var(--text);
}
html[data-color="light"] .sidemenu a,
html[data-color="light"] .panel,
html[data-color="light"] .proj-chat,
html[data-color="light"] .stats-board,
html[data-color="light"] .kz-admin {
    border-color: #d4ddd8;
}
html[data-color="light"] .mon-card {
    background: #fff;
    border-color: var(--line);
    color: var(--text);
}
html[data-color="light"] .mon-card__map {
    filter: saturate(0.95) brightness(1.08);
}
html[data-color="light"] .mon-card::after {
    background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.78) 48%, rgba(255,255,255,.55) 100%);
}
html[data-color="light"] .mon-card h3 { color: var(--text); }
html[data-color="light"] .mon-card__mapname { color: var(--muted); }
html[data-color="light"] .mon-card__slots {
    background: rgba(255,255,255,.88);
    color: var(--text);
    border: 1px solid var(--line);
}
html[data-color="light"] .mon-card.is-on .mon-card__slots { color: var(--gold); }
html[data-color="light"] .mon-ico-btn {
    background: #fff;
    border-color: var(--line);
    color: var(--accent);
}
html[data-color="light"] .mon-ico-btn:hover,
html[data-color="light"] .mon-ico-btn.is-copied {
    background: color-mix(in srgb, var(--accent) 12%, #fff);
    border-color: var(--accent);
}
html[data-color="light"] .mega {
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.94)),
        url("/theme-assets/time2cs/img/mega.png") center/cover;
}
html[data-color="light"] .mega__text { color: var(--text); }
html[data-color="light"] .mini-card {
    background: var(--panel-solid);
    border-color: var(--line);
}
html[data-color="light"] .mini-card::after {
    background: linear-gradient(90deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.42) 68%, transparent 100%);
}
html[data-color="light"] .mini-card b {
    color: var(--text);
    text-shadow: none;
}
html[data-color="light"] .profile__hero,
html[data-color="light"] .profile__name {
    color: var(--on-media);
}

.svino__sum {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
}
.svino__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--well);
    color: var(--muted);
    font-size: 13px;
}
.svino__chip b { color: var(--text); }
.svino__when {
    color: var(--muted);
    font-size: 12px;
    margin: -6px 0 10px;
}
.svino .stat-row__name {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.svino .stat-row__name small {
    color: var(--muted);
    font-weight: 500;
    font-size: 11px;
}
.svino__cols {
    grid-template-columns: 48px minmax(0, 1.6fr) repeat(3, 72px) auto;
}
.svino .stat-list__head {
    display: grid;
    gap: 8px;
    padding: 0 14px 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.svino .skill-badge[data-rank="novice"] { background: #475569; }
.svino .skill-badge[data-rank="cutter"] { background: #0369a1; }
.svino .skill-badge[data-rank="butcher"] { background: #b45309; }
.svino .skill-badge[data-rank="svinorez"] { background: #be123c; }
.svino .skill-badge[data-rank="legend"] {
    background: linear-gradient(180deg, #fbbf24, #d97706);
    color: #1a1000;
}
.svino .skill-badge[data-rank="piglet"] { background: #9d174d; }
.svino .skill-badge[data-rank="pig"] { background: #db2777; }
.svino .skill-badge[data-rank="ham"] { background: #c2410c; }
.svino .skill-badge[data-rank="bacon"] { background: #b91c1c; }
.svino .skill-badge[data-rank="meat"] {
    background: linear-gradient(180deg, #fb7185, #9f1239);
}
@media (max-width: 860px) {
    .svino .stat-list__head { display: none; }
}

.vip-board__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.vip-board__head h1 {
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
    font-size: 28px;
}
.vip-board__head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}
.vip-board__shield {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #4ade80;
    background: color-mix(in srgb, #22c55e 18%, var(--well));
    box-shadow: 0 0 22px rgba(34, 197, 94, 0.28);
    flex: 0 0 auto;
}
.vip-board__filter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: var(--well);
    border: 1px solid var(--line);
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
}
.vip-board__filter-ico { display: inline-flex; color: var(--accent); }
.vip-board__count {
    margin-left: auto;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--well-2);
    color: var(--text);
    font-size: 12px;
}
.vip-list { display: flex; flex-direction: column; gap: 10px; }
.vip-row {
    display: grid;
    grid-template-columns: 132px minmax(0, 1.1fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--well);
    border: 1px solid var(--line);
    color: inherit;
}
.vip-row:hover { border-color: var(--line-hot); }
.vip-row__status {
    display: grid;
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
}
.vip-row__plus {
    grid-row: 1 / span 2;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e11d48;
    color: #fff;
    font-weight: 800;
    line-height: 1;
}
.vip-row__status b { font-size: 14px; }
.vip-row__status small, .vip-row__who small, .vip-row__svc small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}
.vip-row__user, .vip-row__svc { min-width: 0; }
.vip-row__user {
    display: flex;
    align-items: center;
    gap: 12px;
}
.vip-row__av {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    flex: 0 0 auto;
}
.vip-row__who { min-width: 0; }
.vip-row__name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.vip-row__name[data-slug="premium"] { color: #38bdf8; }
.vip-row__name[data-slug="admin"] { color: #fb7185; }
.vip-row__ok { color: #a78bfa; display: inline-flex; flex: 0 0 auto; }
.vip-row__svc b {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
html[data-color="light"] .vip-board__shield {
    color: #15803d;
    background: #dcfce7;
    box-shadow: none;
}
html[data-color="light"] .vip-row__name { color: #9a3412; }
html[data-color="light"] .vip-row__name[data-slug="premium"] { color: #1d4ed8; }
html[data-color="light"] .vip-row__name[data-slug="admin"] { color: #be123c; }
html[data-color="light"] .vip-row__ok { color: #7c3aed; }
@media (max-width: 860px) {
    .vip-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .vip-row__svc b, .vip-row__name { white-space: normal; }
}

.user-chip { font-weight: 800; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.role-name { font-weight: 800; }
.blocked-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--bg);
    color: var(--text);
}
.blocked-card {
    max-width: 480px;
    width: 100%;
    background: var(--panel-solid, var(--panel));
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow);
}
.blocked-logo { width: 72px; height: 72px; margin: 0 auto 12px; display: block; }
.blocked-until, .blocked-reason { color: var(--muted); }
.blocked-form { text-align: left; margin-top: 18px; }
.blocked-form textarea {
    width: 100%; min-height: 90px; margin: 8px 0 12px;
    border-radius: 12px; border: 1px solid var(--line);
    background: var(--input-bg); color: var(--text); padding: 10px 12px;
}
