/* AivanCrate — Созвездия AivanLevels в стиле V2 */
.cst-page.cstx {
    --cst-ink: var(--av2-ink); --cst-muted: var(--av2-sky); --cst-gold: var(--av2-gold); --cst-cyan: var(--av2-sky);
    background:
        radial-gradient(900px 320px at 10% -10%, rgba(59, 73, 255, .35), transparent 60%),
        radial-gradient(760px 300px at 95% 0%, rgba(29, 39, 201, .3), transparent 55%),
        linear-gradient(180deg, var(--av2-bg) 0%, var(--av2-bg-2) 60%, var(--av2-bg) 100%);
}
body:has(.cstx), .ac-site-main:has(.cstx) { background: var(--av2-bg); }
.cstx .cst-top { padding-bottom: .4rem; }
.cstx .cst-top .av2-kicker { margin-bottom: .1rem; }
.cstx .cst-top h1 {
    font-family: "Oxygene1", "PusabGD", system-ui, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .02em;
    font-size: clamp(1.4rem, 3.2vw, 2.2rem);
    background: linear-gradient(180deg, #ffffff 0%, #c9d1ff 45%, #6d7dff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 3px 0 #000) drop-shadow(0 0 14px rgba(59, 73, 255, .5));
}
.cstx .cst-top p { color: var(--av2-muted); }
.cstx .cst-orb { background: var(--av2-card); border: 1px solid var(--av2-line); box-shadow: 0 0 0 1px #000; border-radius: .9rem; }
.cstx .cst-orb b { font-family: "Oxygene1", "PusabGD", sans-serif; font-weight: 400; color: #fff; text-shadow: 0 2px 0 #000; }
.cstx .cst-orb span { color: var(--av2-sky); }
.cstx .av2-tabs { max-width: 76rem; margin: .5rem auto .4rem; }
.cstx .cst-hud input, .cstx .cst-chip { border-radius: .7rem; border-color: rgba(143, 160, 255, .3); background: rgba(2, 3, 20, .85); color: var(--av2-ink); }
.cstx .cst-chip:hover { background: rgba(59, 73, 255, .35); }
.cstx .cst-chip.is-on { background: linear-gradient(180deg, var(--av2-blue-2), var(--av2-blue)); color: #fff; box-shadow: 0 0 0 2px #000; }
.cstx .cst-chip.is-gold { background: linear-gradient(180deg, #ffe680, #d4a40a); color: #1a1300; box-shadow: 0 0 0 2px #000; }
.cstx .cst-hud input:focus { border-color: var(--av2-sky); box-shadow: 0 0 0 3px rgba(59, 73, 255, .35); }

/* Небо */
.cstx .cst-viewport {
    background:
        radial-gradient(circle at 18% 22%, rgba(201, 209, 255, .35) 0 1.4px, transparent 2px),
        radial-gradient(circle at 72% 18%, rgba(255, 216, 74, .3) 0 1.2px, transparent 2px),
        radial-gradient(circle at 84% 68%, rgba(143, 160, 255, .3) 0 1.6px, transparent 2.4px),
        radial-gradient(circle at 32% 78%, rgba(255, 255, 255, .25) 0 1.3px, transparent 2px),
        radial-gradient(ellipse at center, #0a0f4a 0%, #03041a 72%);
    border-top: 1px solid var(--av2-line);
}
.cstx .cst-edges stop:nth-child(1) { stop-color: #3b49ff; }
.cstx .cst-edges stop:nth-child(2) { stop-color: #8fa0ff; }
.cstx .cst-edges stop:nth-child(3) { stop-color: #ffffff; }
.cstx .cst-edges marker path { fill: #c9d1ff; stroke: #000; }
.cstx .cst-edges line { stroke: #8fa0ff; filter: drop-shadow(0 0 5px rgba(59, 73, 255, .9)); }
.cstx .cst-viewport.is-hot .cst-edges line.is-hot { filter: drop-shadow(0 0 9px rgba(255, 216, 74, .9)); }

/* Звёзды-уровни */
.cstx .constellation-node-image-wrap {
    border-radius: 14px; border: 0;
    box-shadow: 0 0 0 3px #000, 0 0 0 5px rgba(143, 160, 255, .55), 0 0 26px rgba(59, 73, 255, .55);
}
.cstx .constellation-node:hover .constellation-node-image-wrap { box-shadow: 0 0 0 3px #000, 0 0 0 6px var(--av2-sky), 0 14px 30px rgba(0, 0, 0, .6), 0 0 34px rgba(59, 73, 255, .8); }
.cstx .constellation-node-root .constellation-node-image-wrap { box-shadow: 0 0 0 3px #000, 0 0 0 6px var(--av2-gold), 0 0 30px rgba(255, 216, 74, .6); animation: none; }
.cstx .constellation-node-name {
    font-family: "Oxygene1", "PusabGD", system-ui, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; font-size: .95rem;
    text-shadow: 0 2px 0 #000, 0 0 12px rgba(59, 73, 255, .8);
}
.cstx .constellation-node-name:hover { color: var(--av2-gold) !important; }
.cstx .constellation-node.is-picked .constellation-node-image-wrap { animation: cstxPick 1.4s ease 2; }
@keyframes cstxPick { 50% { box-shadow: 0 0 0 3px #000, 0 0 0 9px var(--av2-gold), 0 0 60px rgba(255, 216, 74, .9); } }
.cstx .constellation-hover-tooltip { background: rgba(5, 8, 36, .96); border: 1px solid var(--av2-line); box-shadow: 0 0 0 1px #000, 0 18px 40px rgba(0, 0, 0, .6); color: var(--av2-ink); border-radius: .8rem; }
.cstx .constellation-hover-title { font-family: "Oxygene1", "PusabGD", sans-serif; text-transform: uppercase; color: #fff; }
.cstx .constellation-hover-section-title { color: var(--av2-sky); }
.cstx .cst-dock { background: rgba(5, 8, 36, .94); border-right: 1px solid var(--av2-line); }
.cstx .cst-dock h2 { font-family: "Oxygene1", "PusabGD", sans-serif; font-weight: 400; text-transform: uppercase; }

/* Мини-карта */
.cstx-minimap {
    position: absolute; right: .8rem; bottom: .8rem; z-index: 5; width: 170px; height: 170px; border-radius: .8rem; overflow: hidden;
    background: rgba(3, 4, 26, .85); border: 1px solid var(--av2-line); box-shadow: 0 0 0 1px #000, 0 10px 30px rgba(0, 0, 0, .55); cursor: pointer;
}
.cstx-minimap canvas { width: 100%; height: 100%; display: block; }
.cstx-minimap-view { position: absolute; border: 2px solid var(--av2-gold); border-radius: 3px; pointer-events: none; box-shadow: 0 0 10px rgba(255, 216, 74, .5); }
@media (max-width: 767.98px) { .cstx-minimap { width: 110px; height: 110px; } }
