/**
 * [RS] Wiki / Knowledgebase — page-specific styles
 */

.page-wiki {
  --hero-min-height: 78vh;
  --hero-accent-x: 73%;
  --hero-accent-y: 35%;
  --hero-accent-alpha: .18;
}

.wiki-hero-art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 73% 35%, rgba(189,0,0,.13), transparent 32%),
    linear-gradient(120deg, #080808, #111 52%, #070707);
}

.wiki-overview {
  position: relative;
  z-index: 4;
  padding: 34px 0 52px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.wiki-overview .wiki-stats { margin-top: 0; }

.wiki-empty-message {
  padding: 24px;
  color: rgba(255,255,255,.34);
  font-size: .74rem;
  line-height: 1.65;
}


.wiki-stats {

    display: flex;

    flex-wrap: wrap;

    gap: 0;

    margin-top: 38px;

}


.wiki-stat {

    min-width: 135px;

    padding:
        0
        25px;

    border-right:
        1px solid
        var(--border);

}


.wiki-stat:first-child {
    padding-left: 0;
}


.wiki-stat:last-child {
    border-right: 0;
}


.wiki-stat-value {

    color: #fff;

    font-size: 1.25rem;

    font-weight: 900;

}


.wiki-stat-label {

    margin-top: 3px;

    color:
        rgba(255,255,255,.25);

    font-size: .48rem;

    font-weight: 800;

    letter-spacing: .10em;

    text-transform: uppercase;

}


/* =====================================================
   SEARCH
====================================================== */

.search-wrap {

    position: relative;

    z-index: 5;

    margin-top: -22px;

}


.wiki-search {

    display: grid;

    grid-template-columns:
        70px
        minmax(0, 1fr)
        auto;

    min-height: 74px;

    border:
        1px solid
        var(--border);

    background:
        rgba(12,12,12,.97);

    box-shadow:
        0 24px 80px
        rgba(0,0,0,.55);

}


.search-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    color:
        var(--red-bright);

    font-size: 1rem;

}


.wiki-search input {

    width: 100%;

    border: 0;

    outline: 0;

    background:
        transparent;

    color: #fff;

    padding:
        0
        10px;

    font-size: .92rem;

}


.wiki-search input::placeholder {
    color: rgba(255,255,255,.25);
}


.search-button {

    min-width: 150px;

    border: 0;

    border-left:
        1px solid
        var(--border);

    background:
        var(--red);

    color: #fff;

    font-size: .61rem;

    font-weight: 800;

    letter-spacing: .12em;

    text-transform: uppercase;

}


.search-button:hover {
    background: var(--red-bright);
}


/* =====================================================
   SEARCH RESULTS
====================================================== */

.search-results {

    margin-top: 20px;

    border:
        1px solid
        var(--border);

    background:
        #0d0d0d;

    box-shadow:
        0 20px 60px
        rgba(0,0,0,.32);

}


.search-results-heading {

    padding:
        18px
        20px;

    border-bottom:
        1px solid
        var(--border);

    color:
        rgba(255,255,255,.30);

    font-size: .59rem;

    font-weight: 800;

    letter-spacing: .13em;

    text-transform: uppercase;

}


.search-result {

    display: grid;

    grid-template-columns:
        38px
        minmax(0, 1fr)
        auto;

    gap: 14px;

    align-items: center;

    padding:
        18px
        20px;

    border-bottom:
        1px solid
        var(--border-soft);

}


.search-result:last-child {
    border-bottom: 0;
}


.search-result:hover {

    background:
        rgba(189,0,0,.05);

}


.search-result-icon {

    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        var(--border);

    color:
        var(--red-bright);

}


.search-result-title {

    color: #fff;

    font-size: .81rem;

    font-weight: 700;

}


.search-result-description {

    margin-top: 4px;

    color:
        rgba(255,255,255,.31);

    font-size: .68rem;

}


.search-result-category {

    color:
        rgba(255,255,255,.22);

    font-size: .55rem;

    font-weight: 800;

    letter-spacing: .08em;

    text-transform: uppercase;

}


/* =====================================================
   GENERAL CATEGORY GRID
====================================================== */

.category-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px;

    margin-top: 48px;

}


.category-card {

    position: relative;

    min-height: 235px;

    display: flex;

    flex-direction: column;

    padding: 29px;

    overflow: hidden;

    border:
        1px solid
        var(--border);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.015),
            rgba(255,255,255,.002)
        );

    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;

}


.category-card::after {

    content: "";

    position: absolute;

    right: -50px;
    bottom: -70px;

    width: 150px;
    height: 150px;

    border:
        1px solid
        rgba(189,0,0,.08);

    transform:
        rotate(45deg);

}


.category-card:hover {

    transform:
        translateY(-4px);

    border-color:
        var(--red-border);

    background:
        linear-gradient(
            145deg,
            rgba(189,0,0,.055),
            rgba(255,255,255,.003)
        );

}


.category-icon {

    width: 43px;
    height: 43px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        var(--red-border);

    color:
        var(--red-bright);

    background:
        var(--red-soft);

}


