/* ==========================================
   RESET
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    background: #050505;

    color: #ffffff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    overflow-x: hidden;
}


a {
    color: inherit;
    text-decoration: none;
}


button {
    font-family: inherit;
}


/* ==========================================
   HEADER
========================================== */

.header {
    position: sticky;

    top: 0;

    z-index: 1000;

    width: 100%;

    background: rgba(5, 5, 5, .94);

    border-bottom: 1px solid #191919;

    backdrop-filter: blur(15px);
}


.header-inner {
    width: 100%;

    min-height: 72px;

    padding: 0 5%;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* ==========================================
   LOGO
========================================== */

.logo,
.footer-logo {
    font-size: 25px;

    font-weight: 900;

    letter-spacing: 3px;
}


.logo span,
.footer-logo span {
    color: #8cff00;
}


/* ==========================================
   HEADER GAME COUNT
========================================== */

.header-right {
    display: flex;

    align-items: center;
}


.game-total {
    display: flex;

    align-items: baseline;

    gap: 8px;

    color: #666;

    font-size: 10px;

    letter-spacing: 2px;
}


.game-total b {
    color: #8cff00;

    font-size: 22px;

    letter-spacing: 0;
}


/* ==========================================
   INTRO
========================================== */

.games-intro {
    min-height: 430px;

    display: flex;

    align-items: center;

    padding:
        100px 5% 70px;

    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 70% 40%,
            rgba(140, 255, 0, .12),
            transparent 35%
        ),
        #050505;
}


.games-intro::before {
    content: "";

    position: absolute;

    width: 500px;

    height: 500px;

    border-radius: 50%;

    background: #8cff00;

    opacity: .05;

    filter: blur(130px);

    right: 5%;

    top: 0;
}


.intro-content {
    position: relative;

    z-index: 2;

    max-width: 1000px;
}


.section-label {
    margin-bottom: 20px;

    color: #8cff00;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 5px;
}


.intro-content h1 {
    margin: 0;

    font-size:
        clamp(60px, 10vw, 135px);

    line-height: .82;

    font-weight: 900;

    letter-spacing: -7px;
}


.intro-content h1 span {
    color: #8cff00;
}


.intro-content p {
    max-width: 500px;

    margin-top: 35px;

    color: #777;

    font-size: 14px;

    line-height: 1.8;
}


/* ==========================================
   GAMES SECTION
========================================== */

.games-section {
    padding:
        20px 5% 120px;
}


.games-grid {

    /*
        DESKTOP:
        7 GAMES PER ROW
    */

    display: grid;

    grid-template-columns:
        repeat(7, minmax(0, 1fr));

    gap: 16px;
}


/* ==========================================
   GAME CARD
========================================== */

.game-card {
    position: relative;

    width: 100%;

    aspect-ratio: 3 / 4;

    overflow: hidden;

    border-radius: 10px;

    background: #111;

    cursor: pointer;

    border: 1px solid #191919;

    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}


.game-card:hover {
    transform:
        translateY(-7px)
        scale(1.015);

    border-color: #8cff00;

    box-shadow:
        0 18px 45px
        rgba(0, 0, 0, .55);
}


/* ==========================================
   GAME IMAGE
========================================== */

.game-card-image {
    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .5s ease;
}


.game-card:hover
.game-card-image {
    transform: scale(1.06);
}


/* ==========================================
   CARD GRADIENT
========================================== */

.game-card::after {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, .88),
            rgba(0, 0, 0, 0) 55%
        );
}


/* ==========================================
   GAME NUMBER
========================================== */

.game-number {
    position: absolute;

    top: 10px;

    left: 10px;

    z-index: 3;

    width: 30px;

    height: 24px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 5px;

    background:
        rgba(0, 0, 0, .55);

    color: #ffffff;

    font-size: 9px;

    font-weight: 700;

    backdrop-filter: blur(5px);
}


/* ==========================================
   GAME INFO
========================================== */

.game-info {
    position: absolute;

    left: 12px;

    right: 12px;

    bottom: 12px;

    z-index: 3;
}


.game-info h3 {
    margin: 0;

    color: #ffffff;

    font-size: 12px;

    font-weight: 800;

    line-height: 1.2;
}


.game-info p {
    margin-top: 4px;

    color: #999;

    font-size: 8px;
}


/* ==========================================
   IMAGE ERROR
========================================== */

.game-card.image-error {
    background:
        radial-gradient(
            circle at center,
            #273600,
            #101010
        );
}


.game-card.image-error::before {
    content: "GAME";

    position: absolute;

    inset: 0;

    z-index: 1;

    display: flex;

    align-items: center;

    justify-content: center;

    color: rgba(140,255,0,.25);

    font-size: 35px;

    font-weight: 900;
}


/* ==========================================
   LOAD MORE
========================================== */

.load-more-wrapper {
    display: flex;

    justify-content: center;

    margin-top: 55px;
}


.load-more {
    min-width: 180px;

    height: 52px;

    padding: 0 30px;

    border: 1px solid #333;

    border-radius: 100px;

    outline: none;

    background: transparent;

    color: #ffffff;

    cursor: pointer;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;

    transition:
        background .3s ease,
        color .3s ease,
        border-color .3s ease,
        transform .3s ease;
}


.load-more:hover {
    background: #8cff00;

    color: #000;

    border-color: #8cff00;

    transform: translateY(-3px);
}


/* ==========================================
   FOOTER
========================================== */

footer {
    padding:
        45px 5%;

    border-top: 1px solid #181818;

    background: #030303;
}


.footer-inner {
    display: flex;

    align-items: center;

    justify-content: space-between;
}


.footer-logo {
    font-size: 20px;
}


.footer-copy {
    color: #555;

    font-size: 9px;

    letter-spacing: .5px;
}


/* ==========================================
   LARGE TABLET
========================================== */

@media (max-width: 1200px) {

    .games-grid {
        grid-template-columns:
            repeat(5, minmax(0, 1fr));
    }

}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 900px) {

    .header-inner {
        min-height: 65px;
    }


    .games-intro {
        min-height: 360px;

        padding:
            80px 5% 60px;
    }


    .games-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap: 14px;
    }


    .game-info h3 {
        font-size: 11px;
    }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

    .header-inner {
        padding: 0 18px;
    }


    .logo {
        font-size: 20px;
    }


    .game-total b {
        font-size: 18px;
    }


    .games-intro {
        min-height: 320px;

        padding:
            70px 18px 50px;
    }


    .intro-content h1 {
        font-size: 57px;

        letter-spacing: -4px;
    }


    .intro-content p {
        font-size: 12px;
    }


    .games-section {
        padding:
            10px 14px 80px;
    }


    /*
        MOBILE:
        2 GAMES PER ROW
    */

    .games-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }


    .game-card {
        border-radius: 8px;
    }


    .game-number {
        top: 7px;

        left: 7px;

        width: 27px;

        height: 21px;

        font-size: 8px;
    }


    .game-info {
        left: 9px;

        right: 9px;

        bottom: 9px;
    }


    .game-info h3 {
        font-size: 10px;
    }


    .game-info p {
        font-size: 7px;
    }


    .load-more {
        min-width: 160px;

        height: 48px;
    }


    .footer-inner {
        flex-direction: column;

        gap: 18px;

        text-align: center;
    }

}


/* ==========================================
   VERY SMALL MOBILE
========================================== */

@media (max-width: 360px) {

    .games-grid {
        gap: 8px;
    }


    .intro-content h1 {
        font-size: 49px;
    }

}