/* Dream Ark — ночное небо. Скруглённые формы, мягкое свечение, глубина.
   Палитра: ночной синий, тёплый янтарь (действие), бирюза (успех/онлайн). */

:root {
    --surface: rgba(23, 17, 11, .92);
    --bg: #0b0805;
    --bg-2: #120d08;
    --panel: #17110b;
    --panel-2: #21180f;
    --line: rgba(214, 182, 135, .14);
    --line-2: rgba(214, 182, 135, .27);
    --text: #f4ead8;
    --text-2: #cdbfa6;
    --mute: #8b7c64;
    --amber: #e2c08d;
    --amber-2: #f1d9b3;
    --amber-glow: rgba(226, 192, 141, .35);
    --teal: #9bbf6a;
    --bad: #e0694a;
    --warn: #e8b84a;
    --violet: #c98f6a;

    --f-head: "Exo 2", "Segoe UI", sans-serif;
    --f-body: "Nunito Sans", system-ui, sans-serif;

    --r: 18px;
    --r-sm: 12px;
    --wrap: 1560px;
    --rail: 96px;
    --gut: clamp(16px, 4vw, 36px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.6 var(--f-body);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}
/* Небо: лунное свечение сверху и россыпь звёзд */
body::before {
    content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background:
        radial-gradient(ellipse 70% 45% at 72% -8%, rgba(160, 118, 60, .22), transparent 70%),
        radial-gradient(ellipse 55% 40% at 12% 105%, rgba(226, 192, 141, .10), transparent 70%),
        radial-gradient(ellipse 50% 35% at 100% 70%, rgba(155, 191, 106, .06), transparent 70%),
        var(--bg);
}
body::after {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
    background-image:
        radial-gradient(1.2px 1.2px at 12% 18%, #fff, transparent),
        radial-gradient(1px 1px at 28% 62%, #f0e2c8, transparent),
        radial-gradient(1.4px 1.4px at 41% 9%, #fff, transparent),
        radial-gradient(1px 1px at 57% 41%, #f0e2c8, transparent),
        radial-gradient(1.3px 1.3px at 68% 78%, #fff, transparent),
        radial-gradient(1px 1px at 83% 22%, #fff, transparent),
        radial-gradient(1.2px 1.2px at 91% 55%, #f0e2c8, transparent),
        radial-gradient(1px 1px at 6% 83%, #fff, transparent),
        radial-gradient(1px 1px at 49% 92%, #f0e2c8, transparent),
        radial-gradient(1.2px 1.2px at 76% 6%, #fff, transparent);
    background-size: 520px 520px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
::selection { background: var(--amber); color: #1d1309; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--panel-2); border-radius: 8px; }

h1, h2, h3 { font-family: var(--f-head); margin: 0; font-weight: 700; line-height: 1.1; letter-spacing: .01em; }
h1 { font-size: clamp(2.8rem, 8vw, 5.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.25rem; }
.mute { color: var(--mute); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Каркас: левая колонка + контент ---------- */
.rail {
    position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail); z-index: 30;
    display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 0;
}
.rail-logo { width: 62px; margin-bottom: 8px; filter: drop-shadow(0 0 16px var(--amber-glow)); }
.rail-logo img { width: 100%; height: auto; }
.rail-btn {
    width: 60px; display: flex; flex-direction: column; align-items: center; gap: 5px;
    font: 600 .66rem/1 var(--f-body); color: var(--mute); transition: color .2s;
}
.rail-btn i {
    width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
    background: var(--panel); border: 1px solid var(--line); transition: all .2s;
}
.rail-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rail-btn:hover, .rail-btn.on { color: var(--text); }
.rail-btn:hover i { border-color: var(--line-2); transform: translateY(-2px); }
.rail-btn.on i { background: linear-gradient(145deg, var(--amber), #b98c52); border-color: transparent; color: #1d1309; box-shadow: 0 6px 22px var(--amber-glow); }
.rail-gap { flex: 1; }

.app { margin-left: var(--rail); min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- Верхняя панель ---------- */
.bar { position: sticky; top: 0; z-index: 25; padding-block: 14px; backdrop-filter: blur(14px); background: linear-gradient(to bottom, rgba(11, 8, 5, .88), rgba(11, 8, 5, .55)); }
.bar-in { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.pill {
    display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px;
    background: var(--panel); border: 1px solid var(--line); font: 700 .8rem/1 var(--f-body); color: var(--text-2);
    transition: border-color .2s, color .2s;
}
a.pill:hover { border-color: var(--line-2); color: var(--text); }
.pill b { color: var(--teal); font-weight: 800; }
.pill.bal { color: var(--amber-2); }
.pill svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lang { display: inline-flex; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); padding: 3px; }
.lang a { padding: 9px 13px; border-radius: 999px; font: 800 .72rem/1 var(--f-body); color: var(--mute); }
.lang a.on { background: var(--panel-2); color: var(--amber-2); }
.ava { width: 42px; height: 42px; border-radius: 50%; background: var(--panel-2) center/cover; border: 2px solid var(--line-2); display: grid; place-items: center; font: 800 .95rem var(--f-head); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, var(--amber), #b98c52); box-shadow: 0 6px 22px var(--amber-glow); color: #1d1309; transition: transform .2s; }
.menu summary:hover { transform: scale(1.06); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; }
.menu-list { position: absolute; right: 0; top: 56px; min-width: 220px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); padding: 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border: 0; background: none; border-radius: var(--r-sm); color: var(--text-2); font: 600 .92rem var(--f-body); cursor: pointer; text-align: left; }
.menu-list a:hover, .menu-list button:hover { background: var(--panel-2); color: var(--text); }
.menu-list svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* ---------- Кнопки и формы ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 26px;
    border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text);
    font: 700 .92rem/1 var(--f-body); cursor: pointer; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--text-2); }
.btn.primary { background: linear-gradient(145deg, var(--amber), #b98c52); border-color: transparent; color: #1d1309; box-shadow: 0 8px 26px var(--amber-glow); }
.btn.primary:hover { box-shadow: 0 12px 34px rgba(226, 192, 141, .5); }
.btn.small { height: 36px; padding: 0 18px; font-size: .82rem; }
.btn.ghost { background: transparent; color: var(--text-2); }
.btn[disabled] { opacity: .4; pointer-events: none; }

label { display: block; font: 700 .78rem/1 var(--f-body); color: var(--mute); margin-bottom: 9px; letter-spacing: .02em; }
input[type=text], input[type=number], select, textarea {
    width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text);
    padding: 0 18px; height: 48px; font: 600 1rem var(--f-body); border-radius: var(--r-sm);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(226, 192, 141, .15); }
.row { display: flex; gap: .8rem; align-items: end; flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 160px; }

.flash { border-radius: var(--r-sm); padding: 14px 18px; margin-top: 8px; background: var(--panel); border: 1px solid var(--line-2); font-weight: 600; }
.flash.ok { border-color: rgba(155, 191, 106, .5); background: rgba(155, 191, 106, .08); }
.flash.err { border-color: rgba(224, 105, 74, .5); background: rgba(224, 105, 74, .08); }

/* ---------- Секции ---------- */
.sec { padding-block: clamp(2.2rem, 5vw, 3.8rem); }
.sec-h { display: flex; align-items: center; gap: 16px; margin-bottom: 1.8rem; }
.sec-h .no { display: none; }
.sec-h .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.sec-h a { font: 700 .82rem var(--f-body); color: var(--amber-2); }
.sec-h a:hover { text-decoration: underline; }

/* ---------- Главная ---------- */
.hero { padding-block: 10px clamp(1rem, 3vw, 2rem); }
.hero-card {
    position: relative; overflow: hidden; isolation: isolate; border-radius: 32px; border: 1px solid var(--line-2);
    min-height: min(78vh, 700px); display: grid; place-items: center; text-align: center;
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.2rem, 4vw, 3rem) clamp(2rem, 5vw, 3.2rem);
    background: #17110b center/cover;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 55% at 50% 38%, transparent 30%, rgba(11, 8, 5, .55) 100%), linear-gradient(180deg, transparent 60%, rgba(11, 8, 5, .7)); }
.hero-in { display: flex; flex-direction: column; align-items: center; max-width: 820px; }
.hero-logo { width: clamp(150px, 20vw, 240px); margin-bottom: 1.2rem; animation: hover 6s ease-in-out infinite; filter: drop-shadow(0 12px 40px rgba(226, 192, 141, .35)); }
.hero-logo img { width: 100%; height: auto; }
.eyebrow { display: inline-block; font: 800 .74rem var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--amber-2); background: rgba(11, 8, 5, .55); border: 1px solid rgba(226, 192, 141, .35); padding: 8px 16px; border-radius: 999px; margin-bottom: 1.2rem; backdrop-filter: blur(6px); }
.hero h1 { text-shadow: 0 4px 40px rgba(0, 0, 0, .6); }
.lead { max-width: 52ch; color: var(--text); opacity: .88; font-size: 1.1rem; margin: 1.2rem 0 1.8rem; text-shadow: 0 2px 16px rgba(0, 0, 0, .7); }
.cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
@keyframes hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Летящие угольки */
.embers { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.embers i { position: absolute; bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%; background: #f1d9b3; box-shadow: 0 0 10px 2px rgba(226, 192, 141, .8); opacity: 0; animation: rise linear infinite; }
@keyframes rise { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: .9; } 100% { transform: translate(var(--dx), -620px); opacity: 0; } }

/* Быстрые ссылки с анимированными иконками */
.quick { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(10px, 3vw, 34px); margin-top: clamp(1.8rem, 4vw, 3rem); }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 84px; font: 700 .82rem var(--f-body); color: var(--text-2); text-shadow: 0 2px 12px rgba(0, 0, 0, .8); transition: color .2s; }
.quick i { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: rgba(11, 8, 5, .45); border: 1px solid rgba(226, 192, 141, .28); backdrop-filter: blur(6px); animation: bob 4.5s ease-in-out infinite; transition: transform .25s, background .25s, border-color .25s, box-shadow .25s; }
.quick a:nth-child(2n) i { animation-delay: -1.1s; }
.quick a:nth-child(3n) i { animation-delay: -2.2s; }
.quick a:nth-child(5n) i { animation-delay: -3.3s; }
.quick svg { width: 28px; height: 28px; stroke: var(--amber-2); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.quick a:hover { color: var(--text); }
.quick a:hover i { animation-play-state: paused; transform: translateY(-6px) scale(1.12) rotate(-4deg); background: rgba(226, 192, 141, .16); border-color: var(--amber); box-shadow: 0 10px 30px rgba(226, 192, 141, .35); }
.quick a:hover svg * { stroke-dasharray: 1; animation: draw .9s ease-out; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Серверы */
.srv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.srv-card { display: grid; grid-template-columns: 14px 1fr auto; gap: 16px; align-items: center; padding: 20px 24px; background: linear-gradient(170deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s, transform .2s; }
.srv-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.srv-card b { display: block; font: 700 1.1rem var(--f-head); }
.srv-card small { color: var(--mute); font-weight: 600; }
.srv-st { font: 800 .74rem var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }

.board { background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); border-radius: 24px; padding: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05); }
.board-h { display: flex; justify-content: space-between; padding: 16px 18px 12px; font: 800 .74rem var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.srv { display: grid; grid-template-columns: 12px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border-radius: var(--r-sm); font-weight: 700; }
.srv + .srv { margin-top: 2px; }
.srv:hover { background: rgba(255, 255, 255, .03); }
.srv small { color: var(--mute); font-weight: 600; font-size: .78rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mute); }
.dot.on { background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.dot.off { background: var(--bad); box-shadow: 0 0 12px var(--bad); }
.board-empty { padding: 22px 18px; color: var(--mute); }

/* «Как это работает»: слева путь игрока одной линией, справа вопросы без рамок */
.guide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; padding-bottom: 3rem; }
.guide.solo { grid-template-columns: minmax(0, 40rem); }
.path { list-style: none; margin: 0; padding: 0; counter-reset: p; position: sticky; top: 96px; }
.path li { position: relative; padding: 0 0 2.4rem 4.8rem; counter-increment: p; }
.path li:last-child { padding-bottom: 0; }
.path li::before { content: counter(p, decimal-leading-zero); position: absolute; left: 0; top: -.2rem; font: 800 2.3rem/1 var(--f-head); color: transparent; -webkit-text-stroke: 1px var(--amber); }
.path li::after { content: ""; position: absolute; left: 1.4rem; top: 2.5rem; bottom: .5rem; width: 1px; background: linear-gradient(var(--line-2), transparent); }
.path li:last-child::after { display: none; }
.path h3 { margin: 0 0 .4rem; font-size: 1.3rem; }
.path p { margin: 0; color: var(--text-2); max-width: 46ch; }
.path code { font: 700 .9em ui-monospace, Consolas, monospace; color: var(--amber-2); background: var(--panel-2); padding: 2px 8px; border-radius: 6px; }
.qa-h { margin: 0 0 .7rem; font: 700 .8rem var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
@media (max-width: 900px) {
    .guide { grid-template-columns: 1fr; }
    .path { position: static; }
}

/* Лента товаров на главной */
.ledger { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ledger li { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: center; padding: 16px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); transition: transform .2s, border-color .2s; }
.ledger li:hover { transform: translateX(4px); border-color: var(--line-2); }
.ledger .nm { display: flex; align-items: center; gap: 14px; min-width: 0; flex-wrap: wrap; }
.ledger .nm a { font: 700 1.2rem/1.2 var(--f-head); }
.ledger .nm a:hover { color: var(--amber-2); }
.ledger .pr { font: 800 1.1rem var(--f-head); color: var(--amber-2); }

.tag { display: inline-block; font: 700 .7rem/1 var(--f-body); letter-spacing: .04em; background: var(--panel-2); color: var(--text-2); padding: 6px 11px; border-radius: 999px; white-space: nowrap; }
.chip { display: inline-block; font: 800 .72rem/1 var(--f-body); padding: 7px 12px; border-radius: 999px; white-space: nowrap; background: var(--panel-2); }
.chip.delivered { color: var(--teal); background: rgba(155, 191, 106, .12); }
.chip.pending, .chip.sending { color: var(--warn); background: rgba(232, 184, 74, .12); }
.chip.failed { color: var(--bad); background: rgba(224, 105, 74, .12); }
.chip.uncertain { color: var(--violet); background: rgba(160, 118, 60, .16); }

.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.log li { display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding: 20px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.log time { font: 700 .82rem var(--f-body); color: var(--amber-2); padding-top: 4px; }
.log h3 a:hover { color: var(--amber-2); }
.log p { color: var(--text-2); margin: .5rem 0 0; font-size: .95rem; max-width: 70ch; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.35rem 0; font: 700 1.2rem/1.35 var(--f-head); display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover, .faq details[open] summary { color: var(--amber-2); }
.faq summary::after { content: ""; width: 14px; height: 14px; flex: none; color: var(--amber); transition: transform .25s; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 0 1.5rem; color: var(--text-2); max-width: 62ch; font-size: 1.02rem; }

/* ---------- Каталог ---------- */
.shop { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; align-items: start; }
.cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; position: sticky; top: 90px; }
.cats a { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-radius: 999px; font: 700 .9rem var(--f-body); color: var(--text-2); background: var(--panel); border: 1px solid var(--line); transition: all .2s; }
.cats a:hover { border-color: var(--line-2); color: var(--text); }
.cats a.on { background: linear-gradient(145deg, var(--amber), #b98c52); color: #1d1309; border-color: transparent; box-shadow: 0 6px 20px var(--amber-glow); }
.cats small { opacity: .7; font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.tile { display: flex; flex-direction: column; background: linear-gradient(170deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; }
.tile:hover { transform: translateY(-6px); border-color: rgba(226, 192, 141, .45); box-shadow: 0 24px 50px rgba(0, 0, 0, .5), 0 0 40px rgba(226, 192, 141, .1); }
.tile-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-2); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tile-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-height: 26px; }
.tile .sub { color: var(--mute); font-weight: 600; font-size: .85rem; margin-top: -6px; }
.tile .price { font-size: 2rem; display: flex; align-items: baseline; gap: 8px; }
.tile .price small { font: 700 .8rem var(--f-body); color: var(--mute); }
.feat { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 10px; font-size: .92rem; color: var(--text-2); }
.feat li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.feat li::before { content: ""; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: rgba(155, 191, 106, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.8 2.8L13 6.6' fill='none' stroke='%234fd8c4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.tile-btn { margin-top: auto; width: 100%; }
.tile:hover .tile-btn { background: linear-gradient(145deg, var(--amber), #b98c52); color: #1d1309; border-color: transparent; }
.tag.star { background: rgba(232, 184, 74, .16); color: var(--warn); }
.tile.hot { background: linear-gradient(165deg, #eed8b9 0%, #cdb086 50%, #a28160 100%); border-color: transparent; box-shadow: 0 24px 60px rgba(214, 182, 135, .22); color: #2a1a0b; }
.tile.hot:hover { box-shadow: 0 30px 70px rgba(214, 182, 135, .38); border-color: transparent; }
.tile.hot .tag { background: rgba(46, 23, 11, .14); color: #3a2410; }
.tile.hot .tag.star { background: #2e170b; color: #eed8b9; }
.tile.hot .sub, .tile.hot .price small, .tile.hot .price s { color: rgba(46, 23, 11, .65); }
.tile.hot h3, .tile.hot .price { color: #24140a; }
.tile.hot .feat { color: #3a2410; }
.tile.hot .feat li::before { background-color: rgba(46, 23, 11, .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.8 2.8L13 6.6' fill='none' stroke='%232e170b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.tile.hot .tile-btn { background: #2e170b; color: #eed8b9; border-color: transparent; }
.tile.hot .disc { background: #2e170b; color: #eed8b9; }
.ph { aspect-ratio: 4/3; display: grid; place-items: center; font: 800 .8rem var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); overflow: hidden; position: relative;
    background: radial-gradient(circle at 50% 40%, rgba(160, 118, 60, .28), transparent 62%), radial-gradient(circle at 80% 90%, rgba(226, 192, 141, .16), transparent 55%), var(--bg-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.tile-b { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tile-b h3 { font-size: 1.3rem; }
.tile-f { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.price { font: 800 1.3rem var(--f-head); color: var(--amber-2); }
.price s { color: var(--mute); font-size: .88rem; margin-right: .4rem; font-weight: 600; }
.disc { color: #1d1309; background: var(--teal); font: 800 .72rem var(--f-body); padding: 5px 10px; border-radius: 999px; }

/* ---------- Товар ---------- */
.prod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 3.5rem); align-items: start; }
.prod .ph { aspect-ratio: 1/1; border: 1px solid var(--line-2); border-radius: 28px; }
.prod h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 1rem 0 1.2rem; }
.opts { display: grid; gap: 10px; margin: 1.5rem 0; }
.opt { display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: center; padding: 16px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; margin: 0; font: 600 1rem var(--f-body); color: var(--text); transition: border-color .2s; }
.opt:hover { border-color: var(--line-2); }
.opt:has(input:checked) { border-color: var(--amber); background: rgba(226, 192, 141, .07); box-shadow: 0 0 0 3px rgba(226, 192, 141, .12); }
.opt input { accent-color: var(--amber); width: 18px; height: 18px; }
.contents { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 8px; }
.contents li { display: flex; justify-content: space-between; padding: 12px 18px; background: var(--panel); border-radius: var(--r-sm); font-weight: 600; }

/* ---------- Таблицы и блоки ---------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font: 800 .72rem var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding: 10px 12px; }
.tbl td { padding: 14px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl .r { text-align: right; }
.tbl input[type=number] { width: 84px; height: 40px; padding: 0 12px; }

.box { background: linear-gradient(170deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 24px; padding: 26px; }
.box + .box { margin-top: 20px; }
.box h3 { margin-bottom: 1rem; }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(290px, 1fr); gap: 24px; align-items: start; }
.sum { display: flex; justify-content: space-between; padding: 7px 0; font-weight: 600; }
.sum.tot { border-top: 1px solid var(--line-2); margin-top: 8px; padding-top: 16px; font: 800 1.35rem var(--f-head); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.stat { background: linear-gradient(170deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 24px; padding: 24px 26px; }
.stat small { display: block; font: 800 .74rem var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.stat b { font: 800 1.9rem var(--f-head); }
.bar-p { height: 8px; background: var(--bg-2); border-radius: 999px; margin: 14px 0 8px; overflow: hidden; }
.bar-p i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--amber), var(--amber-2)); }
.presets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.presets button { background: var(--panel-2); color: var(--text-2); border: 1px solid var(--line); padding: 9px 18px; border-radius: 999px; font: 700 .86rem var(--f-body); cursor: pointer; transition: all .18s; }
.presets button:hover { border-color: var(--amber); color: var(--text); }
.prose { max-width: 70ch; color: var(--text-2); }
.pager { margin-top: 2rem; align-items: center; }

.page-h { padding-block: clamp(1.5rem, 4vw, 2.6rem) 1.4rem; }
.page-h h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.crumb { font: 700 .8rem var(--f-body); color: var(--mute); margin-bottom: 12px; }
.crumb a:hover { color: var(--amber-2); }
.empty { border: 1px dashed var(--line-2); border-radius: var(--r); padding: 2.6rem; text-align: center; color: var(--mute); }

/* ---------- Подвал ---------- */
.foot { margin-top: auto; padding-block: 28px; border-top: 1px solid var(--line); color: var(--mute); font-size: .85rem; }
.foot .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a:hover { color: var(--amber-2); }
main { flex: 1; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .hero-grid, .prod, .cols, .shop { grid-template-columns: 1fr; }
    .cats { position: static; display: flex; flex-wrap: wrap; }
    .steps, .stats { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    :root { --rail: 0px; }
    .rail { top: auto; bottom: 0; left: 0; right: 0; width: auto; height: 74px; flex-direction: row; justify-content: space-around; padding: 8px 10px; gap: 4px; background: rgba(11, 8, 5, .94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
    .rail-logo, .rail-gap { display: none; }
    .rail-btn i { width: 42px; height: 42px; }
    .rail-btn svg { width: 19px; height: 19px; }
    .app { padding-bottom: 80px; }
    .bar-in { justify-content: space-between; }
    .ledger li { grid-template-columns: 1fr auto; }
    .ledger li .btn { display: none; }
    .log li { grid-template-columns: 1fr; gap: 6px; }
    .tbl { display: block; overflow-x: auto; }
    .box { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Верхняя панель с навигацией (вместо левой колонки) ---------- */
:root { --rail: 0px; }
.rail { display: none; }
.app { margin-left: 0; padding-bottom: 0; }
.bar-in { justify-content: space-between; flex-wrap: nowrap; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 46px; height: auto; filter: drop-shadow(0 0 12px var(--amber-glow)); }
.brand span { font: 800 1.5rem/1 var(--f-head); letter-spacing: .03em; }
.brand span b { color: var(--amber); font-weight: 800; }
.nav { display: flex; gap: 6px; margin-right: auto; }
.nav a { padding: 10px 18px; border-radius: 999px; font: 700 .92rem/1 var(--f-body); color: var(--text-2); transition: background .2s, color .2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav a.on { color: var(--amber-2); background: rgba(226, 192, 141, .12); }
.bar-r { display: flex; align-items: center; gap: 10px; flex: none; }
.m-nav { display: none !important; }
@media (max-width: 960px) {
    .nav { display: none; }
    .m-nav { display: flex !important; }
    .pill-st { display: none; }
}
@media (max-width: 760px) {
    .app { padding-bottom: 0; }
    .brand span { display: none; }
    .bar-r { gap: 6px; }
    .pill.bal { padding: 0 12px; }
}

/* ---------- Широкие мониторы ---------- */
/* Размытый арт под всем сайтом, чтобы по бокам не было пустоты */
.bg-art { position: fixed; inset: -40px; z-index: -3; background: center/cover no-repeat; filter: blur(34px) saturate(.9) brightness(.32); transform: scale(1.05); pointer-events: none; }
body::before { opacity: .85; }
/* Шапка во всю ширину экрана, без рамки */
.hero { padding: 0 0 clamp(1rem, 3vw, 2rem); }
.hero-card { border-radius: 0 0 36px 36px; border-left: 0; border-right: 0; border-top: 0; min-height: min(84vh, 860px); }
.hero-card::after { background: radial-gradient(ellipse 55% 60% at 50% 40%, transparent 25%, rgba(11, 8, 5, .6) 100%), linear-gradient(180deg, transparent 55%, rgba(11, 8, 5, .8)); }
.hero-in { max-width: 920px; }
.hero h1 { font-size: clamp(3rem, 6vw, 6.6rem); }
.lead { font-size: clamp(1.05rem, 1.1vw, 1.3rem); max-width: 58ch; }
.hero-logo { width: clamp(150px, 15vw, 300px); }
.quick i { width: clamp(58px, 3.6vw, 76px); height: clamp(58px, 3.6vw, 76px); }
.quick svg { width: clamp(28px, 1.8vw, 36px); height: clamp(28px, 1.8vw, 36px); }
@media (min-width: 2200px) {
    html { font-size: 18px; }
    body { font-size: 1.05rem; }
}
@media (min-width: 2200px) { :root { --wrap: 2060px; } .grid { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); } .srv-grid { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); } }

/* ---------- Главная: всё содержимое шапки помещается на первом экране ---------- */
.hero-card { height: calc(100svh - 74px); min-height: 520px; max-height: 1100px; padding-block: clamp(1rem, 3vh, 2.5rem); }
.hero-in { justify-content: center; }
.hero-logo { width: auto; height: clamp(90px, 21vh, 280px); margin-bottom: clamp(.5rem, 1.6vh, 1.2rem); }
.hero-logo img { height: 100%; width: auto; }
.eyebrow { margin-bottom: clamp(.6rem, 1.6vh, 1.2rem); }
.hero h1 { font-size: clamp(2.8rem, 9.5vh, 6.4rem); }
.lead { margin: clamp(.6rem, 1.8vh, 1.2rem) 0 clamp(1rem, 2.8vh, 1.8rem); font-size: clamp(1rem, 2.1vh, 1.3rem); max-width: 62ch; }
.quick { margin-top: clamp(1rem, 4vh, 3rem); }
.quick i { width: clamp(52px, 6.5vh, 76px); height: clamp(52px, 6.5vh, 76px); }
.quick svg { width: clamp(26px, 3.3vh, 36px); height: clamp(26px, 3.3vh, 36px); }
@media (max-width: 760px) { .hero-card { height: auto; min-height: calc(100svh - 74px); } }

/* ---------- Настройки кластера и правила ---------- */
.set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.set-box h3 { margin-bottom: 14px; color: var(--amber-2); }
.set-list { margin: 0; }
.set-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-top: 1px solid var(--line); }
.set-list dt { color: var(--text-2); font-weight: 600; }
.set-list dd { margin: 0; font-weight: 800; font-family: var(--f-head); font-size: 1.1rem; text-align: right; }
.rules { max-width: 980px; display: grid; gap: 12px; }
.rules-h { margin-top: 1.6rem; font-size: 1.6rem; color: var(--amber-2); }
.rules-h:first-child { margin-top: 0; }
.rules .rule { display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; padding: 18px 22px; background: linear-gradient(170deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); }
.rules .rule p { margin: 0; color: var(--text); }
.rule-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 800 .9rem var(--f-head); color: #1d1309; background: linear-gradient(145deg, var(--amber), #b98c52); }

/* Верхняя панель: шесть ссылок + управление; на средних экранах уплотняем, на узких прячем в меню */
@media (max-width: 1560px) { .pill-st { display: none; } .nav a { padding: 10px 13px; } .bar-in { gap: 16px; } }
@media (max-width: 1180px) { .nav { display: none; } .m-nav { display: flex !important; } }

/* ---------- Серверы: живые карточки с эмблемой карты ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease var(--d, 0ms), transform .6s ease var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.srv-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(520px, 1fr)); gap: 20px; }
.srv-c {
    position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: clamp(16px, 2vw, 28px); align-items: center;
    padding: 22px 26px 22px 22px; border-radius: 26px; border: 1px solid var(--line); overflow: hidden;
    background: radial-gradient(500px circle at var(--mx, 20%) var(--my, 0%), rgba(226, 192, 141, .10), transparent 55%), linear-gradient(170deg, var(--panel-2), var(--panel));
    transition: border-color .25s, box-shadow .25s;
}
.srv-c.in { transition: opacity .6s ease var(--d, 0ms), transform .12s ease-out, border-color .25s, box-shadow .25s; }
.srv-c:hover { border-color: rgba(226, 192, 141, .45); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.srv-c[data-state="off"] { opacity: .75; }

.srv-emblem { position: relative; width: clamp(84px, 7vw, 112px); aspect-ratio: 1; }
.srv-emblem::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; background: radial-gradient(circle, rgba(226, 192, 141, .28), transparent 68%); }
.map-ico { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
    background: radial-gradient(circle at 35% 28%, #3a2a17, #17110b 70%); border: 2px solid rgba(226, 192, 141, .55);
    box-shadow: inset 0 0 0 5px rgba(11, 8, 5, .6), inset 0 0 0 6px rgba(226, 192, 141, .22), 0 8px 24px rgba(0, 0, 0, .5); }
.map-ico img { width: 100%; height: 100%; object-fit: cover; }
.map-ico svg { width: 62%; height: 62%; fill: none; stroke: var(--amber-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.map-ico svg .fill { fill: rgba(226, 192, 141, .16); }
.srv-c:hover .map-ico svg { animation: icoPop .7s ease; }
@keyframes icoPop { 0% { transform: scale(.85) rotate(-6deg); } 60% { transform: scale(1.08) rotate(2deg); } 100% { transform: none; } }

.srv-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.srv-title h3 { font-size: clamp(1.25rem, 1.6vw, 1.6rem); }
.srv-badge { display: inline-flex; align-items: center; gap: 7px; font: 800 .7rem var(--f-body); letter-spacing: .08em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; background: var(--panel-2); color: var(--mute); }
.srv-badge i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.srv-badge.on { color: var(--teal); background: rgba(155, 191, 106, .12); }
.srv-badge.on i { box-shadow: 0 0 10px currentColor; animation: pulse 2s ease-in-out infinite; }
.srv-badge.off { color: var(--bad); background: rgba(224, 105, 74, .12); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.srv-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 8px 0 14px; color: var(--text-2); font-weight: 600; font-size: .92rem; }
.srv-addr { display: inline-flex; align-items: center; gap: 12px; padding: 5px 5px 5px 14px; border-radius: 999px; background: rgba(11, 8, 5, .5); border: 1px solid var(--line); }
.srv-addr code { font: 700 .9rem ui-monospace, Consolas, monospace; color: var(--text); }
.copy { border: 0; cursor: pointer; padding: 8px 14px; border-radius: 999px; background: var(--panel-2); color: var(--amber-2); font: 800 .72rem var(--f-body); letter-spacing: .04em; transition: background .2s, color .2s; }
.copy:hover { background: rgba(226, 192, 141, .2); }
.copy.ok { background: var(--teal); color: #1d1309; }

.srv-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 150px; }
.srv-pl { font-size: 1.1rem; }
.srv-pl b { font: 800 2.4rem/1 var(--f-head); color: var(--text); }
.srv-pl span { color: var(--mute); font-weight: 700; }
.srv-bar { width: 100%; height: 6px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.srv-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #b98c52, var(--amber-2)); transition: width 1s ease; }
.srv-side small { color: var(--mute); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
@media (max-width: 640px) {
    .srv-list { grid-template-columns: 1fr; }
    .srv-c { grid-template-columns: auto 1fr; }
    .srv-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
    .srv-bar { order: 5; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Серверы без IP и онлайна: эмблема, название, статус и копирование названия для поиска в игре */
.srv-list { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
.srv-c { grid-template-columns: auto 1fr auto; }
.srv-meta { margin: 10px 0 0; }
.srv-copy { padding: 11px 18px; font-size: .78rem; white-space: nowrap; border: 1px solid var(--line-2); }
@media (max-width: 640px) { .srv-list { grid-template-columns: 1fr; } .srv-c { grid-template-columns: auto 1fr; } .srv-copy { grid-column: 1 / -1; } }
.srv-list { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.srv-c { grid-template-columns: auto minmax(0, 1fr); row-gap: 18px; padding: 24px; }
.srv-copy { grid-column: 1 / -1; width: 100%; text-align: center; background: rgba(11, 8, 5, .45); color: var(--text-2); }
.srv-copy:hover { color: var(--amber-2); border-color: rgba(226, 192, 141, .5); }
.srv-title h3 { overflow-wrap: anywhere; }

/* ---------- Серверы по кластерам: колонка на кластер ---------- */
.cl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; align-items: start; }
.cl { position: relative; padding: 8px 8px 14px; border-radius: 30px; border: 1.5px solid rgba(226, 192, 141, .55); background: var(--surface); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.cl-banner { aspect-ratio: 16/9; border-radius: 22px; overflow: hidden; background: var(--bg-2); }
.cl-banner img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cl:hover .cl-banner img { transform: scale(1.04); }
.cl-art { position: relative; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden;
    background: radial-gradient(ellipse 70% 80% at 50% 110%, rgba(226, 192, 141, .55), transparent 62%), radial-gradient(circle at 20% 15%, rgba(160, 118, 60, .35), transparent 50%), linear-gradient(180deg, #2a1a0d, #120c07); }
.cl-art::before { content: ""; position: absolute; left: -5%; right: -5%; bottom: 0; height: 46%; background: #0d0805;
    clip-path: polygon(0 100%, 0 55%, 12% 35%, 22% 55%, 34% 20%, 47% 52%, 60% 28%, 72% 56%, 84% 32%, 100% 58%, 100% 100%); opacity: .9; }
.cl-art span { position: relative; font: 800 clamp(3rem, 6vw, 5rem)/1 var(--f-head); letter-spacing: .02em; text-transform: uppercase; color: transparent;
    -webkit-text-stroke: 2px rgba(238, 216, 185, .9); text-shadow: 0 8px 40px rgba(226, 192, 141, .45); }
.cl-head { display: flex; align-items: center; gap: 10px; padding: 18px 14px 14px; }
.cl-head h2 { flex: 1; font-size: 1.35rem; line-height: 1.2; }
.cl-btn { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1.5px solid rgba(226, 192, 141, .4); background: transparent; color: var(--text-2); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.cl-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.cl-btn:hover { color: var(--text); border-color: var(--amber); transform: translateY(-2px); }
.cl-btn.hot { background: linear-gradient(145deg, var(--amber), #b98c52); border-color: transparent; color: #1d1309; }
.cl-btn.hot:hover { color: #1d1309; box-shadow: 0 8px 22px var(--amber-glow); }
.cl.closed .cl-btn.hot svg { transform: rotate(180deg); }
.cl-list { list-style: none; margin: 0; padding: 4px 14px 4px; border-top: 1px solid var(--line); display: grid; transition: opacity .25s; }
.cl.closed .cl-list { display: none; }
.cl-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.cl-list li:last-child { border-bottom: 0; }
.cl-ico { position: relative; width: 52px; height: 52px; }
.cl-ico .map-ico { border-width: 1.5px; box-shadow: inset 0 0 0 3px rgba(11, 8, 5, .6), 0 4px 12px rgba(0, 0, 0, .5); }
.cl-dot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: var(--mute); border: 2px solid #120d08; }
.cl-list li[data-state="on"] .cl-dot { background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.cl-list li[data-state="off"] .cl-dot { background: var(--bad); }
.cl-list li[data-state="off"] .cl-name { color: var(--mute); }
.cl-name { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.cl-copy { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 0; background: transparent; color: var(--text-2); cursor: pointer; transition: background .2s, color .2s; }
.cl-copy svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cl-copy:hover { background: rgba(226, 192, 141, .14); color: var(--amber-2); }
.cl-copy.ok { background: var(--teal); color: #1d1309; }
.cl-hint { margin-top: 1.4rem; font-size: .88rem; }
.cl-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 440px)); justify-content: center; }

/* Один кластер: широкий блок вместо узкой колонки */
.cl-grid.solo { grid-template-columns: 1fr; }
.solo .cl { padding: 10px 10px 18px; }
.solo .cl-banner { aspect-ratio: auto; height: clamp(190px, 22vw, 340px); }
.solo .cl-art span { font-size: clamp(3.6rem, 9vw, 8rem); }
.solo .cl-head { padding: 22px 20px 16px; }
.solo .cl-head h2 { font-size: clamp(1.5rem, 2vw, 2rem); }
.solo .cl-list { padding: 8px 20px 4px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); column-gap: 36px; }
.solo .cl-list li:last-child { border-bottom: 1px solid var(--line); }
.solo .cl-ico { width: 58px; height: 58px; }
.solo .cl-name { font-size: 1.02rem; }

/* ---------- Правая часть верхней панели: без капсул и свечения ---------- */
.bar-r { gap: 6px; }
.pill-st, .lang { display: none; }
.lng { display: flex; align-items: center; margin-right: 8px; font: 800 .8rem var(--f-body); }
.lng a { padding: 8px 5px; color: var(--mute); border-bottom: 2px solid transparent; transition: color .2s; }
.lng a:hover { color: var(--text); }
.lng a.on { color: var(--text); border-bottom-color: var(--amber); }
.lng i { font-style: normal; color: var(--line-2); }
.tool { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; color: var(--text-2); transition: background .2s, color .2s; }
.tool svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tool:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.tool em { position: absolute; top: 1px; right: -1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--amber); color: #1d1309; font: 800 .68rem/18px var(--f-body); text-align: center; font-style: normal; }
.bal-link { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 5px 0 14px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--amber-2); font: 800 .92rem var(--f-body); transition: border-color .2s; }
.bal-link span { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; background: var(--amber); color: #1d1309; font: 800 1.1rem/1 var(--f-body); }
.bal-link:hover { border-color: var(--amber); }
.steam { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px 0 13px; border-radius: 10px; border: 1px solid rgba(226, 192, 141, .5); background: rgba(226, 192, 141, .08); color: var(--text); font: 800 .86rem var(--f-body); transition: background .2s, border-color .2s; }
.steam svg { width: 22px; height: 22px; stroke: var(--amber-2); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.steam:hover { background: rgba(226, 192, 141, .18); border-color: var(--amber); }
.acc { position: relative; }
.acc summary { list-style: none; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.ava { width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--panel-2) center/cover; display: grid; place-items: center; font: 800 1rem var(--f-head); transition: border-color .2s; }
.acc[open] .ava, .ava:hover { border-color: var(--amber); }
.acc-h { padding: 10px 14px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acc-h b { display: block; font: 800 1rem var(--f-head); }
.acc-h small { color: var(--mute); font-weight: 600; font-size: .75rem; }
.menu.mnav { display: none; }
.menu.mnav summary { width: 42px; height: 42px; border-radius: 10px; background: transparent; border: 1px solid var(--line-2); box-shadow: none; color: var(--text-2); }
.menu.mnav summary:hover { transform: none; border-color: var(--amber); color: var(--text); }
@media (max-width: 1180px) { .menu.mnav { display: block; } .m-nav { display: none !important; } }
@media (max-width: 640px) { .steam span { display: none; } .steam { padding: 0 13px; } .bal-link { padding-left: 10px; } }

/* Вход через Steam: только круглая иконка, без подписи */
.steam { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; border: 0; background: none; transition: transform .2s, filter .2s; }
.steam svg { width: 44px; height: 44px; stroke: none; fill: none; }
.steam .s-bg { fill: #17110b; stroke: rgba(226, 192, 141, .6); stroke-width: 1.2; }
.steam .s-ring { fill: none; stroke: #f1d9b3; stroke-width: 2.2; }
.steam .s-low { fill: #f1d9b3; }
.steam .s-dot { fill: #17110b; }
.steam .s-ring + .s-dot { fill: #f1d9b3; }
.steam .s-arm { stroke: #f1d9b3; stroke-width: 2.4; stroke-linecap: round; fill: none; }
.steam:hover { background: none; transform: translateY(-2px) scale(1.05); filter: drop-shadow(0 6px 14px rgba(226, 192, 141, .45)); }
.steam:hover .s-bg { stroke: var(--amber); }
.steam span { display: none; }

/* Верхняя панель при прокрутке: почти непрозрачная, чтобы заголовки страницы под ней не просвечивали */
.bar { background: rgba(11, 8, 5, .96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid rgba(226, 192, 141, .14); }