.category-title {

    margin-top: 24px;

    color: #fff;

    font-size: 1rem;

    font-weight: 800;

}


.category-copy {

    margin-top: 10px;

    color:
        rgba(255,255,255,.36);

    font-size: .74rem;

    line-height: 1.66;

}


.category-bottom {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-top: auto;

    padding-top: 24px;

}


.category-count {

    color:
        rgba(255,255,255,.21);

    font-size: .56rem;

    font-weight: 800;

    letter-spacing: .11em;

    text-transform: uppercase;

}


.category-arrow {

    color:
        rgba(255,255,255,.22);

    transition:
        color .18s ease,
        transform .18s ease;

}


.category-card:hover
.category-arrow {

    color:
        var(--red-bright);

    transform:
        translateX(3px);

}


/* =====================================================
   GAME KNOWLEDGE BASE
====================================================== */

.game-section {

    position: relative;

    overflow: hidden;

    background:
        #080808;

    border-top:
        1px solid
        var(--border);

    border-bottom:
        1px solid
        var(--border);

}


.game-section::before {

    content: "";

    position: absolute;

    top: -300px;
    right: -250px;

    width: 700px;
    height: 700px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(189,0,0,.10),
            transparent 68%
        );

    pointer-events: none;

}


.game-section-header {

    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, 430px);

    gap: 70px;

    align-items: end;

}


.game-summary {

    padding-bottom: 7px;

}


.game-summary-number {

    color:
        rgba(255,255,255,.12);

    font-size:
        clamp(
            3rem,
            5vw,
            5rem
        );

    font-weight: 900;

    line-height: 1;

    letter-spacing: -.06em;

}


.game-summary-label {

    margin-top: 7px;

    color:
        rgba(255,255,255,.27);

    font-size: .57rem;

    font-weight: 800;

    letter-spacing: .13em;

    text-transform: uppercase;

}


/* =====================================================
   GAME GRID
====================================================== */

.game-grid {

    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 1px;

    margin-top: 52px;

    border:
        1px solid
        var(--border);

    background:
        var(--border);

}


.game-card {

    position: relative;

    min-height: 285px;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    padding: 29px;

    background:
        #0b0b0b;

    transition:
        background .2s ease;

}


.game-card:hover {

    background:
        #101010;

}


.game-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 0;
    height: 2px;

    background:
        var(--red-bright);

    transition:
        width .25s ease;

}


.game-card:hover::before {
    width: 100%;
}


.game-card-number {

    position: absolute;

    top: 19px;
    right: 22px;

    color:
        rgba(255,255,255,.035);

    font-size: 3.7rem;

    font-weight: 900;

    line-height: 1;

    letter-spacing: -.08em;

    pointer-events: none;

}


.game-icon {

    position: relative;

    z-index: 2;

    width: 43px;
    height: 43px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        var(--red-border);

    background:
        var(--red-soft);

    color:
        var(--red-bright);

    font-size: .92rem;

}


.game-card-title {

    position: relative;

    z-index: 2;

    max-width: 82%;

    margin-top: 27px;

    color: #fff;

    font-size: 1.05rem;

    font-weight: 850;

    line-height: 1.18;

    letter-spacing: -.025em;

}


.game-card-copy {

    position: relative;

    z-index: 2;

    margin-top: 11px;

    color:
        rgba(255,255,255,.34);

    font-size: .70rem;

    line-height: 1.62;

}


.game-card-bottom {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-top: auto;

    padding-top: 28px;

}


.game-article-count {

    color:
        rgba(255,255,255,.23);

    font-size: .53rem;

    font-weight: 800;

    letter-spacing: .10em;

    text-transform: uppercase;

}


.game-explore {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    color:
        rgba(255,255,255,.32);

    font-size: .52rem;

    font-weight: 800;

    letter-spacing: .08em;

    text-transform: uppercase;

    transition:
        color .18s ease;

}


.game-card:hover
.game-explore {

    color: #fff;

}


/* =====================================================
   EMPTY GAME STATE
====================================================== */

.game-empty {

    position: relative;

    z-index: 2;

    margin-top: 48px;

    padding: 32px;

    border:
        1px solid
        var(--border);

    background:
        #0d0d0d;

}


.game-empty-title {

    color: #fff;

    font-size: .9rem;

    font-weight: 800;

}


.game-empty-copy {

    margin-top: 7px;

    color:
        rgba(255,255,255,.34);

    font-size: .72rem;

    line-height: 1.65;

}


/* =====================================================
   ARTICLE PANELS
====================================================== */

.article-columns {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;

    margin-top: 48px;

}


.article-panel {

    border:
        1px solid
        var(--border);

    background:
        #0d0d0d;

}


.article-panel-heading {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding:
        18px
        20px;

    border-bottom:
        1px solid
        var(--border);

}


.article-panel-heading strong {

    color:
        rgba(255,255,255,.38);

    font-size: .59rem;

    font-weight: 800;

    letter-spacing: .14em;

    text-transform: uppercase;

}


.article-panel-heading span {

    color:
        rgba(255,255,255,.18);

    font-size: .55rem;

}


