/* =========================================================
   NIGHTPULSE WAR
   Statistics Page
   ========================================================= */


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {

    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(130, 20, 20, 0.14),
            transparent 45%
        ),
        #08090c;

    color: #e7e9ed;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    overflow-x: hidden;
}


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

.stats-header {

    width: 100%;

    border-bottom:
        1px solid
        rgba(255,255,255,0.07);

    background:
        rgba(5,6,9,0.94);

    backdrop-filter:
        blur(14px);

    position: sticky;

    top: 0;

    z-index: 100;
}


.stats-header-inner {

    width: min(
        1200px,
        calc(100% - 40px)
    );

    margin: 0 auto;

    min-height: 76px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


/* =========================================================
   BRAND
   ========================================================= */

.stats-brand {

    display: flex;

    align-items: baseline;

    gap: 9px;

    letter-spacing: 2px;
}


.brand-title {

    font-size: 20px;

    font-weight: 900;

    color: #f0f1f3;
}


.brand-subtitle {

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 3px;

    color: #c82828;
}


/* =========================================================
   BACK BUTTON
   ========================================================= */

.back-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 40px;

    padding:
        0 17px;

    border:
        1px solid
        rgba(255,255,255,0.12);

    background:
        rgba(255,255,255,0.025);

    color: #cfd2d8;

    text-decoration: none;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.4px;

    transition:
        0.2s ease;
}


.back-button:hover {

    border-color:
        rgba(200,40,40,0.6);

    background:
        rgba(200,40,40,0.08);

    color: #ffffff;

    transform:
        translateY(-1px);
}


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

.stats-main {

    width: min(
        1200px,
        calc(100% - 40px)
    );

    margin: 0 auto;

    padding:
        70px 0 60px;
}


/* =========================================================
   HERO
   ========================================================= */

.stats-hero {

    text-align: center;

    padding:
        20px 0 65px;
}


.hero-line {

    width: 54px;

    height: 3px;

    margin:
        0 auto 20px;

    background:
        #c82828;

    box-shadow:
        0 0 20px
        rgba(200,40,40,0.45);
}


.stats-hero h1 {

    font-size:
        clamp(34px, 6vw, 62px);

    font-weight:
        900;

    letter-spacing:
        7px;

    color:
        #f1f2f4;
}


.stats-hero p {

    margin-top: 10px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 4px;

    color: #777c85;
}


.stats-updated {

    margin-top: 18px;

    font-size: 11px;

    color: #666b73;

    letter-spacing: 0.7px;
}


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

.stats-section {

    margin-bottom: 58px;
}


.section-title {

    display: flex;

    align-items: center;

    gap: 18px;

    margin-bottom: 20px;

    padding-bottom: 15px;

    border-bottom:
        1px solid
        rgba(255,255,255,0.07);
}


.section-number {

    display: flex;

    align-items: center;

    justify-content: center;

    min-width: 42px;

    height: 42px;

    border:
        1px solid
        rgba(200,40,40,0.45);

    color: #c82828;

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 1px;
}


.section-title h2 {

    font-size: 19px;

    font-weight: 900;

    letter-spacing: 2px;

    color: #e9eaed;
}


.section-title p {

    margin-top: 4px;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1.8px;

    color: #676c75;
}


/* =========================================================
   RANKING LIST
   ========================================================= */

.ranking-list {

    display: grid;

    gap: 9px;
}


/* =========================================================
   STAT CARD
   ========================================================= */

.stat-card {

    min-height: 74px;

    display: grid;

    grid-template-columns:
        55px
        48px
        1fr;

    align-items: center;

    gap: 12px;

    padding:
        10px 18px;

    border:
        1px solid
        rgba(255,255,255,0.06);

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,0.035),
            rgba(255,255,255,0.012)
        );

    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease;
}


.stat-card:hover {

    border-color:
        rgba(200,40,40,0.32);

    background:
        linear-gradient(
            90deg,
            rgba(200,40,40,0.08),
            rgba(255,255,255,0.015)
        );

    transform:
        translateX(3px);
}


/* =========================================================
   PLACE
   ========================================================= */

.stat-place {

    font-size: 14px;

    font-weight: 900;

    color: #777c84;

    text-align: center;
}


.stat-card:nth-child(1)
.stat-place {

    color: #e2b94b;
}


.stat-card:nth-child(2)
.stat-place {

    color: #aeb4bd;
}


.stat-card:nth-child(3)
.stat-place {

    color: #b87850;
}


