.statistics-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* =========================================================
   HEADER
   ========================================================= */

.statistics-header {
    min-height: 90px;

    padding:
        20px
        clamp(22px, 5vw, 80px);

    display: flex;
    align-items: center;
    justify-content: space-between;

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

    background:
        rgba(7, 7, 9, 0.9);
}


.statistics-brand {
    display: flex;
    align-items: end;
    gap: 3px;
}


.statistics-brand-main {
    font-size: 29px;
    font-weight: 950;
    letter-spacing: -0.055em;
}


.statistics-brand-dot {
    color: var(--red-bright);

    font-size: 20px;
    font-weight: 950;
}


.statistics-back {
    min-height: 38px;

    padding: 0 14px;

    display: flex;
    align-items: center;
    gap: 9px;

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

    color: #9999a1;

    font-size: 8px;
    font-weight: 900;
}


.statistics-back span {
    color: var(--red-bright);
}


/* =========================================================
   MAIN
   ========================================================= */

.statistics-main {
    width: 100%;
    max-width: 1450px;

    margin: 0 auto;

    padding:
        36px
        clamp(22px, 5vw, 80px)
        70px;

    flex: 1;
}


.breadcrumb {
    margin-bottom: 30px;

    display: flex;
    gap: 9px;

    color: #66666e;

    font-size: 8px;
    font-weight: 800;
}


.breadcrumb span:last-child {
    color: #9999a0;
}


/* =========================================================
   TITLE
   ========================================================= */

.statistics-title {
    margin-bottom: 28px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;
}


.statistics-kicker {
    color: var(--red-bright);

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 0.22em;
}


.statistics-title h1 {
    margin:
        4px
        0
        6px;

    font-size:
        clamp(32px, 4vw, 50px);

    font-weight: 950;

    letter-spacing: -0.045em;
}


.statistics-title p {
    margin: 0;

    color: #7d7d85;

    font-size: 11px;
}


.live-update {
    padding:
        11px
        14px;

    display: flex;
    align-items: center;
    gap: 10px;

    border: 1px solid rgba(56, 214, 107, 0.15);
    border-radius: 5px;

    background:
        rgba(56, 214, 107, 0.035);
}


.live-update-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 10px rgba(56, 214, 107, 0.65);

    animation: systemPulse 2s infinite;
}


@keyframes systemPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }

}


.live-update div {
    display: flex;
    flex-direction: column;
}


.live-update strong {
    color: #9b9ba2;

    font-size: 7px;
    letter-spacing: 0.1em;
}


.live-update span:last-child {
    margin-top: 2px;

    color: #606068;

    font-size: 7px;
}


/* =========================================================
   SYSTEM CARDS
   ========================================================= */

.system-grid {
    display: grid;

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

    gap: 18px;
}


.system-card {
    min-height: 190px;

    padding:
        21px
        22px;

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

    background:
        linear-gradient(
            145deg,
            rgba(21, 21, 25, 0.9),
            rgba(10, 10, 13, 0.94)
        );

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.2);

    transition:
        transform 180ms ease,
        border-color 180ms ease;
}


.system-card:hover {
    transform: translateY(-2px);

    border-color:
        rgba(227, 38, 46, 0.32);
}


.system-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #86868e;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 0.11em;
}


.system-card-icon {
    padding:
        4px
        6px;

    border:
        1px solid rgba(227, 38, 46, 0.2);

    border-radius: 3px;

    color: var(--red-bright);

    font-size: 6px;
}


.system-value-row {
    margin:
        31px
        0
        14px;

    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 15px;
}


.system-value-row strong {
    color: #f2f2f3;

    font-size: 36px;
    font-weight: 950;

    line-height: 1;
}


.system-value-row span {
    color: #66666e;

    font-size: 7px;
    font-weight: 850;
}


.usage-bar {
    width: 100%;
    height: 5px;

    overflow: hidden;

    border-radius: 8px;

    background:
        rgba(255, 255, 255, 0.055);
}


.usage-bar-fill {
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #7d1117,
            var(--red-bright)
        );

    box-shadow:
        0 0 12px rgba(227, 38, 46, 0.2);

    transition:
        width 500ms ease;
}


.system-card-description {
    margin:
        13px
        0
        0;

    color: #5f5f67;

    font-size: 8px;
}


.uptime-card {
    display: flex;
    flex-direction: column;
}


.uptime-value {
    margin-top: auto;
    margin-bottom: 15px;

    color: #f2f2f3;

    font-size:
        clamp(22px, 2vw, 29px);

    font-weight: 950;
}


/* =========================================================
   LOAD AVERAGE
   ========================================================= */

.statistics-panel {
    margin-top: 18px;

    overflow: hidden;

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

    background:
        linear-gradient(
            145deg,
            rgba(19, 19, 23, 0.88),
            rgba(10, 10, 13, 0.92)
        );
}


.statistics-panel-header {
    min-height: 50px;

    padding:
        0
        19px;

    display: flex;
    align-items: center;
    justify-content: space-between;

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


.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #d0d0d5;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 0.1em;
}


.panel-title > span {
    width: 2px;
    height: 15px;

    background: var(--red-bright);

    box-shadow:
        0 0 9px rgba(227, 38, 46, 0.4);
}


