/* ================= «Сообщество → Геймплей»: путеводитель по вечной зиме =================
   Страница читается как документ, поэтому каркас - боковое оглавление с прогрессом
   и разделы-плиты одного ритма. Цвет раздела задаёт data-tone (--tc): лёд для холода,
   жар для генератора, медь для трасс. Эффекты служат смыслу: купол в шапке дышит,
   жар бежит по трубе, термометр симулятора показывает именно ту формулу, что в игре. */
.gx { --gx-ice: #6fb3ff; --gx-fire: #ff8a5b; --gx-warm: #ffb454; --gx-copper: #e6a94f;
    --gx-amber: #f59e0b; --gx-brand: #a78bfa; --gx-danger: #ef6b67; --gx-aurora: #5eead4; --gx-gold: #f0c483;
    --gx-r: 18px; --gx-gap: 16px;
    display: flex; flex-direction: column; gap: 22px; margin-bottom: 32px; }
.gx [data-tone="ice"] { --tc: var(--gx-ice); }
.gx [data-tone="fire"] { --tc: var(--gx-fire); }
.gx [data-tone="warm"] { --tc: var(--gx-warm); }
.gx [data-tone="copper"] { --tc: var(--gx-copper); }
.gx [data-tone="amber"] { --tc: var(--gx-amber); }
.gx [data-tone="brand"] { --tc: var(--gx-brand); }
.gx [data-tone="danger"] { --tc: var(--gx-danger); }
.gx [data-tone="aurora"] { --tc: var(--gx-aurora); }
.gx [data-tone="gold"] { --tc: var(--gx-gold); }
.gx code { padding: 1px 6px; border-radius: 6px; font-size: .92em; color: var(--text);
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); }
.gx a:not([class]) { color: var(--brand-soft); text-decoration: underline; text-decoration-color: rgba(167, 139, 250, .4);
    text-underline-offset: 2px; }
.gx a:not([class]):hover { text-decoration-color: currentColor; }

/* ------------------------------------------------------------------ кнопки */
.gx-btn { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 18px; border-radius: 13px;
    font-size: 14px; font-weight: 700; text-decoration: none; border: 1px solid transparent; white-space: nowrap;
    transition: transform .18s ease, filter .18s ease, background .18s ease, border-color .18s ease; }
.gx-btn:hover { transform: translateY(-1px); }
.gx-btn:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 2px; }
.gx-btn--warm { color: #2a1000; background: linear-gradient(135deg, #ffd08a, var(--gx-fire));
    box-shadow: 0 10px 28px -12px rgba(255, 138, 91, .9), inset 0 1px 0 rgba(255, 255, 255, .45); }
.gx-btn--warm:hover { color: #2a1000; filter: brightness(1.05); }
.gx-btn--ghost { color: var(--text); background: rgba(255, 255, 255, .04); border-color: var(--line); }
.gx-btn--ghost:hover { color: var(--text); border-color: var(--gx-ice); background: rgba(111, 179, 255, .1); }

/* ------------------------------------------------------------------- шапка */
.gx-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 28px;
    align-items: center; padding: 32px; border-radius: 24px; overflow: hidden; isolation: isolate;
    border: 1px solid var(--line);
    background: radial-gradient(70% 90% at 82% 40%, rgba(255, 138, 91, .16), transparent 60%),
                radial-gradient(60% 80% at 0% 0%, rgba(111, 179, 255, .14), transparent 60%),
                linear-gradient(180deg, rgba(21, 18, 42, .96), rgba(12, 10, 26, .98)); }