/* =========================================================
   ICON
   ========================================================= */

.stat-icon {

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        rgba(200,40,40,0.22);

    background:
        rgba(200,40,40,0.06);

    color: #c82828;

    font-size: 17px;

    font-weight: 900;
}


/* =========================================================
   PLAYER INFO
   ========================================================= */

.stat-info {

    min-width: 0;
}


.stat-info h3 {

    overflow:
        hidden;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;

    font-size: 14px;

    font-weight: 800;

    color: #e4e6e9;

    letter-spacing: 0.4px;
}


.stat-info p {

    margin-top: 5px;

    font-size: 11px;

    color: #70757e;
}


.stat-info strong {

    margin-left: 3px;

    color: #d4d6da;

    font-weight: 800;
}


/* =========================================================
   POINTS
   ========================================================= */

.points-grid {

    display: grid;

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

    gap: 10px;
}


.point-card {

    padding: 18px;

    border:
        1px solid
        rgba(255,255,255,0.06);

    background:
        rgba(255,255,255,0.018);

    transition:
        0.2s ease;
}


.point-card:hover {

    border-color:
        rgba(255,255,255,0.14);

    background:
        rgba(255,255,255,0.035);

    transform:
        translateY(-2px);
}


.point-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    margin-bottom: 15px;
}


.point-header h3 {

    font-size: 13px;

    font-weight: 900;

    letter-spacing: 1px;

    color: #e2e4e7;
}


/* =========================================================
   OWNER
   ========================================================= */

.point-owner {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 62px;

    height: 25px;

    padding:
        0 10px;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1px;

    border:
        1px solid;
}


.owner-red {

    color: #e05252;

    border-color:
        rgba(224,82,82,0.4);

    background:
        rgba(224,82,82,0.08);
}


.owner-blue {

    color: #5793e6;

    border-color:
        rgba(87,147,230,0.4);

    background:
        rgba(87,147,230,0.08);
}


.owner-none {

    color: #777d85;

    border-color:
        rgba(255,255,255,0.1);

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


/* =========================================================
   COORDINATES
   ========================================================= */

.point-coordinates {

    display: grid;

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

    gap: 7px;
}


.point-coordinates span {

    padding:
        8px 9px;

    border:
        1px solid
        rgba(255,255,255,0.05);

    background:
        rgba(0,0,0,0.15);

    font-size: 9px;

    color: #666b73;

    letter-spacing: 0.5px;
}


.point-coordinates strong {

    color: #bfc3c9;

    font-size: 10px;

    margin-left: 2px;
}


/* =========================================================
   LOADING
   ========================================================= */

.stats-loading {

    min-height: 74px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        rgba(255,255,255,0.06);

    background:
        rgba(255,255,255,0.015);

    color: #656a72;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;

    animation:
        pulse 1.6s ease-in-out infinite;
}


@keyframes pulse {

    0%,
    100% {
        opacity: 0.45;
    }

    50% {
        opacity: 1;
    }

}


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

.stats-footer {

    padding:
        35px 0 10px;

    text-align: center;

    color: #4f545c;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 2px;
}


.stats-footer span {

    display: block;

    margin-top: 7px;

    color: #383c42;

    font-size: 8px;

    letter-spacing: 1.5px;
}


.footer-line {

    width: 80px;

    height: 1px;

    margin:
        0 auto 18px;

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


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

@media (max-width: 700px) {

    .stats-header-inner {

        width:
            calc(100% - 24px);

        min-height: 66px;
    }


    .stats-main {

        width:
            calc(100% - 24px);

        padding-top: 45px;
    }


    .brand-title {

        font-size: 16px;
    }


    .brand-subtitle {

        font-size: 10px;
    }


    .back-button {

        padding:
            0 11px;

        font-size: 9px;
    }


    .stats-hero {

        padding-bottom: 45px;
    }


    .stats-hero h1 {

        letter-spacing: 4px;
    }


    .section-title {

        gap: 12px;
    }


    .section-number {

        min-width: 36px;

        height: 36px;
    }


    .section-title h2 {

        font-size: 15px;
    }


    .stat-card {

        grid-template-columns:
            40px
            40px
            1fr;

        padding:
            9px 11px;
    }


    .stat-icon {

        width: 36px;

        height: 36px;
    }


    .points-grid {

        grid-template-columns:
            1fr;
    }

}


@media (max-width: 430px) {

    .point-coordinates {

        grid-template-columns:
            1fr;
    }


    .point-coordinates span {

        padding:
            7px 8px;
    }

}