.statistics-panel-header small {
    color: #606068;

    font-size: 7px;
    font-weight: 850;
}


.load-grid {
    padding:
        24px
        19px;

    display: grid;

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


.load-item {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
}


.load-item:not(:last-child)::after {
    content: "";

    position: absolute;

    right: 0;
    top: 5%;

    width: 1px;
    height: 90%;

    background: var(--border);
}


.load-item span {
    color: #66666e;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: 0.1em;
}


.load-item strong {
    margin-top: 7px;

    color: #e7e7e9;

    font-size: 24px;
    font-weight: 950;
}


/* =========================================================
   GAME PROCESSES
   ========================================================= */

.game-process-section {
    margin-top: 37px;
}


.process-section-title {
    margin-bottom: 17px;
}


.process-section-title h2 {
    margin:
        3px
        0
        0;

    color: #e8e8ea;

    font-size: 23px;
    font-weight: 950;
}


.process-grid {
    display: grid;

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

    gap: 18px;
}


.process-card {
    position: relative;

    min-height: 260px;

    overflow: hidden;

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

    background: #0d0d10;

    isolation: isolate;

    transition:
        transform 180ms ease,
        border-color 180ms ease;
}


.process-card:hover {
    transform: translateY(-2px);

    border-color:
        rgba(227, 38, 46, 0.38);
}


.process-art {
    position: absolute;
    inset: 0;

    z-index: -3;

    background-size: cover;
    background-position: center;

    filter:
        saturate(0.7)
        brightness(0.48);

    transition:
        filter 350ms ease,
        transform 600ms ease;
}


.process-card:hover .process-art {
    filter:
        saturate(1.18)
        brightness(0.9);

    transform: scale(1.045);
}


.cs-art {
    background-image:
        url('/img/games/cs16.webp');
}


.et-art {
    background-image:
        url('/img/games/wolfet.webp');
}


.process-overlay {
    position: absolute;
    inset: 0;

    z-index: -2;

    background:
        linear-gradient(
            90deg,
            rgba(7, 7, 9, 0.97),
            rgba(7, 7, 9, 0.83) 48%,
            rgba(7, 7, 9, 0.34)
        );
}


.process-content {
    min-height: 260px;

    padding:
        22px
        23px;

    display: flex;
    flex-direction: column;
}


.process-type {
    color: var(--red-bright);

    font-size: 7px;
    font-weight: 900;

    letter-spacing: 0.15em;
}


.process-heading h3 {
    margin:
        5px
        0
        0;

    color: #f0f0f2;

    font-size: 22px;
    font-weight: 950;
}


.process-stat-grid {
    margin-top: auto;
    margin-bottom: 21px;

    display: grid;

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

    gap: 10px;
}


.process-stat-grid div {
    padding-left: 10px;

    border-left:
        2px solid rgba(227, 38, 46, 0.52);

    display: flex;
    flex-direction: column;
}


.process-stat-grid span {
    color: #66666e;

    font-size: 7px;
    font-weight: 900;
}


.process-stat-grid strong {
    margin-top: 3px;

    color: #e0e0e4;

    font-size: 11px;
}


.process-bar-row {
    display: grid;

    grid-template-columns:
        70px
        1fr;

    align-items: center;
    gap: 12px;
}


.process-bar-row > span {
    color: #62626a;

    font-size: 7px;
    font-weight: 900;
}


.process-bar {
    height: 4px;

    overflow: hidden;

    border-radius: 5px;

    background:
        rgba(255, 255, 255, 0.06);
}


.process-bar > div {
    width: 0%;
    height: 100%;

    border-radius: inherit;

    background:
        var(--red-bright);

    transition:
        width 500ms ease;
}


/* =========================================================
   FOOTER
   ========================================================= */

.statistics-footer {
    min-height: 80px;

    padding:
        20px
        clamp(22px, 5vw, 80px);

    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;

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

    color: #6e6e76;

    font-size: 9px;
}


.statistics-footer strong {
    color: #a0a0a7;
}


.statistics-footer a {
    justify-self: end;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .system-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .uptime-card {
        grid-column:
            1 / -1;
    }


    .process-grid {
        grid-template-columns:
            1fr;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .statistics-header {
        padding:
            15px
            16px;
    }


    .statistics-brand-main {
        font-size: 23px;
    }


    .statistics-brand-dot {
        font-size: 16px;
    }


    .statistics-main {
        padding:
            25px
            13px
            45px;
    }


    .statistics-title {
        align-items: flex-start;
        flex-direction: column;
    }


    .live-update {
        width: 100%;
    }


    .system-grid {
        grid-template-columns:
            1fr;
    }


    .uptime-card {
        grid-column: auto;
    }


    .load-grid {
        padding:
            18px
            10px;
    }


    .load-item strong {
        font-size: 20px;
    }


    .process-content {
        padding:
            19px
            17px;
    }


    .process-stat-grid {
        grid-template-columns:
            1fr;
    }


    .process-stat-grid div {
        min-height: 37px;
    }


    .statistics-footer {
        grid-template-columns:
            1fr;

        gap: 9px;

        text-align: center;
    }


    .statistics-footer a {
        justify-self: center;
    }

}
