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

:root {
    --bg: #060507;
    --panel: #0d0912;
    --purple: #8b3dff;
    --purple-light: #c18bff;
    --white: #ffffff;
    --muted: rgba(255,255,255,.58);
    --line: rgba(255,255,255,.08);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    color: var(--white);

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

    background:
        radial-gradient(
            circle at 15% 8%,
            rgba(139,61,255,.17),
            transparent 30%
        ),
        radial-gradient(
            circle at 88% 85%,
            rgba(105,43,199,.14),
            transparent 30%
        ),
        var(--bg);

    overflow-x: hidden;
}

body::before {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255,255,255,.016) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.016) 1px,
            transparent 1px
        );

    background-size: 70px 70px;

    z-index: -1;
}

a {
    color: inherit;
}

/* HEADER */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(6,5,8,.72);

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

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.nav {
    width: min(1220px, calc(100% - 40px));

    min-height: 76px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;
}

.brand {
    display: flex;

    align-items: center;

    gap: 11px;

    color: #fff;

    text-decoration: none;

    font-size: 1.1rem;
    font-weight: 800;

    letter-spacing: -.04em;
}

.brand img {
    width: 39px;
    height: 39px;

    object-fit: contain;
}

nav {
    display: flex;

    align-items: center;

    gap: 5px;
}

nav a {
    padding: 10px 14px;

    border-radius: 11px;

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

    text-decoration: none;

    font-size: .88rem;

    font-weight: 600;

    transition:
        color .2s ease,
        background .2s ease;
}

nav a:hover,
nav a.active {
    color: #fff;

    background:
        rgba(255,255,255,.07);
}

/* HERO */

.hero {
    position: relative;

    padding: 110px 20px 85px;

    text-align: center;

    overflow: hidden;
}

.hero-glow {
    position: absolute;

    width: 500px;
    height: 500px;

    left: 50%;
    top: -180px;

    transform: translateX(-50%);

    border-radius: 50%;

    background:
        rgba(137,54,255,.18);

    filter: blur(100px);

    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;

    width: min(900px, 100%);

    margin: auto;
}

.eyebrow {
    color: var(--purple-light);

    font-size: .7rem;

    font-weight: 800;

    letter-spacing: .2em;

    text-transform: uppercase;
}

.hero h1 {
    margin-top: 18px;

    font-size:
        clamp(4rem, 10vw, 8rem);

    line-height: .85;

    letter-spacing: -.09em;

    font-weight: 800;
}