.gx-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
    background-image: radial-gradient(1.5px 1.5px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 32% 68%, #cfe3ff, transparent),
                      radial-gradient(1.2px 1.2px at 58% 14%, #fff, transparent), radial-gradient(1px 1px at 76% 82%, #cfe3ff, transparent),
                      radial-gradient(1.4px 1.4px at 90% 30%, #fff, transparent), radial-gradient(1px 1px at 44% 40%, #fff, transparent); }
.gx-eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px;
    font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: #cfe3ff; background: rgba(111, 179, 255, .12); border: 1px solid rgba(111, 179, 255, .32); }
.gx-hero__title { margin: 14px 0 12px; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -.025em; }
.gx-hero__title span { display: block; background: linear-gradient(100deg, #cfe3ff 0%, #fff 40%, #ffd08a 75%, var(--gx-fire));
    -webkit-background-clip: text; background-clip: text; color: transparent; }
.gx-hero__lead { margin: 0; max-width: 60ch; font-size: 15.5px; line-height: 1.65; color: #c9c4dc; }
.gx-hero__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 22px 0; }
.gx-stat { padding: 12px; border-radius: 14px; background: rgba(12, 10, 26, .6); border: 1px solid rgba(255, 255, 255, .08); }
.gx-stat dt { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gx-stat dd { margin: 4px 0 0; font-size: 26px; font-weight: 800; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.gx-stat dd small { font-size: 14px; font-weight: 700; color: var(--muted); }
.gx-stat--ice dd { color: #a9d0ff; }
.gx-stat--warm dd { color: #ffc98a; }
.gx-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* --- 3D-сцена: площадка, купол, башня генератора, трубы ---
   Чистый CSS 3D: сцена наклонена, купол - сфера из радиального градиента
   над эллипсом зоны, башня - пять граней куба. Наклон за курсором задаёт JS. */
.gx-scene { position: relative; height: 380px; perspective: 1100px; perspective-origin: 50% 30%; }
.gx-scene__stage { --tx: 0deg; --ty: 0deg; position: absolute; inset: 0; transform-style: preserve-3d;
    transform: rotateX(calc(58deg + var(--tx))) rotateZ(calc(-24deg + var(--ty)));
    transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes gx-spin { to { transform: rotateZ(360deg); } }
.gx-scene__ground { position: absolute; left: 50%; top: 50%; width: 330px; height: 330px; margin: -165px 0 0 -165px;
    border-radius: 50%; transform-style: preserve-3d;
    background: radial-gradient(circle, #e9f2ff 0%, #b9cbe6 42%, #6f86ad 70%, rgba(40, 52, 90, 0) 72%);
    box-shadow: 0 0 80px rgba(111, 179, 255, .25); animation: gx-spin 40s linear infinite; }
.gx-scene__zone { position: absolute; inset: 22%; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 196, 120, .95), rgba(255, 138, 91, .55) 45%, rgba(255, 138, 91, 0) 72%);
    animation: gx-breathe 4.2s ease-in-out infinite; }
.gx-scene__ring { position: absolute; inset: 20%; border-radius: 50%; border: 2px solid rgba(255, 196, 120, .7);
    animation: gx-ripple 4.2s ease-out infinite; }
.gx-scene__ring--2 { animation-delay: 2.1s; }
@keyframes gx-breathe { 50% { transform: scale(1.06); opacity: .85; } }
@keyframes gx-ripple { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.gx-scene__pipe { position: absolute; left: 50%; top: calc(50% - 5px); width: 150px; height: 10px; border-radius: 5px;
    background: linear-gradient(90deg, #ffcf86, #d4893a 60%, #6e8f8a); transform-origin: 0 50%; transform: rotate(-18deg);
    box-shadow: 0 0 12px rgba(255, 180, 84, .6); }
.gx-scene__pipe--b { width: 120px; transform: rotate(152deg); }
.gx-scene__dome { position: absolute; left: 50%; top: 50%; width: 190px; height: 190px; margin: -95px 0 0 -95px;
    border-radius: 50%; transform: rotateX(-90deg) translateY(-52px); transform-origin: 50% 50%;
    background: radial-gradient(circle at 50% 100%, rgba(255, 210, 150, .38), rgba(255, 138, 91, .12) 55%, transparent 71%);
    -webkit-mask: linear-gradient(#000 0 50%, transparent 50%); mask: linear-gradient(#000 0 50%, transparent 50%);
    filter: drop-shadow(0 0 18px rgba(255, 170, 100, .55)); }
.gx-tower { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px;
    transform-style: preserve-3d; transform: translateZ(0); }
.gx-tower__f { position: absolute; width: 34px; background: linear-gradient(180deg, #5d6f8f, #2d3552); border: 1px solid rgba(255, 255, 255, .15); }
.gx-tower__f--front, .gx-tower__f--back, .gx-tower__f--left, .gx-tower__f--right { height: 64px; bottom: 50%; transform-origin: 50% 100%; }
.gx-tower__f--front { transform: translateY(17px) rotateX(-90deg); background: linear-gradient(0deg, #3b4766, #8aa0c8); }
.gx-tower__f--back { transform: translateY(-17px) rotateX(-90deg); }
.gx-tower__f--left { transform: translateX(-17px) rotateZ(90deg) rotateX(-90deg); background: linear-gradient(0deg, #2d3552, #6b7fa6); }
.gx-tower__f--right { transform: translateX(17px) rotateZ(-90deg) rotateX(-90deg); }
.gx-tower__f--top { height: 34px; transform: translateZ(64px); background: radial-gradient(circle, #fff3d6, #ffb454 45%, #c2541f);
    box-shadow: 0 0 30px #ff9a4a; }
.gx-tower__core { position: absolute; inset: 6px; border-radius: 50%; transform: translateZ(70px);
    background: radial-gradient(circle, #fff, rgba(255, 196, 120, 0) 70%); animation: gx-flicker 1.8s ease-in-out infinite; }
@keyframes gx-flicker { 50% { opacity: .55; transform: translateZ(74px) scale(1.15); } }
.gx-scene__beam { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%;
    transform: translateZ(66px); box-shadow: 0 0 40px 18px rgba(255, 170, 100, .45); }
.gx-scene__ember { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: #ffd08a;
    box-shadow: 0 0 8px #ff9a4a; animation: gx-ember 3.4s ease-out infinite; }
.gx-scene__ember--2 { left: 46%; animation-delay: 1.1s; }
.gx-scene__ember--3 { left: 54%; animation-delay: 2.2s; }
@keyframes gx-ember { from { transform: translateZ(66px); opacity: 1; } to { transform: translateZ(150px) translateX(10px); opacity: 0; } }
.gx-scene__tag { position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 10px;
    font-size: 12.5px; font-weight: 700; white-space: nowrap; backdrop-filter: blur(6px);
    background: rgba(12, 10, 26, .72); border: 1px solid rgba(255, 255, 255, .12); animation: gx-float 5s ease-in-out infinite; }
.gx-scene__tag--warm { left: 50%; top: 12%; transform: translateX(-50%); color: #ffd08a; border-color: rgba(255, 180, 84, .45); }
.gx-scene__tag--cold { right: 2%; bottom: 14%; color: #a9d0ff; border-color: rgba(111, 179, 255, .45); animation-delay: 1.6s; }
.gx-scene__tag--pipe { left: 2%; bottom: 26%; color: #f2c37c; border-color: rgba(230, 169, 79, .45); animation-delay: 3s; }
@keyframes gx-float { 50% { translate: 0 -6px; } }

/* ------------------------------------------------------------ первый вечер */
.gx-start { padding: 22px; border-radius: var(--gx-r); border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 180, 84, .06), transparent 55%), rgba(21, 18, 42, .82); scroll-margin-top: 90px; }
.gx-start__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.gx-start__title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 19px; }
.gx-start__title i { color: var(--gx-warm); }
.gx-start__head p { margin: 0; font-size: 13.5px; color: var(--muted); }
.gx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px;
    counter-reset: none; }
.gx-step { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 14px 14px; border-radius: 14px;
    background: rgba(12, 10, 26, .55); border: 1px solid rgba(255, 255, 255, .07);
    transition: transform .2s ease, border-color .2s ease; }
.gx-step:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.gx-step:not(:last-child)::after { content: ''; position: absolute; top: 33px; right: -10px; width: 10px; height: 2px;
    background: linear-gradient(90deg, var(--c), transparent); }
.gx-step__no { position: absolute; top: 10px; right: 12px; font-size: 26px; font-weight: 800; line-height: 1;
    color: color-mix(in srgb, var(--c) 22%, transparent); }
.gx-step > i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; font-size: 16px;
    color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.gx-step b { font-size: 14.5px; }
.gx-step span:last-child { font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ------------------------------------------------------- каркас и оглавление */
.gx-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 22px; align-items: start; }
.gx-aside { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 12px; }
.gx .gp-toc { position: static; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 2px; margin: 0; padding: 14px 10px;
    border-radius: 16px; border: 1px solid var(--line); background: rgba(21, 18, 42, .88); box-shadow: none; backdrop-filter: blur(8px); }
.gx-toc__head { display: flex; justify-content: space-between; align-items: center; margin: 0 6px 6px; font-size: 11px; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gx-toc__pct { color: var(--gx-ice); font-variant-numeric: tabular-nums; }
.gx-toc__bar { display: block; height: 3px; margin: 0 6px 10px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.gx-toc__bar i { display: block; height: 100%; width: calc(var(--p, 0) * 1%); border-radius: inherit;
    background: linear-gradient(90deg, var(--gx-ice), var(--gx-brand), var(--gx-fire)); transition: width .2s linear; }
.gx .gp-toc a { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border: 0; border-radius: 10px; background: none;
    color: var(--muted); font-size: 13.5px; font-weight: 600; line-height: 1.25; text-decoration: none;
    transition: color .15s ease, background .15s ease; box-shadow: none; }
.gx .gp-toc a.is-sub { padding-left: 22px; font-size: 12.5px; }
.gx .gp-toc a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.gx .gp-toc a.is-active { color: #fff; background: linear-gradient(90deg, rgba(139, 92, 246, .3), rgba(139, 92, 246, .06)); box-shadow: inset 2px 0 0 var(--gx-brand); }
.gx .gp-toc .gp-toc__no { display: grid; place-items: center; min-width: 26px; height: 20px; padding: 0 5px; flex: none; border-radius: 6px;
    font-size: 10.5px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--muted);
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .06); }
.gx .gp-toc a.is-done .gp-toc__no { color: #9be07f; background: rgba(99, 176, 74, .12); border-color: rgba(99, 176, 74, .28); }
.gx .gp-toc a.is-active .gp-toc__no { color: #fff; background: var(--brand); border-color: transparent; }
.gx .gp-toc .gp-toc__ico { display: none; }
.gx-level { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; text-decoration: none; color: var(--text);
    border: 1px solid rgba(94, 234, 212, .25); background: linear-gradient(135deg, rgba(94, 234, 212, .1), rgba(21, 18, 42, .88));
    transition: border-color .2s ease, transform .2s ease; }
.gx-level:hover { color: var(--text); border-color: var(--gx-aurora); transform: translateY(-1px); }
.gx-level__ring { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
    background: conic-gradient(var(--gx-aurora) calc(var(--p, 0) * 1%), rgba(255, 255, 255, .08) 0); }
.gx-level__ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #15122a; }
.gx-level__ring b { position: relative; font-size: 16px; }
.gx-level__txt { display: flex; flex-direction: column; line-height: 1.25; }
.gx-level__txt small { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.gx-level__txt b { font-size: 13.5px; }
.gx-level__txt em { font-style: normal; font-size: 12px; color: var(--muted); }
.gx-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

/* ----------------------------------------------------------- раздел-плита */
.gx-sec { --tc: var(--gx-brand); position: relative; padding: 26px; border-radius: 22px; border: 1px solid var(--line);
    background: radial-gradient(90% 60% at 100% 0%, color-mix(in srgb, var(--tc) 9%, transparent), transparent 60%),
                rgba(21, 18, 42, .86);
    display: flex; flex-direction: column; gap: 16px; }
.gx-sec::before { content: ''; position: absolute; left: 26px; right: 26px; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--tc) 70%, transparent), transparent); }
.gx-sec.is-pending { opacity: 0; transform: translateY(14px); }
.gx-sec.is-in, .gx-start.is-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.gx-start.is-pending { opacity: 0; transform: translateY(14px); }
.gx-sec__head { display: flex; flex-direction: column; gap: 10px; }
.gx .gp-h3 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: clamp(20px, 2.2vw, 25px); line-height: 1.2;
    letter-spacing: -.01em; scroll-margin-top: 96px; }
.gx .gp-h3 > i { display: none; }
.gx .gp-h3 .gp-num { display: grid; place-items: center; width: 40px; height: 40px; margin: 0; flex: none; border-radius: 12px;
    font-size: 17px; font-weight: 800; color: #fff;
    background: linear-gradient(145deg, color-mix(in srgb, var(--tc) 90%, #fff 10%), color-mix(in srgb, var(--tc) 55%, #15122a));
    box-shadow: 0 10px 24px -10px var(--tc), inset 0 1px 0 rgba(255, 255, 255, .3); }
.gx .gp-h4 { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding-top: 18px; border-top: 1px dashed var(--line);
    font-size: 18px; line-height: 1.3; scroll-margin-top: 96px; }
.gx .gp-h4 i { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; font-size: 13px;
    color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 40%, transparent); }
.gx-h5 { display: flex; align-items: center; gap: 9px; margin: 8px 0 0; font-size: 15px; }
.gx-h5 i { color: var(--tc); }
.gx-lead { margin: 0; max-width: 78ch; font-size: 15px; line-height: 1.7; color: #c9c4dc; }
.gx-lead b { color: var(--text); }
.gx-note { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.gx-note b { color: var(--text); }
.gx-note--center { text-align: center; }
.gx-badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; vertical-align: middle;
    font-size: 11px; font-weight: 800; color: var(--gx-aurora); background: rgba(94, 234, 212, .1); border: 1px solid rgba(94, 234, 212, .3); }
.gx-badge--ok { color: #9be07f; background: rgba(99, 176, 74, .12); border-color: rgba(99, 176, 74, .35); }

/* --- общие блоки: карточки, сетки, подсказки --- */
.gx-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gx-gap); }
.gx-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gx-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gx-card { --tc: var(--gx-brand); padding: 18px; border-radius: 16px; background: rgba(12, 10, 26, .5);
    border: 1px solid color-mix(in srgb, var(--tc) 22%, var(--line)); display: flex; flex-direction: column; gap: 10px; }
.gx-card h4 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 16px; }
.gx-card h4 i { color: var(--tc); }
.gx-card__sub { margin-top: 6px !important; font-size: 14.5px !important; }
.gx-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.gx-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.gx-list li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.gx-list li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 2px; rotate: 45deg;
    background: var(--tc); box-shadow: 0 0 8px var(--tc); }
.gx-list b { color: var(--text); }
.gx-mini { --tc: inherit; padding: 16px; border-radius: 14px; background: rgba(12, 10, 26, .5); border: 1px solid rgba(255, 255, 255, .07);
    display: flex; flex-direction: column; gap: 6px; transition: border-color .2s ease, transform .2s ease; }
.gx-mini:hover { border-color: color-mix(in srgb, var(--tc, var(--gx-brand)) 45%, transparent); transform: translateY(-2px); }
.gx-mini > i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-size: 14px; color: var(--tc, var(--gx-brand));
    background: color-mix(in srgb, var(--tc, var(--gx-brand)) 14%, transparent); }
.gx-mini b { font-size: 14.5px; }
.gx-mini p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.gx-tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gx-tips li { position: relative; padding: 11px 14px 11px 44px; border-radius: 12px; font-size: 14px; line-height: 1.55; color: #c9c4dc;
    background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .06); }
.gx-tips li > i:first-child { position: absolute; left: 15px; top: 13px; width: 18px; text-align: center; color: var(--tc, var(--gx-brand)); }
.gx-tips b { color: var(--text); }
.gx-alert { --tc: var(--gx-danger); display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 14%, transparent), rgba(12, 10, 26, .4));
    border: 1px solid color-mix(in srgb, var(--tc) 40%, transparent); }
.gx-alert > i { flex: none; margin-top: 2px; font-size: 20px; color: var(--tc); }
.gx-alert p { margin: 0; font-size: 14px; line-height: 1.6; color: #e3dff0; }
.gx-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.gx-kv div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); }
.gx-kv dt { font-size: 11.5px; color: var(--muted); }
.gx-kv dd { margin: 3px 0 0; font-size: 17px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.gx-kv--sm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gx-kv--sm dd { font-size: 15px; }
.gx-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0; }
.gx-facts div { padding: 11px 12px; border-radius: 12px; text-align: center;
    background: color-mix(in srgb, var(--tc) 7%, rgba(12, 10, 26, .5)); border: 1px solid color-mix(in srgb, var(--tc) 20%, transparent); }
.gx-facts dt { font-size: 11.5px; color: var(--muted); }
.gx-facts dd { margin: 4px 0 0; font-size: 17px; font-weight: 800; color: var(--tc); font-variant-numeric: tabular-nums; }
.gx-cost { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gx-cost li { padding: 4px 10px; border-radius: 999px; font-size: 12.5px; color: var(--muted);
    background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); }
.gx-cost b { color: var(--text); }
.gx-cost--sm li { padding: 2px 8px; font-size: 11.5px; }
.gx .gx-acc { margin: 0; border-radius: 14px; background: rgba(12, 10, 26, .45); }
.gx .gx-acc > summary { padding: 14px 16px; font-size: 14.5px; }
.gx .gx-acc > summary > i:first-child { color: var(--tc); }
.gx .gx-acc[open] { border-color: color-mix(in srgb, var(--tc) 35%, var(--line)); }
.gx-table td b { color: var(--text); }

/* --------------------------------------------------- 1 · кольцо круговорота */
.gx .cyc { margin: 4px 0 0; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); }
.gx .cyc__orbit { fill: none; stroke: rgba(255, 255, 255, .06); stroke-width: .5; stroke-dasharray: 1 2; }
.gx .cyc__panel { background: rgba(12, 10, 26, .55); border-radius: 18px; }

/* ------------------------------------------------------------ 2 · симулятор */
.gx-sim { --tc: var(--gx-ice); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; padding: 18px;
    border-radius: 18px; background: linear-gradient(135deg, rgba(111, 179, 255, .08), rgba(12, 10, 26, .5));
    border: 1px solid rgba(111, 179, 255, .22); }
.gx-sim__controls { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.gx-seg { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gx-seg legend { width: 100%; margin-bottom: 6px; padding: 0; font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.gx-seg label { position: relative; cursor: pointer; }
.gx-seg input { position: absolute; opacity: 0; pointer-events: none; }
.gx-seg span { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border-radius: 10px;
    font-size: 13px; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
    transition: color .15s ease, background .15s ease, border-color .15s ease; }
.gx-seg label:hover span { color: var(--text); border-color: rgba(111, 179, 255, .4); }
.gx-seg input:checked + span { color: #fff; background: rgba(111, 179, 255, .2); border-color: var(--gx-ice); box-shadow: inset 0 0 0 1px rgba(111, 179, 255, .35); }
.gx-seg input:focus-visible + span { outline: 2px solid var(--gx-ice); outline-offset: 2px; }
.gx-sim__out { --tc2: var(--tc); display: flex; gap: 18px; align-items: center; padding: 18px; border-radius: 16px;
    background: rgba(12, 10, 26, .65); border: 1px solid rgba(255, 255, 255, .07); }
.gx-thermo { position: relative; flex: none; width: 34px; height: 210px; display: flex; flex-direction: column; align-items: center; }
.gx-thermo__tube { position: relative; width: 16px; flex: 1; border-radius: 10px 10px 0 0; overflow: hidden;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-bottom: 0; }
.gx-thermo__tube i { position: absolute; left: 2px; right: 2px; bottom: 0; height: calc(var(--h, 20) * 1%); border-radius: 6px 6px 0 0;
    background: linear-gradient(0deg, var(--tc, #6fb3ff), color-mix(in srgb, var(--tc, #6fb3ff) 50%, #fff));
    transition: height .5s cubic-bezier(.2, .8, .2, 1), background .4s ease; }
.gx-thermo__bulb { width: 34px; height: 34px; margin-top: -4px; border-radius: 50%; background: var(--tc, #6fb3ff);
    box-shadow: 0 0 24px var(--tc, #6fb3ff); transition: background .4s ease, box-shadow .4s ease; }
.gx-sim__read { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gx-sim__cap { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gx-sim__temp { font-size: clamp(36px, 4vw, 50px); line-height: 1; font-weight: 800; color: var(--tc, #fff); font-variant-numeric: tabular-nums;
    text-shadow: 0 0 26px color-mix(in srgb, var(--tc, #6fb3ff) 45%, transparent); transition: color .3s ease; }
.gx-sim__tier { align-self: flex-start; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: var(--tc);
    background: color-mix(in srgb, var(--tc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 40%, transparent); }
.gx-sim__facts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.gx-sim__facts li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: #c9c4dc; }
.gx-sim__facts i { width: 16px; text-align: center; color: var(--muted); }
.gx-sim.is-danger .gx-sim__facts li:nth-child(2) i { color: var(--gx-danger); }
.gx-sim.is-safe .gx-sim__facts li:nth-child(3) i { color: #9be07f; }
.gx-sim.is-danger .gx-sim__out { border-color: rgba(239, 107, 103, .35); animation: gx-shiver 2.4s ease-in-out infinite; }
@keyframes gx-shiver { 50% { box-shadow: 0 0 0 4px rgba(239, 107, 103, .08); } }

.gx-tiers { display: flex; gap: 4px; }
.gx-tier { flex: var(--w) 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 12px 10px 10px; border-radius: 12px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--c) 18%, transparent), rgba(12, 10, 26, .4));
    border-top: 3px solid var(--c); }
.gx-tier b { font-size: 13px; color: var(--c); font-variant-numeric: tabular-nums; }
.gx-tier span { font-size: 13.5px; font-weight: 700; }
.gx-tier em { font-style: normal; font-size: 12px; line-height: 1.4; color: var(--muted); }

/* --------------------------------------------------- 3 · уровни генератора */
.gx-gen { display: flex; flex-direction: column; gap: 12px; }
.gx-gen__tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.gx-gen__tab { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 12px; cursor: pointer;
    font: inherit; text-align: left; color: var(--muted); background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08);
    transition: color .2s ease, border-color .2s ease, background .2s ease; }
.gx-gen__tab b { font-size: 20px; line-height: 1; color: var(--text); }
.gx-gen__tab span { font-size: 12.5px; font-weight: 600; }
.gx-gen__tab:hover { color: var(--text); border-color: rgba(255, 138, 91, .4); }
.gx-gen__tab[aria-selected="true"] { color: #ffd0b0; border-color: var(--gx-fire);
    background: linear-gradient(180deg, rgba(255, 138, 91, .2), rgba(255, 138, 91, .04)); }
.gx-gen__tab[aria-selected="true"] b { color: #fff; }
.gx-gen__tab:focus-visible { outline: 2px solid var(--gx-fire); outline-offset: 2px; }
.gx-gen__body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px; border-radius: 16px;
    background: rgba(12, 10, 26, .5); border: 1px solid rgba(255, 138, 91, .2); }
.gx-gen__panel h4 { margin: 0 0 10px; font-size: 17px; }
.gx-gen__panel[hidden] { display: none; }
.gx-gen__note { margin: 10px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.gx-dome { --r: .3; position: relative; height: 200px; perspective: 600px; }
.gx-dome__floor { position: absolute; left: 50%; bottom: 30px; width: 220px; height: 220px; margin-left: -110px; border-radius: 50%;
    transform: rotateX(72deg) scale(calc(.35 + var(--r) * .65)); transform-origin: 50% 50%;
    background: radial-gradient(circle, rgba(255, 196, 120, .55), rgba(255, 138, 91, .2) 50%, rgba(111, 179, 255, .08) 70%, transparent 71%);
    border: 1px dashed rgba(255, 180, 84, .45); transition: transform .6s cubic-bezier(.2, .8, .2, 1); top: auto; margin-bottom: -110px; }
.gx-dome__shell { position: absolute; left: 50%; bottom: 30px; width: 200px; height: 100px; border-radius: 200px 200px 0 0;
    transform: translateX(-50%) scale(calc(.35 + var(--r) * .65)); transform-origin: 50% 100%;
    background: radial-gradient(ellipse at 50% 100%, rgba(255, 220, 170, .32), rgba(255, 138, 91, .12) 60%, transparent 72%);
    border: 1px solid rgba(255, 196, 120, .45); border-bottom: 0; box-shadow: inset 0 10px 30px rgba(255, 196, 120, .12), 0 -6px 30px rgba(255, 138, 91, .25);
    transition: transform .6s cubic-bezier(.2, .8, .2, 1); animation: gx-dome 4s ease-in-out infinite; }
@keyframes gx-dome { 50% { box-shadow: inset 0 10px 30px rgba(255, 196, 120, .2), 0 -10px 40px rgba(255, 138, 91, .4); } }
.gx-dome__core { position: absolute; left: 50%; bottom: 30px; width: 16px; height: 34px; margin-left: -8px; border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, #ffe6b0, #ff8a5b 50%, #4a3a52); box-shadow: 0 0 22px #ff9a4a; }
.gx-dome__label { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); padding: 3px 10px; border-radius: 8px;
    font-size: 12.5px; font-weight: 800; color: #ffd0b0; background: rgba(255, 138, 91, .14); border: 1px solid rgba(255, 138, 91, .35); }
.gx-scales { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gx-gap); }
.gx-scale { --tc: var(--gx-fire); padding: 18px; border-radius: 16px; background: rgba(12, 10, 26, .5);
    border: 1px solid color-mix(in srgb, var(--tc) 30%, transparent); display: flex; flex-direction: column; gap: 12px; }
.gx-scale header { display: flex; align-items: center; gap: 10px; }
.gx-scale header i { color: var(--tc); font-size: 18px; }
.gx-scale h5 { margin: 0; font-size: 15.5px; }
.gx-scale__bar { position: relative; display: block; height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); }
.gx-scale__bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--w) * 1%); border-radius: inherit;
    background: linear-gradient(90deg, #ffd08a, var(--gx-fire), #d9534f); animation: gx-heat 5s ease-in-out infinite; }
.gx-scale__bar--ice i { background: linear-gradient(90deg, #6fb3ff, #ffd08a); animation: gx-cover 6s ease-in-out infinite; }
@keyframes gx-heat { 0%, 100% { width: 30%; } 70% { width: 96%; } }
@keyframes gx-cover { 0%, 100% { width: 100%; } 55% { width: 18%; } }
.gx-scale__bar em { position: absolute; top: 16px; left: calc(var(--at) * 1%); transform: translateX(-50%); font-style: normal; font-size: 11px; color: var(--muted); }
.gx-scale ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.gx-scale li { padding-left: 16px; position: relative; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.gx-scale li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--tc); }
.gx-scale li b { color: var(--text); }
.gx-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gx-option { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, .03);
    border-top: 3px solid var(--tc); }
.gx-option b { font-size: 14.5px; }
.gx-option span { font-size: 13px; line-height: 1.55; color: var(--muted); }
.gx-option em { margin-top: auto; font-style: normal; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--tc); }
.gx-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; display: grid; gap: 10px; border-left: 2px solid rgba(255, 138, 91, .3); }
.gx-timeline li { position: relative; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; font-size: 13.5px; color: var(--muted); }
.gx-timeline li::before { content: ''; position: absolute; left: -24px; top: 5px; width: 10px; height: 10px; border-radius: 50%;
    background: var(--gx-fire); box-shadow: 0 0 0 3px rgba(255, 138, 91, .2); }
.gx-timeline b { color: var(--text); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ 4 · механизмы */
.gx-mech { display: flex; flex-direction: column; gap: 12px; }
.gx-mech__tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.gx-mech__tab { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 15px; border-radius: 12px; cursor: pointer;
    font: inherit; font-size: 13.5px; font-weight: 700; color: var(--muted); background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08); transition: color .2s ease, border-color .2s ease, background .2s ease; }
.gx-mech__tab i { color: var(--c); }
.gx-mech__tab:hover { color: var(--text); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.gx-mech__tab[aria-selected="true"] { color: #fff; border-color: var(--c);
    background: linear-gradient(180deg, color-mix(in srgb, var(--c) 22%, transparent), color-mix(in srgb, var(--c) 5%, transparent)); }
.gx-mech__tab:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.gx-mech__panel { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 18px; animation: gx-in .32s ease;
    background: radial-gradient(80% 60% at 100% 0%, color-mix(in srgb, var(--c) 10%, transparent), transparent 60%), rgba(12, 10, 26, .5);
    border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.gx-mech__panel[hidden] { display: none; }
@keyframes gx-in { from { opacity: 0; transform: translateY(6px); } }
.gx-mech__head { display: flex; gap: 14px; align-items: flex-start; }
.gx-mech__icon { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; font-size: 22px; color: #fff;
    background: linear-gradient(145deg, var(--c), color-mix(in srgb, var(--c) 40%, #15122a));
    box-shadow: 0 10px 24px -10px var(--c), inset 0 1px 0 rgba(255, 255, 255, .3); }
.gx-mech__head h4 { margin: 0 0 5px; font-size: 18px; }
.gx-mech__head p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 72ch; }
.gx-mech__stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.gx-mstat { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; min-width: 0;
    background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); }
.gx-mstat span { font-size: 11.5px; color: var(--muted); }
.gx-mstat b { font-size: 14.5px; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.gx-mech__cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; }
.gx-mech__block { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .06); }
.gx-mech__block h5, .gx-mech__subtitle { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; }
.gx-mech__block h5 i, .gx-mech__subtitle i { color: var(--c); }
.gx-odds { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gx-odds li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 5px 10px; border-radius: 8px; overflow: hidden;
    font-size: 13px; color: #d9d4ea; background: rgba(255, 255, 255, .03); z-index: 0; }
.gx-odds li::before { content: ''; position: absolute; inset: 0 auto 0 0; width: calc(var(--w) * 1%); z-index: -1;
    background: linear-gradient(90deg, color-mix(in srgb, var(--c) 35%, transparent), color-mix(in srgb, var(--c) 12%, transparent)); }
.gx-odds b { color: var(--text); font-variant-numeric: tabular-nums; }
.gx-ups { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gx-up { --c: var(--tc); position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px;
    background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .07); transition: transform .2s ease, border-color .2s ease; }
.gx-mech__panel .gx-up { --c: inherit; }
.gx-up:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c, var(--gx-brand)) 50%, transparent); }
.gx-up header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.gx-up header b { font-size: 14px; line-height: 1.3; }
.gx-up__lvl { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; color: var(--c, var(--gx-brand));
    background: color-mix(in srgb, var(--c, var(--gx-brand)) 14%, transparent); }
.gx-up p { margin: 0; font-size: 13px; line-height: 1.5; color: #c9c4dc; }
.gx-up__meta { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.gx-up__meta span { display: inline-flex; align-items: center; gap: 5px; }
.gx-up__tag { align-self: flex-start; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; color: var(--warn-fg);
    background: rgba(224, 163, 60, .12); border: 1px dashed rgba(224, 163, 60, .4); }

/* ------------------------------------------------------------ 5 · теплотрасса */
.gx-pipe { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr) 54px; align-items: center; gap: 10px;
    padding: 34px 18px 44px; border-radius: 16px; background: rgba(12, 10, 26, .5); border: 1px solid rgba(230, 169, 79, .2); }
.gx-pipe__src, .gx-pipe__end { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; font-size: 20px; }
.gx-pipe__src { color: #2a1000; background: radial-gradient(circle, #fff3d6, #ff9a4a 55%, #b8341f); box-shadow: 0 0 30px rgba(255, 138, 91, .6);
    animation: gx-breathe 3s ease-in-out infinite; }
.gx-pipe__end { color: #cfe3ff; background: rgba(111, 179, 255, .12); border: 1px dashed rgba(111, 179, 255, .5); }
.gx-pipe__line { position: relative; display: flex; gap: 3px; height: 22px; }
.gx-pipe__seg { flex: 1; border-radius: 4px; opacity: calc(.35 + var(--s) / 140);
    background: linear-gradient(180deg, color-mix(in srgb, #ffcf86 calc(var(--s) * 1%), #7aa39c), color-mix(in srgb, #c07a30 calc(var(--s) * 1%), #4d6f6a));
    box-shadow: 0 0 calc(var(--s) * .2px) rgba(255, 170, 90, calc(var(--s) / 120)); }
.gx-pipe__flow { position: absolute; inset: 7px 0; border-radius: 4px; pointer-events: none;
    background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 240, 210, .85) 18px 24px, transparent 24px 42px);
    -webkit-mask: linear-gradient(90deg, #000, rgba(0, 0, 0, .2)); mask: linear-gradient(90deg, #000, rgba(0, 0, 0, .2));
    animation: gx-flow 1.4s linear infinite; }
@keyframes gx-flow { to { background-position: 42px 0; } }
.gx-pipe__marks { position: absolute; left: 82px; right: 82px; top: 0; bottom: 0; pointer-events: none; }
.gx-pipe__marks span { position: absolute; left: calc(var(--at) * 1%); display: flex; flex-direction: column; align-items: center; }
.gx-pipe__marks b { position: absolute; top: 8px; font-size: 12px; color: #ffd08a; font-variant-numeric: tabular-nums; }
.gx-pipe__marks em { position: absolute; bottom: -100px; top: auto; font-style: normal; font-size: 12px; color: #a9d0ff; white-space: nowrap; }
.gx-pipe__marks span { top: 0; height: 100%; }
.gx-pipe__marks em { bottom: 12px; }
.gx-how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: none; }
.gx-how__step { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 14px; border-radius: 14px;
    background: rgba(255, 255, 255, .025); border: 1px solid rgba(230, 169, 79, .18); }
.gx-how__step > span { position: absolute; top: 12px; right: 14px; font-size: 24px; font-weight: 800; color: rgba(230, 169, 79, .22); }
.gx-how__step > i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--gx-copper); background: rgba(230, 169, 79, .14); }
.gx-how__step b { font-size: 14.5px; }
.gx-how__step p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.gx-chain { display: flex; align-items: center; gap: 0; padding: 18px; border-radius: 16px; background: rgba(12, 10, 26, .45); overflow-x: auto; }
.gx-chain__node { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 112px; padding: 12px; border-radius: 14px;
    text-align: center; background: color-mix(in srgb, var(--tc) 10%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 40%, transparent); }
.gx-chain__node i { font-size: 18px; color: var(--tc); }
.gx-chain__node b { font-size: 13.5px; }
.gx-chain__node em { font-style: normal; font-size: 12px; color: var(--muted); }
.gx-chain__wire { flex: 1 0 28px; height: 3px; margin: 0 4px; border-radius: 3px;
    background: repeating-linear-gradient(90deg, #ffcf86 0 8px, transparent 8px 14px); background-size: 14px 3px; animation: gx-flow2 .8s linear infinite; }
@keyframes gx-flow2 { to { background-position: 14px 0; } }

/* --------------------------------------------------- 6 · прокачка и классы */
.gx-kind { --tc: var(--gx-brand); display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 16px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 12%, transparent), rgba(12, 10, 26, .4));
    border: 1px solid color-mix(in srgb, var(--tc) 28%, transparent); }
.gx-kind__ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; font-size: 16px; color: #fff;
    background: linear-gradient(145deg, var(--tc), color-mix(in srgb, var(--tc) 40%, #15122a)); }
.gx-kind b { font-size: 15.5px; }
.gx-kind p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.gx-classes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; perspective: 900px; }
.gx-class { --tc: var(--gx-brand); position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 16px; border-radius: 18px; overflow: hidden;
    background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--tc) 22%, transparent), transparent 65%), rgba(12, 10, 26, .6);
    border: 1px solid color-mix(in srgb, var(--tc) 35%, transparent);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease; transform-style: preserve-3d; }
.gx-class:hover { transform: translateY(-6px) rotateX(6deg); box-shadow: 0 24px 40px -20px color-mix(in srgb, var(--tc) 80%, transparent); }
.gx-class__ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; font-size: 22px; color: #fff;
    background: linear-gradient(145deg, var(--tc), color-mix(in srgb, var(--tc) 35%, #15122a));
    box-shadow: 0 10px 22px -8px var(--tc), inset 0 1px 0 rgba(255, 255, 255, .35); transform: translateZ(30px); }
.gx-class h5 { margin: 4px 0 0; font-size: 18px; }
.gx-class q { font-size: 13px; font-style: italic; color: var(--tc); quotes: '«' '»'; }
.gx-class p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.gx-class ul { list-style: none; margin: auto 0 0; padding: 10px 0 0; display: grid; gap: 5px; border-top: 1px solid rgba(255, 255, 255, .07); }
.gx-class li { font-size: 12.5px; line-height: 1.45; color: #c9c4dc; padding-left: 14px; position: relative; }
.gx-class li::before { content: '✦'; position: absolute; left: 0; font-size: 9px; top: 3px; color: var(--tc); }
.gx-ranks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.gx-ranks li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 12px; text-align: center;
    background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); }
.gx-ranks b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; color: #fff; background: rgba(245, 158, 11, .25); }
.gx-ranks span { font-size: 12px; font-weight: 700; }
.gx-ranks em { font-style: normal; font-size: 11px; color: var(--muted); }
.gx-ranks .is-crown { border-color: rgba(245, 158, 11, .5); background: rgba(245, 158, 11, .08); }
.gx-ranks .is-crown b { background: linear-gradient(145deg, #ffd08a, #f59e0b); color: #2a1000; }

/* ------------------------------------------------------------ 7 · лестница */
.gx-ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.gx-rung { position: relative; display: grid; grid-template-columns: 44px 36px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px;
    border-radius: 14px; background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .06); opacity: .78;
    transition: opacity .2s ease, border-color .2s ease; }
.gx-rung:hover { opacity: 1; }
.gx-rung.is-open { opacity: 1; border-color: rgba(99, 176, 74, .35); background: linear-gradient(90deg, rgba(99, 176, 74, .08), rgba(255, 255, 255, .02)); }
.gx-rung__lvl { display: flex; flex-direction: column; align-items: center; font-size: 20px; font-weight: 800; line-height: 1; color: var(--text);
    font-variant-numeric: tabular-nums; }
.gx-rung__lvl small { font-size: 10px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.gx-rung__dot { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; font-size: 14px; }
.gx-rung[data-kind="event"] .gx-rung__dot { color: var(--gx-aurora); background: rgba(94, 234, 212, .12); }
.gx-rung[data-kind="machine"] .gx-rung__dot { color: var(--gx-amber); background: rgba(245, 158, 11, .12); }
.gx-rung[data-kind="bonus"] .gx-rung__dot { color: var(--gx-brand); background: rgba(167, 139, 250, .14); }
.gx-rung__body b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14.5px; }
.gx-rung__body p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.gx-laws { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gx-laws li { display: grid; grid-template-columns: minmax(0, 1.2fr) auto auto; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 10px;
    font-size: 13px; background: rgba(255, 255, 255, .03); }
.gx-laws b { font-weight: 700; }
.gx-laws .is-good, .gx-laws .is-bad { padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.gx-laws .is-good { color: #9be07f; background: rgba(99, 176, 74, .12); }
.gx-laws .is-bad { color: #ffaaa6; background: rgba(239, 107, 103, .12); }
.gx-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gx-chips li { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; color: #d9d4ea; background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .28); }

/* ------------------------------------------------------------ 8 · награды */
.gx-awards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.gx-award { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 14px 14px; border-radius: 16px; overflow: hidden;
    background: linear-gradient(180deg, rgba(240, 196, 131, .1), rgba(12, 10, 26, .5)); border: 1px solid rgba(240, 196, 131, .22);
    transition: transform .25s ease, border-color .25s ease; }
.gx-award:hover { transform: translateY(-3px); border-color: var(--gx-gold); }
.gx-award > i { font-size: 22px; color: var(--gx-gold); }
.gx-award b { font-size: 14.5px; }
.gx-award p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.gx-award__lvl { position: absolute; top: 10px; right: 12px; font-size: 22px; font-weight: 800; color: rgba(240, 196, 131, .3); }
.gx-award--top { border-color: rgba(240, 196, 131, .55); background: linear-gradient(160deg, rgba(240, 196, 131, .22), rgba(167, 139, 250, .1), rgba(12, 10, 26, .5)); }
.gx-award--top::after { content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .18) 50%, transparent 70%); transform: translateX(-100%);
    animation: gx-shine 4s ease-in-out infinite; }
@keyframes gx-shine { 60%, 100% { transform: translateX(100%); } }
.gx-mults { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gx-mult { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); }
.gx-mult b { font-size: 20px; color: var(--gx-gold); font-variant-numeric: tabular-nums; }
.gx-mult span { font-size: 14px; font-weight: 700; }
.gx-mult em { font-style: normal; font-size: 12.5px; line-height: 1.45; color: var(--muted); }

/* ----------------------------------------------------------- 9 · опасности */
.gx-storm { --tc: var(--gx-ice); position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px;
    background: rgba(12, 10, 26, .6); border: 1px solid color-mix(in srgb, var(--tc) 35%, transparent); isolation: isolate; }
.gx-storm h4 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 17px; }
.gx-storm h4 i { color: var(--tc); }
.gx-storm p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.gx-storm__tip { display: flex; gap: 8px; padding: 9px 11px; border-radius: 10px; color: #d9d4ea !important; background: color-mix(in srgb, var(--tc) 10%, transparent); }
.gx-storm__tip i { color: var(--tc); margin-top: 3px; }
.gx-storm__fx { position: absolute; inset: 0; z-index: -1; opacity: .35; pointer-events: none;
    background-image: repeating-linear-gradient(105deg, transparent 0 14px, rgba(207, 227, 255, .25) 14px 15px);
    background-size: 200% 100%; animation: gx-wind 1.6s linear infinite; }
@keyframes gx-wind { to { background-position: -120px 40px; } }
.gx-storm__fx--aurora { opacity: .4; background-image: radial-gradient(60% 40% at 30% 0%, rgba(94, 234, 212, .5), transparent 70%),
    radial-gradient(50% 40% at 80% 10%, rgba(167, 139, 250, .5), transparent 70%); background-size: 200% 100%;
    animation: gx-aurora 9s ease-in-out infinite alternate; }
@keyframes gx-aurora { to { background-position: 100% 0; } }
.gx-deps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 0; }
.gx-deps div { padding: 11px 13px; border-radius: 12px; background: rgba(255, 255, 255, .025); border-left: 3px solid var(--tc); }
.gx-deps dt { font-size: 13.5px; font-weight: 700; }
.gx-deps dd { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.gx-cta { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 18px;
    background: linear-gradient(135deg, rgba(139, 92, 246, .18), rgba(111, 179, 255, .08)); border: 1px solid rgba(139, 92, 246, .35); }
.gx-cta > i { font-size: 28px; color: var(--brand-soft); }
.gx-cta b { font-size: 16px; }
.gx-cta p { margin: 4px 0 0; font-size: 14px; color: #c9c4dc; }

/* ------------------------------------------------------------- адаптив */
@media (max-width: 1100px) {
    .gx-layout { grid-template-columns: 1fr; }
    .gx-aside { position: sticky; top: 64px; z-index: 6; flex-direction: row; }
    .gx .gp-toc { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 8px; gap: 4px; flex: 1; border-radius: 14px; }
    .gx .gp-toc::-webkit-scrollbar { display: none; }
    .gx-toc__head { display: none; }
    .gx-toc__bar { position: absolute; left: 10px; right: 10px; bottom: 3px; margin: 0; }
    .gx .gp-toc a, .gx .gp-toc a.is-sub { flex: none; padding: 6px 10px; font-size: 12.5px; white-space: nowrap; }
    .gx-level { display: none; }
    .gx-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gx-step:not(:last-child)::after { display: none; }
    .gx-mech__stats, .gx-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gx-awards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gx-classes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .gx-hero { grid-template-columns: 1fr; padding: 22px; }
    .gx-scene { height: 300px; order: -1; margin: -10px 0 -20px; }
    .gx-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gx-sim { grid-template-columns: 1fr; }
    .gx-split, .gx-scales { grid-template-columns: 1fr; }
    .gx-grid4, .gx-how, .gx-mults { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gx-gen__body { grid-template-columns: 1fr; }
    .gx-mech__cols, .gx-options, .gx-ladder { grid-template-columns: 1fr; }
    .gx-tiers { flex-wrap: wrap; }
    .gx-tier { flex: 1 1 140px; }
}
@media (max-width: 560px) {
    .gx-sec { padding: 18px 16px; border-radius: 18px; }
    .gx-steps, .gx-grid3, .gx-grid4, .gx-how, .gx-classes, .gx-awards, .gx-mults { grid-template-columns: 1fr; }
    .gx-mech__stats, .gx-facts, .gx-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gx-gen__tabs { grid-template-columns: repeat(5, minmax(56px, 1fr)); overflow-x: auto; }
    .gx-gen__tab span { display: none; }
    .gx-ranks { grid-template-columns: repeat(5, minmax(48px, 1fr)); }
    .gx-sim__out { flex-direction: row; }
    .gx-thermo { height: 160px; }
    .gx-pipe { grid-template-columns: 36px minmax(0, 1fr) 36px; padding: 30px 10px 40px; }
    .gx-pipe__src, .gx-pipe__end { width: 36px; height: 36px; font-size: 14px; }
    .gx-pipe__marks { left: 56px; right: 56px; }
    .gx-pipe__marks em { font-size: 10.5px; }
    .gx-laws li { grid-template-columns: 1fr auto; }
    .gx-laws .is-bad { grid-column: 2; }
    .gx-timeline li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
    .gx *, .gx *::before, .gx *::after { animation: none !important; transition-duration: .01ms !important; }
    .gx-sec.is-pending, .gx-start.is-pending { opacity: 1; transform: none; }
}
