:root {
    --sc-wiki-bg: #090b13;
    --sc-wiki-panel: #111523;
    --sc-wiki-panel-2: #171c2d;
    --sc-wiki-line: rgba(155, 125, 255, .22);
    --sc-wiki-text: #f5f3ff;
    --sc-wiki-muted: #a8aec4;
    --sc-wiki-purple: #9a6cff;
    --sc-wiki-cyan: #38d9ff;
    --sc-wiki-gold: #ffc857;
    --sc-wiki-green: #64e59b;
    --sc-wiki-danger: #ff668c;
}

.sc-wiki {
    color: var(--sc-wiki-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 22px auto 64px;
    max-width: 1380px;
    padding: 0 18px;
}

.sc-wiki *,
.sc-wiki *::before,
.sc-wiki *::after {
    box-sizing: border-box;
}

.sc-wiki a {
    text-decoration: none;
}

.sc-wiki-hero {
    background:
        radial-gradient(circle at 77% 16%, rgba(56, 217, 255, .18), transparent 27%),
        radial-gradient(circle at 25% 70%, rgba(154, 108, 255, .19), transparent 36%),
        linear-gradient(135deg, #111527 0%, #090b13 74%);
    border: 1px solid rgba(154, 108, 255, .38);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .32), inset 0 0 42px rgba(154, 108, 255, .04);
    clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 34px 100%, 0 calc(100% - 34px));
    min-height: 390px;
    overflow: hidden;
    padding: 64px 66px;
    position: relative;
}

.sc-wiki-hero::before,
.sc-wiki-category::before,
.sc-wiki-article::before {
    background: linear-gradient(90deg, var(--sc-wiki-purple), var(--sc-wiki-cyan));
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.sc-wiki-hero__grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 24px 24px;
    inset: 0;
    mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .55) 65%, transparent);
    pointer-events: none;
    position: absolute;
}

.sc-wiki-hero__copy {
    max-width: 790px;
    position: relative;
    z-index: 2;
}

.sc-wiki-kicker,
.sc-wiki-category__eyebrow,
.sc-wiki-heading > div > span,
.sc-wiki-help span,
.sc-article-eyebrow,
.sc-label {
    color: var(--sc-wiki-cyan);
    display: block;
    font-family: "VT323", monospace;
    font-size: 20px;
    letter-spacing: .09em;
    line-height: 1;
    text-transform: uppercase;
}

.sc-wiki-kicker i {
    color: var(--sc-wiki-gold);
    margin-right: 7px;
}

.sc-wiki-hero h1 {
    font-family: "VT323", monospace;
    font-size: clamp(64px, 8vw, 104px);
    font-weight: 400;
    letter-spacing: .02em;
    line-height: .82;
    margin: 23px 0 28px;
    text-shadow: 5px 5px 0 rgba(0, 0, 0, .3);
}

.sc-wiki-hero h1 span {
    color: var(--sc-wiki-purple);
}

.sc-wiki-hero p {
    color: #c8ccda;
    font-size: 17px;
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 720px;
}

.sc-wiki-hero__mark {
    color: rgba(255, 255, 255, .025);
    font-family: "VT323", monospace;
    font-size: 210px;
    line-height: .72;
    position: absolute;
    right: 54px;
    text-align: center;
    top: 62px;
    transform: rotate(-7deg);
    user-select: none;
}

.sc-wiki-hero__mark span {
    display: block;
}

.sc-wiki-search {
    align-items: stretch;
    background: rgba(4, 6, 12, .76);
    border: 1px solid rgba(154, 108, 255, .38);
    display: flex;
    height: 58px;
    max-width: 660px;
}

.sc-wiki-search > i {
    align-self: center;
    color: var(--sc-wiki-purple);
    font-size: 19px;
    margin-left: 19px;
}

.sc-wiki-search input,
.sc-wiki-mini-search input {
    background: transparent;
    border: 0;
    color: #fff;
    flex: 1;
    min-width: 0;
    outline: 0;
    padding: 0 15px;
}

.sc-wiki-search input::placeholder,
.sc-wiki-mini-search input::placeholder {
    color: #777f99;
}