.hero h1 span {
    display: block;

    background:
        linear-gradient(
            135deg,
            #fff 10%,
            #d5b4ff 50%,
            #8137e9 90%
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.hero p {
    max-width: 650px;

    margin: 27px auto 0;

    color: var(--muted);

    font-size: 1.08rem;

    line-height: 1.8;
}

/* GAMES */

.games-section {
    width: min(1220px, calc(100% - 40px));

    margin: auto;

    padding: 15px 0 100px;
}

.section-header {
    display: flex;

    align-items: end;

    justify-content: space-between;

    gap: 30px;

    padding-bottom: 30px;

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

.section-label {
    color: rgba(255,255,255,.29);

    font-size: .67rem;

    font-weight: 800;

    letter-spacing: .18em;
}

.section-header h2 {
    margin-top: 12px;

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

    line-height: .95;

    letter-spacing: -.07em;
}

.game-count {
    color: #c18bff;

    font-size: .7rem;

    font-weight: 800;

    letter-spacing: .15em;
}

.games-grid {
    display: grid;

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

    gap: 17px;

    padding-top: 25px;
}

.game-card {
    position: relative;

    min-height: 365px;

    padding: 27px;

    display: flex;

    flex-direction: column;

    overflow: hidden;

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

    border-radius: 26px;

    background:
        radial-gradient(
            circle at 85% 12%,
            rgba(142,60,255,.13),
            transparent 34%
        ),
        rgba(255,255,255,.025);

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

.game-card:hover {
    transform: translateY(-6px);

    border-color:
        rgba(174,91,255,.36);

    background:
        radial-gradient(
            circle at 85% 12%,
            rgba(142,60,255,.18),
            transparent 36%
        ),
        rgba(255,255,255,.035);
}

.game-card.featured {
    border-color:
        rgba(162,83,255,.25);

    background:
        radial-gradient(
            circle at 50% 25%,
            rgba(142,60,255,.17),
            transparent 43%
        ),
        rgba(255,255,255,.03);
}

.game-card.special {
    background:
        radial-gradient(
            circle at 75% 15%,
            rgba(108,54,255,.16),
            transparent 35%
        ),
        rgba(255,255,255,.025);
}

.card-top {
    display: flex;

    justify-content: space-between;

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

    font-size: .65rem;

    font-weight: 800;

    letter-spacing: .15em;
}

.game-icon {
    margin-top: 48px;

    width: 62px;
    height: 62px;

    display: grid;

    place-items: center;

    border-radius: 18px;

    background:
        rgba(139,61,255,.13);

    border:
        1px solid rgba(180,103,255,.1);

    font-size: 1.65rem;
}

.game-content {
    margin-top: auto;
}

.tag {
    display: inline-block;

    margin-bottom: 9px;

    padding: 5px 9px;

    border-radius: 999px;

    color: #c99eff;

    background:
        rgba(139,61,255,.10);

    font-size: .6rem;

    font-weight: 800;

    letter-spacing: .1em;
}

.game-content h3 {
    font-size: 1.45rem;

    line-height: 1.1;

    letter-spacing: -.04em;
}

.game-content p {
    min-height: 48px;

    margin-top: 10px;

    color: var(--muted);

    font-size: .86rem;

    line-height: 1.65;
}

.play-button {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-top: 18px;

    padding: 12px 15px;

    border-radius: 13px;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #9f51ff,
            #6d27d5
        );

    text-decoration: none;

    font-size: .82rem;

    font-weight: 800;

    box-shadow:
        0 14px 32px
        rgba(111,37,210,.2);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.play-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 18px 40px
        rgba(111,37,210,.3);
}

.play-button span {
    font-size: 1rem;
}

/* FOOTER */

footer {
    margin-top: 25px;

    padding: 35px 20px 22px;

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

    background:
        rgba(0,0,0,.18);
}

.footer-inner {
    width: min(1220px, 100%);

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.footer-brand {
    display: flex;

    align-items: center;

    gap: 10px;

    text-decoration: none;

    font-weight: 800;
}

.footer-brand img {
    width: 34px;
    height: 34px;

    object-fit: contain;
}

.footer-links {
    display: flex;

    flex-wrap: wrap;

    gap: 18px;
}

.footer-links a {
    color: rgba(255,255,255,.4);

    text-decoration: none;

    font-size: .82rem;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    width: min(1220px, 100%);

    margin: 25px auto 0;

    padding-top: 18px;

    border-top:
        1px solid rgba(255,255,255,.06);

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

    font-size: .74rem;
}

/* MAINTENANCE */

#maintenance {
    display: none;

    min-height: 100vh;

    align-items: center;
    justify-content: center;

    padding: 25px;
}

.maintenance-card {
    width: min(650px, 100%);

    padding: 55px 35px;

    text-align: center;

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

    border-radius: 30px;

    background:
        radial-gradient(
            circle at 50% 0,
            rgba(139,61,255,.14),
            transparent 45%
        ),
        rgba(255,255,255,.03);
}

.maintenance-card img {
    width: 75px;
    height: 75px;

    margin: 0 auto 25px;

    object-fit: contain;
}

.maintenance-card h1 {
    margin-top: 17px;

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

    line-height: .9;

    letter-spacing: -.07em;
}

.maintenance-card p {
    max-width: 470px;

    margin: 20px auto 28px;

    color: var(--muted);

    line-height: 1.8;
}

.maintenance-card .play-button {
    width: fit-content;

    margin: auto;
}

/* RESPONSIVE */

@media (max-width: 950px) {

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

@media (max-width: 700px) {

    .nav {
        width: calc(100% - 28px);

        min-height: 68px;
    }

    nav a {
        padding: 8px 7px;

        font-size: .72rem;
    }

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

    .section-header {
        align-items: start;

        flex-direction: column;
    }

    .hero {
        padding-top: 85px;
    }

    .games-section {
        width: calc(100% - 28px);
    }

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

    .footer-inner {
        align-items: flex-start;

        flex-direction: column;
    }
}

@media (max-width: 470px) {

    nav {
        gap: 0;
    }

    nav a {
        padding: 7px 5px;

        font-size: .65rem;
    }

    .brand span {
        display: none;
    }

    .hero h1 {
        font-size: 4rem;
    }
}