.article-list-item {

    display: grid;

    grid-template-columns:
        37px
        minmax(0, 1fr)
        auto;

    gap: 14px;

    align-items: center;

    padding:
        18px
        20px;

    border-bottom:
        1px solid
        var(--border-soft);

    transition:
        background .18s ease;

}


.article-list-item:last-child {
    border-bottom: 0;
}


.article-list-item:hover {

    background:
        rgba(189,0,0,.05);

}


.article-list-icon {

    width: 33px;
    height: 33px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        var(--border);

    color:
        rgba(255,255,255,.37);

}


.article-list-item:hover
.article-list-icon {

    border-color:
        var(--red-border);

    color:
        var(--red-bright);

}


.article-list-title {

    color:
        rgba(255,255,255,.79);

    font-size: .80rem;

    font-weight: 700;

}


.article-list-copy {

    margin-top: 4px;

    color:
        rgba(255,255,255,.28);

    font-size: .67rem;

    line-height: 1.5;

}


.article-list-date {

    color:
        rgba(255,255,255,.19);

    font-size: .57rem;

    white-space: nowrap;

}


/* =====================================================
   KNOWLEDGE SECTION
====================================================== */

.knowledge-layout {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(360px, .75fr);

    gap: 70px;

    align-items: start;

}


.knowledge-panel {

    border:
        1px solid
        var(--border);

    background:
        #0d0d0d;

}


.knowledge-item {

    display: grid;

    grid-template-columns:
        40px
        minmax(0, 1fr);

    gap: 14px;

    padding:
        22px
        24px;

    border-bottom:
        1px solid
        var(--border-soft);

}


.knowledge-item:last-child {
    border-bottom: 0;
}


.knowledge-icon {

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        var(--red-border);

    color:
        var(--red-bright);

    background:
        var(--red-soft);

}


.knowledge-title {

    color: #fff;

    font-size: .81rem;

    font-weight: 700;

}


.knowledge-copy {

    margin-top: 5px;

    color:
        rgba(255,255,255,.34);

    font-size: .70rem;

    line-height: 1.6;

}


/* =====================================================
   HELP CTA
====================================================== */

.wiki-help {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    gap: 50px;

    align-items: center;

    padding: 45px;

    border:
        1px solid
        var(--border);

    background:

        radial-gradient(
            circle at 90% 45%,
            rgba(189,0,0,.14),
            transparent 36%
        ),

        #0d0d0d;

}


.wiki-help-title {

    color: #fff;

    font-size:
        clamp(
            1.7rem,
            3vw,
            3rem
        );

    font-weight: 900;

    line-height: 1;

    letter-spacing: -.04em;

    text-transform: uppercase;

}


.wiki-help-copy {

    max-width: 700px;

    margin-top: 12px;

    color:
        rgba(255,255,255,.39);

    font-size: .76rem;

    line-height: 1.7;

}
/* =====================================================
   RESPONSIVE
====================================================== */

@media (max-width: 1100px) {

    .game-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


@media (max-width: 991.98px) {

    .category-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }


    .game-section-header {

        grid-template-columns: 1fr;

        gap: 30px;

    }


    .article-columns,
    .knowledge-layout {

        grid-template-columns: 1fr;

    }


    .wiki-help {

        grid-template-columns: 1fr;

    }

}


@media (max-width: 767.98px) {
.wiki-stats {

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;

    }


    .wiki-stat {

        padding: 0;

        border-right: 0;

    }


    .search-wrap {
        width: 100%;
        min-width: 0;
    }


    .wiki-search {
        width: 100%;
        min-width: 0;
        min-height: 0;

        grid-template-columns:
            46px
            minmax(0, 1fr);
    }


    .search-icon {
        min-width: 0;
    }


    .wiki-search input {
        min-width: 0;
        width: 100%;
        height: 56px;

        padding:
            0
            12px;

        /*
         * 16px prevents iOS Safari from automatically zooming
         * the page when the search field receives focus.
         */
        font-size: 16px;
    }


    .search-button {
        grid-column:
            1 / -1;

        width: 100%;
        min-width: 0;
        min-height: 50px;

        border-left: 0;

        border-top:
            1px solid
            var(--border);
    }


    .search-results,
    .search-result {
        min-width: 0;
    }


    .search-result > * {
        min-width: 0;
    }


    .search-result-title,
    .search-result-description {
        overflow-wrap: anywhere;
    }


    .category-grid,
    .game-grid {

        grid-template-columns: 1fr;

    }


    .game-card {
        min-height: 250px;
    }


    .article-list-date,
    .search-result-category {

        display: none;

    }


    .wiki-help {
        padding: 30px;
    }

}


@media (max-width: 480px) {

    .category-card,
    .game-card {

        padding: 24px;

    }


    .search-result {

        grid-template-columns:
            34px
            minmax(0, 1fr);

        gap: 11px;

        padding:
            16px
            14px;
    }


    .wiki-search {
        grid-template-columns:
            42px
            minmax(0, 1fr);
    }


    .wiki-search input {
        padding:
            0
            10px;
    }

}