.sc-wiki-search button {
    background: linear-gradient(135deg, #8154ed, #a56fff);
    border: 0;
    color: #fff;
    cursor: pointer;
    font-family: "VT323", monospace;
    font-size: 22px;
    letter-spacing: .05em;
    padding: 0 27px;
}

.sc-wiki-search button:hover {
    filter: brightness(1.12);
}

.sc-wiki-strip {
    align-items: center;
    background: #0d101b;
    border: 1px solid rgba(255, 255, 255, .07);
    border-top: 0;
    color: #aeb5c9;
    display: flex;
    font-size: 13px;
    gap: 12px 34px;
    justify-content: center;
    padding: 14px 24px;
}

.sc-wiki-strip i {
    color: var(--sc-wiki-green);
    margin-right: 6px;
}

.sc-wiki-heading {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin: 68px 0 25px;
}

.sc-wiki-heading h2 {
    font-family: "VT323", monospace;
    font-size: 44px;
    font-weight: 400;
    line-height: 1;
    margin: 8px 0 0;
}

.sc-wiki-heading > p {
    color: var(--sc-wiki-muted);
    line-height: 1.55;
    margin: 0;
    max-width: 520px;
    text-align: right;
}

.sc-wiki-categories {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sc-wiki-category {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .025), transparent 54%),
        var(--sc-wiki-panel);
    border: 1px solid rgba(255, 255, 255, .09);
    color: var(--sc-wiki-text);
    display: flex;
    flex-direction: column;
    min-height: 340px;
    overflow: hidden;
    padding: 34px;
    position: relative;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}

.sc-wiki-category:hover {
    border-color: rgba(154, 108, 255, .62);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .24), inset 0 0 30px rgba(154, 108, 255, .05);
    color: #fff;
    transform: translateY(-5px);
}

