:root {
    --background: #08070d;
    --background-soft: #0d0a14;
    --card: #110e19;
    --card-hover: #181222;

    --white: #f5f1ff;
    --gray: #9991a9;
    --muted: #696174;

    --purple: #a66bff;
    --purple-light: #c39aff;
    --purple-dark: #7138c9;

    --line: rgba(190, 145, 255, .12);

    --font: "DM Sans", sans-serif;
    --display: "Space Grotesk", sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    min-height: 100vh;
    overflow-x: hidden;

    background: var(--background);
    color: var(--white);

    font-family: var(--font);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

::selection {
    background: rgba(166, 107, 255, .35);
    color: white;
}


/* BACKGROUND */

.background-effects {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.background-grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(rgba(174, 123, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(174, 123, 255, .025) 1px, transparent 1px);

    background-size: 55px 55px;

    mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.ambient {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;

    filter: blur(120px);
    opacity: .13;

    animation: ambientMove 12s ease-in-out infinite alternate;
}

.ambient-one {
    top: -350px;
    left: -200px;
    background: #792dce;
}

.ambient-two {
    top: 500px;
    right: -400px;
    background: #4c1d91;
    animation-delay: -5s;
}

@keyframes ambientMove {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(80px, 60px) scale(1.2);
    }
}


/* HEADER */

.header {
    max-width: 1280px;
    height: 88px;

    margin: auto;
    padding: 0 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--line);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    color: var(--purple-light);

    border: 1px solid rgba(166, 107, 255, .4);
    border-radius: 11px;

    background: rgba(166, 107, 255, .09);

    box-shadow:
        0 0 18px rgba(166, 107, 255, .13),
        inset 0 0 15px rgba(166, 107, 255, .07);
}

.logo-icon svg {
    width: 27px;
    height: 27px;
}

.logo-name {
    font-family: var(--display);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.7px;

    color: #e8ddff;

    text-shadow: 0 0 16px rgba(166, 107, 255, .25);
}

.logo-name b {
    color: var(--purple-light);
    text-shadow:
        0 0 9px rgba(166, 107, 255, .7),
        0 0 24px rgba(166, 107, 255, .35);
}

.navigation {
    display: flex;
    align-items: center;
    gap: 38px;
}

.navigation a {
    color: var(--gray);
    font-size: 12px;
    font-weight: 600;

    transition: color .3s;
}

.navigation a:hover,
.navigation a.active {
    color: white;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 9px;

    color: var(--gray);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.status-indicator {
    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: var(--purple-light);

    box-shadow: 0 0 12px var(--purple);
}


/* HERO */

.hero {
    max-width: 1280px;
    min-height: 560px;

    margin: auto;
    padding: 120px 40px 90px;

    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-label,
.section-label {
    display: flex;
    align-items: center;
    gap: 11px;

    color: var(--purple-light);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero-label-dot,
.section-label span {
    width: 22px;
    height: 2px;
    background: var(--purple);
    box-shadow: 0 0 10px var(--purple);
}

.hero h1 {
    margin: 29px 0 22px;

    font-family: var(--display);
    font-size: clamp(50px, 7vw, 84px);
    line-height: 1.04;
    letter-spacing: -4px;
    font-weight: 700;
}

.hero h1 span {
    color: var(--purple-light);

    text-shadow:
        0 0 15px rgba(166, 107, 255, .3),
        0 0 45px rgba(166, 107, 255, .13);
}

.hero-description {
    max-width: 450px;

    color: var(--gray);
    font-size: 14px;
    line-height: 1.9;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 23px;

    margin-top: 35px;
    padding: 14px 18px;

    border: 1px solid rgba(183, 133, 255, .5);
    border-radius: 8px;

    background: linear-gradient(
        135deg,
        rgba(166, 107, 255, .23),
        rgba(108, 48, 185, .12)
    );

    color: white;
    font-size: 12px;
    font-weight: 700;

    box-shadow: 0 0 25px rgba(130, 65, 220, .12);

    transition:
        transform .3s,
        box-shadow .3s,
        background .3s;
}

.hero-button:hover {
    transform: translateY(-3px);

    background: rgba(166, 107, 255, .28);

    box-shadow:
        0 0 15px rgba(166, 107, 255, .25),
        0 10px 35px rgba(100, 40, 180, .2);
}

.button-arrow {
    color: var(--purple-light);
    font-size: 18px;
}


/* HERO DECORATION */

.hero-decoration {
    position: absolute;
    width: 400px;
    height: 400px;

    right: 60px;
    top: 90px;

    display: grid;
    place-items: center;
}

.decoration-circle {
    position: absolute;
    border: 1px solid rgba(166, 107, 255, .17);
    border-radius: 50%;
}

.circle-one {
    width: 210px;
    height: 210px;

    box-shadow:
        0 0 55px rgba(166, 107, 255, .12),
        inset 0 0 55px rgba(166, 107, 255, .08);

    animation: circleRotate 25s linear infinite;
}

.circle-two {
    width: 300px;
    height: 300px;
    border-style: dashed;
    opacity: .55;

    animation: circleRotate 45s linear infinite reverse;
}

.circle-three {
    width: 370px;
    height: 370px;
    opacity: .3;
}

.controller-decoration {
    width: 200px;
    z-index: 2;

    filter: drop-shadow(0 0 25px rgba(166, 107, 255, .45));

    animation: controllerFloat 5s ease-in-out infinite;
}

.controller-decoration svg {
    width: 100%;
}

.decoration-caption {
    position: absolute;
    bottom: 22px;

    color: var(--purple-light);
    font: 700 9px var(--display);
    letter-spacing: 4px;
    opacity: .65;
}

@keyframes circleRotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes controllerFloat {
    0%, 100% {
        transform: translateY(0) rotate(-4deg);
    }

    50% {
        transform: translateY(-15px) rotate(4deg);
    }
}

.hero-bottom {
    position: absolute;
    bottom: 30px;
    left: 40px;
    right: 40px;

    display: flex;
    align-items: center;
    gap: 15px;

    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.hero-line {
    height: 1px;
    flex: 1;
    background: var(--line);
}


/* GAMES */

.games-section {
    max-width: 1280px;
    margin: auto;
    padding: 85px 40px 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;

    margin-bottom: 35px;
}

.section-heading h2,
.about-content h2 {
    margin-top: 17px;

    font-family: var(--display);
    font-size: clamp(32px, 4vw, 45px);
    letter-spacing: -2px;
}

.section-heading h2 span {
    color: var(--purple-light);
}

.section-heading p {
    margin-top: 10px;
    color: var(--gray);
    font-size: 12px;
}

.game-counter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.game-counter strong {
    color: var(--purple-light);
    font: 700 30px var(--display);
    text-shadow: 0 0 18px rgba(166, 107, 255, .35);
}

.game-counter span {
    color: var(--muted);
    font-size: 8px;
    line-height: 1.6;
    letter-spacing: 1px;
}

.games-list {
    display: grid;
    gap: 20px;
}


/* GAME CARD */

.game-card {
    display: grid;
    grid-template-columns: 43% 1fr;

    min-height: 280px;
    overflow: hidden;

    border: 1px solid var(--line);
    border-radius: 14px;

    background: linear-gradient(110deg, #100d18, #100d16 65%, #130e1e);

    opacity: 0;
    transform: translateY(22px);

    transition:
        opacity .7s,
        transform .5s,
        border-color .4s,
        box-shadow .4s,
        background .4s;
}

.game-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.game-card:hover {
    transform: translateY(-5px);

    border-color: rgba(166, 107, 255, .4);

    background: linear-gradient(110deg, #151020, #120e1c 65%, #1b1129);

    box-shadow:
        0 15px 55px rgba(0, 0, 0, .3),
        0 0 30px rgba(115, 55, 185, .08);
}


/* GAME ART */

.game-art {
    min-height: 280px;
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(ellipse at 70% 40%, rgba(143, 81, 225, .33), transparent 35%),
        radial-gradient(ellipse at 20% 90%, rgba(75, 42, 125, .38), transparent 45%),
        linear-gradient(135deg, #241735, #100d18 65%, #0b0910);
}

.game-art img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .8s, filter .8s;
}

.game-card:hover .game-art img {
    transform: scale(1.06);
    filter: brightness(1.13);
}

.game-art::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(90deg, transparent 55%, rgba(10, 8, 15, .25)),
        linear-gradient(0deg, rgba(10, 8, 15, .5), transparent 45%);

    pointer-events: none;
}

.art-grid {
    position: absolute;
    inset: 0;

    opacity: .22;

    background-image:
        linear-gradient(rgba(198, 155, 255, .13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(198, 155, 255, .13) 1px, transparent 1px);

    background-size: 35px 35px;

    mask-image: linear-gradient(to top, black, transparent);
}

.art-orb {
    position: absolute;
    width: 175px;
    height: 175px;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    border: 1px solid rgba(201, 165, 255, .32);
    border-radius: 50%;

    box-shadow:
        0 0 60px rgba(166, 107, 255, .15),
        inset 0 0 50px rgba(166, 107, 255, .12);

    animation: orbPulse 5s ease-in-out infinite;
}

.art-orb::before,
.art-orb::after {
    content: "";

    position: absolute;
    inset: 20px;

    border: 1px solid rgba(201, 165, 255, .2);
    border-radius: 50%;
}

.art-orb::after {
    inset: 45px;
}

.art-cross {
    position: absolute;
    width: 80px;
    height: 80px;

    left: 18%;
    bottom: 18%;

    opacity: .45;
}

.art-cross::before,
.art-cross::after {
    content: "";
    position: absolute;
    background: var(--purple-light);
}

.art-cross::before {
    width: 100%;
    height: 1px;
    top: 50%;
}

.art-cross::after {
    height: 100%;
    width: 1px;
    left: 50%;
}

.art-label,
.art-number {
    position: absolute;
    z-index: 2;

    color: rgba(231, 213, 255, .7);
    font: 700 9px var(--display);
    letter-spacing: 2px;
}

.art-label {
    left: 24px;
    bottom: 22px;
}

.art-number {
    right: 23px;
    top: 22px;
    opacity: .7;
}

@keyframes orbPulse {
    0%, 100% {
        opacity: .75;
        scale: 1;
    }

    50% {
        opacity: 1;
        scale: 1.07;
    }
}


/* GAME CONTENT */

.game-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 29px 32px 27px;
}

.game-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.game-category {
    color: var(--purple-light);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.game-state {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #96909f;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

.game-state::before {
    content: "";

    width: 6px;
    height: 6px;

    border-radius: 50%;
    background: #77717f;
}

.game-state.active {
    color: #8de3b2;
}

.game-state.active::before {
    background: #8de3b2;
    box-shadow: 0 0 10px rgba(141, 227, 178, .6);
}

.game-title {
    margin: 23px 0 9px;

    font: 700 clamp(23px, 3vw, 33px) var(--display);
    letter-spacing: -1.3px;
}

.game-description {
    max-width: 470px;

    color: var(--gray);
    font-size: 12px;
    line-height: 1.8;
}

.game-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-top: 25px;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.game-tag {
    padding: 7px 10px;

    border: 1px solid rgba(166, 107, 255, .17);
    border-radius: 6px;

    background: rgba(166, 107, 255, .045);

    color: #b8a8d0;
    font-size: 9px;
    font-weight: 600;
}

.game-button {
    min-width: 145px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;

    padding: 12px 15px;

    border: 1px solid rgba(166, 107, 255, .45);
    border-radius: 7px;

    background: rgba(166, 107, 255, .13);
    color: var(--purple-light);

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .3s,
        color .3s,
        transform .3s,
        border-color .3s;
}

.game-button:not(:disabled):hover {
    transform: translateY(-2px);

    background: var(--purple);
    color: white;

    border-color: var(--purple);

    box-shadow: 0 0 22px rgba(166, 107, 255, .3);
}

.game-button:disabled {
    cursor: not-allowed;

    color: #898193;
    background: rgba(255, 255, 255, .035);
    border-color: rgba(255, 255, 255, .09);
}

.game-button .arrow {
    font-size: 16px;
    transition: transform .3s;
}

.game-button:not(:disabled):hover .arrow {
    transform: translate(3px, -2px);
}


/* CATALOG FOOTER */

.catalog-footer {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-top: 26px;

    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.catalog-line {
    height: 1px;
    flex: 1;
    background: var(--line);
}


/* ABOUT */

.about-section {
    max-width: 1200px;

    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 85px;
    align-items: center;

    margin: 150px auto 0;
    padding: 80px 40px 100px;

    border-top: 1px solid var(--line);
}

.about-visual {
    min-height: 330px;

    display: grid;
    place-items: center;

    position: relative;
    overflow: hidden;

    border: 1px solid var(--line);
    border-radius: 18px;

    background:
        radial-gradient(circle at center, rgba(113, 56, 201, .19), transparent 60%),
        #100d18;
}

.about-glow {
    position: absolute;

    width: 220px;
    height: 220px;

    border-radius: 50%;
    background: var(--purple-dark);

    filter: blur(100px);
    opacity: .35;
}

.about-controller {
    position: relative;
    z-index: 1;

    width: 200px;

    filter: drop-shadow(0 0 30px rgba(166, 107, 255, .45));

    animation: controllerFloat 5s ease-in-out infinite;
}

.about-controller svg {
    width: 100%;
}

.about-visual-caption {
    position: absolute;
    bottom: 24px;

    color: var(--purple-light);
    font: 700 9px var(--display);
    letter-spacing: 4px;
    opacity: .65;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content h2 span {
    color: var(--purple-light);

    text-shadow: 0 0 25px rgba(166, 107, 255, .2);
}

.about-content p {
    max-width: 520px;

    margin-bottom: 14px;

    color: var(--gray);
    font-size: 13px;
    line-height: 1.95;
}

.about-signature {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 27px;

    color: var(--purple-light);
    font: 700 9px var(--display);
    letter-spacing: 2px;
}

.signature-line {
    width: 30px;
    height: 2px;

    background: var(--purple);
    box-shadow: 0 0 10px var(--purple);
}


/* FOOTER */

.footer {
    max-width: 1280px;
    min-height: 95px;

    margin: auto;
    padding: 0 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    border-top: 1px solid var(--line);

    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.footer-logo .logo-icon {
    width: 33px;
    height: 33px;
}

.footer-logo .logo-name {
    font-size: 16px;
}

.footer-center {
    text-align: center;
}


/* MOBILE */

@media (max-width: 850px) {

    .hero-decoration {
        right: -50px;
        opacity: .45;
    }

    .about-section {
        gap: 40px;
    }
}


@media (max-width: 650px) {

    .header {
        height: 72px;
        padding: 0 20px;
    }

    .logo-name {
        font-size: 16px;
    }

    .logo-icon {
        width: 34px;
        height: 34px;
    }

    .navigation,
    .header-status {
        display: none;
    }

    .hero {
        min-height: 520px;
        padding: 105px 22px 80px;
    }

    .hero h1 {
        font-size: clamp(43px, 12vw, 65px);
        letter-spacing: -3px;
    }

    .hero-description {
        max-width: 340px;
        font-size: 13px;
    }

    .hero-decoration {
        width: 240px;
        height: 240px;

        top: 260px;
        right: -55px;

        opacity: .22;
    }

    .circle-one {
        width: 140px;
        height: 140px;
    }

    .circle-two {
        width: 190px;
        height: 190px;
    }

    .circle-three {
        width: 230px;
        height: 230px;
    }

    .controller-decoration {
        width: 125px;
    }

    .decoration-caption {
        display: none;
    }

    .hero-bottom {
        left: 22px;
        right: 22px;
        bottom: 25px;
        font-size: 7px;
    }

    .games-section {
        padding: 55px 20px 0;
    }

    .section-heading {
        align-items: end;
    }

    .section-heading h2 {
        font-size: 33px;
    }

    .section-heading p {
        max-width: 230px;
        line-height: 1.6;
    }

    .game-counter {
        gap: 7px;
    }

    .game-counter strong {
        font-size: 23px;
    }

    .game-card {
        grid-template-columns: 1fr;
    }

    .game-art {
        min-height: 210px;
    }

    .game-content {
        min-height: 245px;
        padding: 22px 20px 20px;
    }

    .game-title {
        margin-top: 19px;
    }

    .game-bottom {
        align-items: end;
    }

    .game-button {
        min-width: 125px;
        padding: 11px 10px;
        gap: 7px;
    }

    .game-tags {
        max-width: 160px;
    }

    .about-section {
        grid-template-columns: 1fr;
        gap: 35px;

        margin: 100px 20px 0;
        padding: 55px 0 65px;
    }

    .about-visual {
        min-height: 245px;
    }

    .about-controller {
        width: 160px;
    }

    .about-content h2 {
        font-size: 34px;
    }

    .footer {
        min-height: 85px;
        padding: 15px 20px;
        flex-wrap: wrap;
    }

    .footer-center {
        display: none;
    }

    .footer-copy {
        font-size: 7px;
    }
}


/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}