.sc-wiki-category--privileges::before {
    background: linear-gradient(90deg, #a45cff, #fa6dcc);
}

.sc-wiki-category--territory::before {
    background: linear-gradient(90deg, #30c991, #38d9ff);
}

.sc-wiki-category__number {
    color: rgba(255, 255, 255, .035);
    font-family: "VT323", monospace;
    font-size: 112px;
    line-height: 1;
    position: absolute;
    right: 18px;
    top: 17px;
}

.sc-wiki-category__icon {
    align-items: center;
    background: rgba(154, 108, 255, .14);
    border: 1px solid rgba(154, 108, 255, .34);
    color: #b99aff;
    display: flex;
    font-size: 25px;
    height: 58px;
    justify-content: center;
    margin-bottom: 31px;
    position: relative;
    width: 58px;
}

.sc-wiki-category--territory .sc-wiki-category__icon {
    background: rgba(56, 217, 255, .1);
    border-color: rgba(56, 217, 255, .28);
    color: var(--sc-wiki-cyan);
}

.sc-wiki-category h3 {
    font-family: "VT323", monospace;
    font-size: 37px;
    font-weight: 400;
    line-height: 1;
    margin: 8px 0 14px;
    position: relative;
}

.sc-wiki-category p {
    color: var(--sc-wiki-muted);
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 28px;
    position: relative;
}

.sc-wiki-category__footer {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #8f97ae;
    display: flex;
    font-size: 12px;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 18px;
}

.sc-wiki-category__footer i {
    color: var(--sc-wiki-purple);
    font-size: 18px;
}

.sc-wiki-help {
    align-items: center;
    background:
        linear-gradient(90deg, rgba(154, 108, 255, .08), transparent 45%),
        #0e111d;
    border: 1px solid rgba(154, 108, 255, .18);
    display: grid;
    gap: 20px;
    grid-template-columns: auto 1fr auto;
    margin-top: 38px;
    padding: 25px 28px;
}

.sc-wiki-help__icon {
    align-items: center;
    background: var(--sc-wiki-purple);
    color: #fff;
    display: flex;
    font-size: 23px;
    height: 54px;
    justify-content: center;
    width: 54px;
}

.sc-wiki-help h3 {
    font-family: "VT323", monospace;
    font-size: 29px;
    font-weight: 400;
    line-height: 1;
    margin: 6px 0;
}

.sc-wiki-help p {
    color: var(--sc-wiki-muted);
    font-size: 13px;
    margin: 0;
}

.sc-wiki-help__button {
    border: 1px solid rgba(154, 108, 255, .65);
    color: #d9caff;
    font-family: "VT323", monospace;
    font-size: 20px;
    letter-spacing: .04em;
    padding: 12px 17px;
}

.sc-wiki-help__button:hover {
    background: var(--sc-wiki-purple);
    color: #fff;
}

/* Article shell */
.sc-wiki-page {
    max-width: 1480px;
}

.sc-wiki-pagebar {
    align-items: center;
    background: #0d101a;
    border: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    min-height: 58px;
    padding: 10px 17px 10px 22px;
}

.sc-wiki-pagebar > div {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-family: "VT323", monospace;
    font-size: 18px;
    gap: 8px;
    letter-spacing: .04em;
}

.sc-wiki-pagebar a {
    color: var(--sc-wiki-cyan);
}

.sc-wiki-pagebar span {
    color: #c3c8d8;
}

.sc-wiki-pagebar i {
    color: #535a70;
    font-size: 12px;
}

.sc-wiki-mini-search {
    align-items: center;
    background: #080a11;
    border: 1px solid rgba(154, 108, 255, .24);
    display: flex;
    height: 37px;
    max-width: 220px;
}

.sc-wiki-mini-search i {
    color: var(--sc-wiki-purple);
    font-size: 14px;
    margin-left: 12px;
}

.sc-wiki-layout {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: 310px minmax(0, 1fr);
}

.sc-wiki-sidebar {
    background: #0d101b;
    border: 1px solid rgba(255, 255, 255, .08);
    position: sticky;
    top: 90px;
}

.sc-wiki-sidebar__top {
    align-items: center;
    background: linear-gradient(135deg, rgba(154, 108, 255, .16), transparent);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    gap: 13px;
    padding: 21px;
}

.sc-wiki-sidebar__icon {
    align-items: center;
    background: rgba(154, 108, 255, .16);
    border: 1px solid rgba(154, 108, 255, .34);
    color: #b99aff;
    display: flex;
    font-size: 21px;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.sc-wiki-sidebar__top small {
    color: var(--sc-wiki-cyan);
    font-family: "VT323", monospace;
    font-size: 16px;
    letter-spacing: .08em;
}

.sc-wiki-sidebar__top h2 {
    font-family: "VT323", monospace;
    font-size: 27px;
    font-weight: 400;
    line-height: 1;
    margin: 3px 0 0;
}

.sc-wiki-page-list,
.sc-wiki-subcategories {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.sc-wiki-page-list a,
.sc-wiki-subcategories a {
    align-items: center;
    border-left: 2px solid transparent;
    color: #9da4b9;
    display: grid;
    font-size: 13px;
    gap: 9px;
    grid-template-columns: auto 1fr auto;
    padding: 13px 11px;
}

.sc-wiki-page-list a > span {
    color: #586077;
    font-family: "VT323", monospace;
    font-size: 18px;
}

.sc-wiki-page-list a > i {
    font-size: 11px;
}

.sc-wiki-page-list a:hover,
.sc-wiki-page-list a.active,
.sc-wiki-subcategories a:hover {
    background: rgba(154, 108, 255, .1);
    border-left-color: var(--sc-wiki-purple);
    color: #fff;
}

.sc-wiki-back {
    border-top: 1px solid rgba(255, 255, 255, .07);
    color: #828aa1;
    display: block;
    font-family: "VT323", monospace;
    font-size: 18px;
    letter-spacing: .04em;
    padding: 17px 21px;
}

.sc-wiki-back:hover {
    color: var(--sc-wiki-cyan);
}

.sc-wiki-content {
    min-width: 0;
}

.sc-wiki-article {
    background:
        linear-gradient(180deg, rgba(154, 108, 255, .035), transparent 360px),
        var(--sc-wiki-panel);
    border: 1px solid rgba(255, 255, 255, .08);
    min-height: 680px;
    overflow: hidden;
    padding: clamp(28px, 5vw, 64px);
    position: relative;
}

.sc-wiki-article__accent {
    background-image:
        linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
    background-size: 22px 22px;
    height: 250px;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
}

.sc-wiki-article .markdown-body {
    color: #c7cbda;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.75;
    max-width: none;
    position: relative;
    z-index: 1;
}

.sc-wiki-article .markdown-body h1,
.sc-wiki-article .markdown-body h2,
.sc-wiki-article .markdown-body h3 {
    border: 0;
    color: #fff;
    font-family: "VT323", monospace;
    font-weight: 400;
    letter-spacing: .015em;
}

.sc-wiki-article .markdown-body h1 {
    font-size: clamp(48px, 6vw, 76px);
    line-height: .95;
    margin: 11px 0 19px;
}

.sc-wiki-article .markdown-body h2 {
    align-items: center;
    display: flex;
    font-size: 38px;
    line-height: 1.05;
    margin: 54px 0 19px;
}

.sc-wiki-article .markdown-body h2::before {
    background: linear-gradient(var(--sc-wiki-purple), var(--sc-wiki-cyan));
    content: "";
    height: 26px;
    margin-right: 13px;
    width: 4px;
}

.sc-wiki-article .markdown-body h3 {
    font-size: 27px;
    margin: 27px 0 12px;
}

.sc-wiki-article .markdown-body p,
.sc-wiki-article .markdown-body li {
    color: #c0c5d5;
}

.sc-wiki-article .markdown-body strong {
    color: #fff;
}

.sc-wiki-article .markdown-body a {
    color: var(--sc-wiki-cyan);
}

.sc-article-lead {
    color: #c9cede !important;
    font-size: 18px;
    line-height: 1.7;
    max-width: 850px;
}

.sc-article-meta {
    color: #778098 !important;
    font-size: 12px;
    letter-spacing: .04em;
    margin-top: 22px;
    text-transform: uppercase;
}

.sc-note,
.sc-callout {
    background: rgba(56, 217, 255, .07);
    border: 1px solid rgba(56, 217, 255, .24);
    border-left: 4px solid var(--sc-wiki-cyan);
    color: #c9d3df;
    margin: 24px 0;
    padding: 18px 20px;
}

.sc-note--warning {
    background: rgba(255, 200, 87, .07);
    border-color: rgba(255, 200, 87, .24);
    border-left-color: var(--sc-wiki-gold);
}

.sc-note--danger {
    background: rgba(255, 102, 140, .07);
    border-color: rgba(255, 102, 140, .25);
    border-left-color: var(--sc-wiki-danger);
}

.sc-note > i,
.sc-callout > i {
    color: var(--sc-wiki-cyan);
    font-size: 19px;
    margin-right: 9px;
}

.sc-note--warning > i {
    color: var(--sc-wiki-gold);
}

.sc-steps {
    counter-reset: sc-step;
    display: grid;
    gap: 12px;
    margin: 23px 0;
}

.sc-step {
    background: #0c0f19;
    border: 1px solid rgba(255, 255, 255, .08);
    counter-increment: sc-step;
    display: grid;
    gap: 16px;
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 18px;
}

.sc-step::before {
    align-items: center;
    background: rgba(154, 108, 255, .14);
    border: 1px solid rgba(154, 108, 255, .38);
    color: #c6adff;
    content: counter(sc-step, decimal-leading-zero);
    display: flex;
    font-family: "VT323", monospace;
    font-size: 22px;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.sc-step h3 {
    margin: 2px 0 5px !important;
}

.sc-step p {
    margin: 0;
}

.sc-key,
.sc-ui,
.sc-command code {
    background: #070910;
    border: 1px solid rgba(154, 108, 255, .3);
    color: #d7c9ff;
    display: inline-block;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: .88em;
    line-height: 1.35;
    padding: 3px 7px;
}

.sc-ui {
    border-color: rgba(56, 217, 255, .3);
    color: #8eeaff;
}

.sc-command-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 22px 0;
}

.sc-command {
    align-items: center;
    background: #0c0f19;
    border: 1px solid rgba(255, 255, 255, .075);
    display: flex;
    gap: 13px;
    min-height: 65px;
    padding: 13px 15px;
}

.sc-command code {
    flex: 0 0 auto;
    white-space: nowrap;
}

.sc-command span {
    color: #aeb4c7;
    font-size: 13px;
    line-height: 1.4;
}

.sc-feature-grid,
.sc-rank-grid,
.sc-limit-grid,
.sc-access-grid {
    display: grid;
    gap: 13px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 22px 0;
}

.sc-feature,
.sc-rank-card,
.sc-limit-card,
.sc-access-card {
    background: #0c0f19;
    border: 1px solid rgba(255, 255, 255, .08);
    padding: 19px;
}

.sc-feature i,
.sc-access-card > i {
    color: var(--sc-wiki-purple);
    font-size: 24px;
}

.sc-feature h3,
.sc-rank-card h3,
.sc-access-card h3 {
    margin: 12px 0 7px !important;
}

.sc-feature p,
.sc-rank-card p,
.sc-access-card p {
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
}

.sc-table-wrap {
    margin: 24px 0;
    overflow-x: auto;
}

.sc-wiki-article .sc-rank-table {
    border-collapse: separate;
    border-spacing: 0;
    display: table;
    font-size: 13px;
    margin: 0;
    min-width: 850px;
    width: 100%;
}

.sc-wiki-article .sc-rank-table th,
.sc-wiki-article .sc-rank-table td {
    background: #0c0f19;
    border-color: rgba(255, 255, 255, .075);
    color: #bac0d1;
    padding: 12px;
    text-align: center;
}

.sc-wiki-article .sc-rank-table th:first-child,
.sc-wiki-article .sc-rank-table td:first-child {
    color: #e3e5ee;
    min-width: 180px;
    text-align: left;
}

.sc-wiki-article .sc-rank-table thead th {
    background: #171b2a;
    color: #fff;
    font-family: "VT323", monospace;
    font-size: 18px;
    letter-spacing: .03em;
}

.sc-yes {
    color: var(--sc-wiki-green);
    font-weight: 700;
}

.sc-no {
    color: #545c72;
}

.sc-inherited {
    color: #8f98af;
    font-size: 12px;
}

.sc-rank-card {
    border-top: 3px solid var(--rank, var(--sc-wiki-purple));
}

.sc-rank-card h3 {
    color: var(--rank, #fff) !important;
    font-size: 30px !important;
}

.sc-rank-card ul {
    margin: 14px 0 0;
    padding-left: 18px;
}

.sc-rank-card li {
    font-size: 13px;
    margin: 5px 0;
}

.sc-limit-card {
    border-top: 3px solid var(--rank, var(--sc-wiki-purple));
    text-align: center;
}

.sc-limit-card strong {
    color: var(--rank, #fff) !important;
    display: block;
    font-family: "VT323", monospace;
    font-size: 29px;
    font-weight: 400;
}

.sc-limit-card span {
    color: #fff;
    display: block;
    font-family: "VT323", monospace;
    font-size: 34px;
    line-height: 1;
    margin: 9px 0 4px;
}

.sc-limit-card small {
    color: #777f96;
}

.sc-checklist {
    list-style: none !important;
    margin: 18px 0 !important;
    padding: 0 !important;
}

.sc-checklist li {
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    padding: 9px 0 9px 28px;
    position: relative;
}

.sc-checklist li::before {
    color: var(--sc-wiki-green);
    content: "\F26A";
    font-family: bootstrap-icons;
    left: 1px;
    position: absolute;
}

.sc-micro {
    color: #757d94 !important;
    font-size: 12px;
}

@media (max-width: 1050px) {
    .sc-wiki-categories,
    .sc-feature-grid,
    .sc-rank-grid,
    .sc-limit-grid,
    .sc-access-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sc-wiki-layout {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .sc-wiki-hero__mark {
        opacity: .5;
    }
}

@media (max-width: 780px) {
    .sc-wiki {
        margin-top: 12px;
        padding: 0 10px;
    }

    .sc-wiki-hero {
        min-height: 0;
        padding: 48px 25px;
    }

    .sc-wiki-hero__mark {
        display: none;
    }

    .sc-wiki-hero h1 {
        font-size: 60px;
    }

    .sc-wiki-search {
        height: auto;
        min-height: 54px;
    }

    .sc-wiki-search button {
        padding: 0 15px;
    }

    .sc-wiki-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .sc-wiki-heading {
        align-items: start;
        flex-direction: column;
        gap: 14px;
        margin-top: 45px;
    }

    .sc-wiki-heading > p {
        text-align: left;
    }

    .sc-wiki-categories,
    .sc-feature-grid,
    .sc-rank-grid,
    .sc-limit-grid,
    .sc-access-grid,
    .sc-command-grid {
        grid-template-columns: 1fr;
    }

    .sc-wiki-category {
        min-height: 300px;
    }

    .sc-wiki-help {
        grid-template-columns: auto 1fr;
    }

    .sc-wiki-help__button {
        grid-column: 1 / -1;
        text-align: center;
    }

    .sc-wiki-pagebar {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .sc-wiki-mini-search {
        max-width: none;
    }

    .sc-wiki-layout {
        grid-template-columns: 1fr;
    }

    .sc-wiki-sidebar {
        position: static;
    }

    .sc-wiki-page-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sc-wiki-article {
        min-height: 0;
        padding: 28px 20px;
    }
}

@media (max-width: 470px) {
    .sc-wiki-page-list {
        grid-template-columns: 1fr;
    }

    .sc-wiki-search > i {
        display: none;
    }

    .sc-wiki-search input {
        padding-left: 13px;
    }

    .sc-step {
        grid-template-columns: 1fr;
    }
}
