* {
    box-sizing: border-box
}

:root {
    --bg: #050914;
    --blue: #087bff;
    --cyan: #28c5ff;
    --white: #f4f7ff;
    --muted: #8d9bb2;
    --line: rgba(116, 164, 226, .17);
    --head: 'Orbitron', sans-serif;
    --body: 'Rajdhani', sans-serif
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--white);
    font-family: var(--body);
    overflow-x: hidden
}

a {
    color: inherit;
    text-decoration: none
}

.topbar {
    height: 82px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
    background: #040914eF;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(15px)
}

.brand {
    width: 170px
}

.brand img {
    width: 100%;
    display: block
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
    font: 10px var(--head);
    letter-spacing: 1px;
    color: #a8b8cd
}

.nav a:hover,
.nav a.active {
    color: #fff
}

.nav a.active {
    position: relative
}

.nav a.active:after {
    content: "";
    height: 2px;
    background: var(--blue);
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0
}

.nav-join {
    padding: 13px 16px;
    border: 1px solid var(--blue);
    color: white !important
}

.menu-toggle {
    display: none;
    background: none;
    border: 0
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 5px
}

.library-hero {
    min-height: 430px;
    padding: 80px 8% 70px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 78% 45%, #006ee72b, transparent 38%), linear-gradient(115deg, #050914, #09172a)
}

.library-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(#76aaff0a 1px, transparent 1px), linear-gradient(90deg, #76aaff0a 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(90deg, black, transparent)
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px
}

.eyebrow {
    font: 9px var(--head);
    letter-spacing: 3px;
    color: #42bfff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px
}

.pulse {
    width: 7px;
    height: 7px;
    background: #24caff;
    border-radius: 50%;
    box-shadow: 0 0 13px #24caff
}

.library-hero h1 {
    font: 900 clamp(36px, 5.5vw, 67px)/1.12 var(--head);
    letter-spacing: -2px;
    margin: 0
}

.library-hero h1 span {
    color: #168bff;
    text-shadow: 0 0 35px #087bff40
}

.library-hero p {
    font-size: 18px;
    color: #9baec6;
    line-height: 1.5;
    max-width: 560px;
    margin: 20px 0 23px
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #7f96b4;
    font: 8px var(--head);
    letter-spacing: 1.5px
}

.hero-meta i {
    width: 4px;
    height: 4px;
    background: #168bff;
    border-radius: 50%
}

.hero-emblem {
    position: absolute;
    right: 13%;
    top: 50%;
    transform: translateY(-50%);
    width: 245px;
    height: 245px;
    border: 1px solid #168bff55;
    border-radius: 50%;
    display: grid;
    place-content: center;
    text-align: center;
    box-shadow: 0 0 0 25px #168bff0b, 0 0 0 50px #168bff08, 0 0 70px #087bff19
}

.ring {
    position: absolute;
    border: 1px dashed #36b5ff55;
    border-radius: 50%;
    inset: 16px;
    animation: spin 24s linear infinite
}

.ring-two {
    inset: -18px;
    border-style: solid;
    border-color: #168bff24;
    animation-direction: reverse
}

.ps-mark {
    font: 900 88px var(--head);
    letter-spacing: -9px;
    color: #fff;
    text-shadow: 0 0 30px #168bff
}

.ps-mark span {
    color: #168bff
}

.hero-emblem small {
    font: 8px var(--head);
    letter-spacing: 3px;
    color: #8bbce7;
    margin-top: 8px
}

.hero-bottom {
    position: absolute;
    bottom: 20px;
    left: 8%;
    right: 8%;
    display: flex;
    justify-content: space-between;
    color: #607895;
    font: 8px var(--head);
    letter-spacing: 1.8px
}

.catalog {
    padding: 76px 8% 85px;
    max-width: 1600px;
    margin: auto
}

.catalog-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 27px
}

.catalog-head h2 {
    font: 800 clamp(26px, 3.5vw, 40px) var(--head);
    letter-spacing: -1px;
    margin: 0
}

.catalog-head h2 span {
    color: #168bff
}

.catalog-count {
    text-align: right
}

.catalog-count strong {
    display: block;
    font: 700 25px var(--head);
    color: #fff
}

.catalog-count span {
    font: 8px var(--head);
    letter-spacing: 1px;
    color: #8197b3
}

.toolbar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 27px
}

.search-box {
    height: 48px;
    border: 1px solid #263c59;
    background: #091321;
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 12px;
    max-width: 100%
}

.search-box>span {
    font-size: 25px;
    color: #46baff
}

.search-box input {
    background: none;
    border: 0;
    outline: 0;
    color: white;
    flex: 1;
    min-width: 0;
    font: 15px var(--body)
}

.search-box input::placeholder {
    color: #6e819b
}

.search-box kbd {
    font: 8px var(--head);
    color: #7086a3;
    border: 1px solid #263c59;
    padding: 5px 7px
}

.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.filter {
    border: 1px solid #243751;
    background: transparent;
    color: #8ea3bd;
    padding: 10px 15px;
    font: 9px var(--head);
    letter-spacing: .5px;
    cursor: pointer;
    transition: .2s
}

.filter:hover,
.filter.active {
    background: #087bff;
    color: white;
    border-color: #087bff;
    box-shadow: 0 5px 20px #087bff26
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px
}

.game-card {
    background: #091321;
    border: 1px solid #1c3049;
    min-width: 0;
    transition: .25s;
    overflow: hidden
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: #168bff;
    box-shadow: 0 15px 40px #006bff20
}

.cover {
    height: 255px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    isolation: isolate
}

.cover:before,
.cover:after {
    content: "";
    position: absolute;
    z-index: -1
}

.cover:before {
    inset: 0;
    background: radial-gradient(circle at 50% 25%, #ffffff2b, transparent 45%), linear-gradient(145deg, transparent, #0008)
}

.cover:after {
    width: 180px;
    height: 180px;
    border: 1px solid #ffffff2b;
    transform: rotate(45deg);
    box-shadow: 0 0 0 18px #ffffff09, 0 0 0 38px #ffffff06
}

.cover-kicker,
.cover small {
    font: 7px var(--head);
    letter-spacing: 2px;
    color: #ffffffb8
}

.cover b {
    font: 900 clamp(24px, 2.4vw, 34px)/.98 var(--head);
    letter-spacing: -1.5px;
    color: #fff;
    text-shadow: 0 3px 15px #0009;
    margin: 17px 0;
    position: relative
}

.cover b em {
    font-style: normal;
    color: #fff
}

.cover small {
    font-size: 7px
}

.cover-symbol {
    position: absolute;
    right: 12px;
    bottom: 5px;
    font: 900 50px var(--head);
    color: #ffffff23
}

.cover-spider {
    background: linear-gradient(145deg, #a50924, #071a37 75%)
}

.cover-spider b em {
    color: #ff405d
}

.cover-gow {
    background: linear-gradient(145deg, #6b4930, #152e3c 65%, #10121c)
}

.cover-gow b em {
    color: #c5e5ef
}

.cover-horizon {
    background: linear-gradient(145deg, #b85c35, #145d68 58%, #14232e)
}

.cover-horizon b em {
    color: #ffd18c;
    font-size: .58em
}

.cover-elden {
    background: linear-gradient(145deg, #65522d, #171b19 70%)
}

.cover-elden b em {
    color: #d9b86c
}

.cover-gt {
    background: linear-gradient(145deg, #1a4d80, #0a1727 65%)
}

.cover-gt b em {
    color: #83c9ff
}

.cover-last {
    background: linear-gradient(145deg, #4d5942, #1c2925 70%)
}

.cover-last b em {
    color: #b7c9a4
}

.cover-ff {
    background: linear-gradient(145deg, #a4a5b3, #38435c 55%, #111725)
}

.cover-ff b em {
    color: #dfe8f7
}

.cover-re {
    background: linear-gradient(145deg, #8b8377, #2b2c30 60%, #101117)
}

.cover-re b {
    font-family: Georgia, serif;
    text-transform: uppercase
}

.cover-re b em {
    color: #d9d4c7
}

.cover-mk {
    background: linear-gradient(145deg, #9a4a17, #271719 65%, #090b12)
}

.cover-mk b em {
    color: #ffb66c
}

.cover-fc {
    background: linear-gradient(145deg, #17654c, #0b2927 65%, #071014)
}

.cover-fc b em {
    color: #8fffc3
}

.cover-ghost {
    background: linear-gradient(145deg, #a33d31, #33313a 60%, #10131a)
}

.cover-ghost b em {
    color: #f0b5a2;
    font-size: .7em
}

.cover-cyber {
    background: linear-gradient(145deg, #e3bc2e, #754b1b 55%, #171324)
}

.cover-cyber b {
    color: #15151d
}

.cover-cyber b em {
    color: #f5e8c0
}

.cover-cyber .cover-kicker,
.cover-cyber small {
    color: #191923
}

.card-info {
    padding: 14px 15px 15px
}

.card-top,
.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px
}

.genre,
.year,
.platform,
.exclusive,
.award,
.tag {
    font: 7px var(--head);
    letter-spacing: .8px
}

.genre {
    color: #4dbbff
}

.year {
    color: #7186a0
}

.card-info h3 {
    font: 600 16px var(--body);
    margin: 10px 0 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.platform {
    color: #fff;
    background: #182c45;
    padding: 6px 8px
}

.exclusive,
.award,
.tag {
    color: #63c5ff;
    text-align: right;
    font-size: 6px
}

.award {
    color: #d8bd75
}

.empty-state {
    text-align: center;
    padding: 65px 15px;
    border: 1px dashed #29415e;
    margin-top: 15px
}

.empty-state>div {
    font-size: 40px;
    color: #168bff
}

.empty-state h3 {
    font: 700 19px var(--head)
}

.empty-state p {
    color: #8296b1
}

.empty-state button {
    background: #087bff;
    border: 0;
    color: white;
    padding: 12px 18px;
    font: 9px var(--head);
    cursor: pointer
}

.catalog-note {
    font-size: 12px;
    color: #667b96;
    margin-top: 28px;
    line-height: 1.5
}

.library-cta {
    padding: 60px 8%;
    background: linear-gradient(100deg, #08182c, #07101e);
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px
}

.library-cta h2 {
    font: 800 clamp(28px, 4vw, 43px)/1.2 var(--head);
    margin: 0
}

.library-cta h2 span {
    color: #168bff
}

.cta-button {
    font: 9px var(--head);
    letter-spacing: 1px;
    padding: 17px 20px;
    background: #087bff;
    white-space: nowrap
}

.cta-button span {
    margin-left: 20px
}

.footer {
    padding: 25px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #030711;
    border-top: 1px solid var(--line)
}

.footer-brand {
    font: 900 13px var(--head);
    letter-spacing: 1px
}

.footer-brand span {
    display: block;
    color: #168bff;
    font-size: 7px;
    letter-spacing: 3px;
    margin-top: 4px
}

.footer p,
.back-top {
    font: 7px var(--head);
    letter-spacing: 1px;
    color: #71829a
}

.back-top {
    color: #4abaff
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

@media(max-width:1050px) {
    .game-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }

    .hero-emblem {
        right: 7%;
        opacity: .65
    }
}

@media(max-width:720px) {
    .topbar {
        height: 70px;
        padding: 0 6%
    }

    .brand {
        width: 145px
    }

    .menu-toggle {
        display: block
    }

    .nav {
        display: none;
        position: absolute;
        top: 69px;
        left: 0;
        right: 0;
        background: #07101e;
        padding: 18px 6%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border-bottom: 1px solid var(--line)
    }

    .nav.open {
        display: flex
    }

    .nav a {
        padding: 14px 0;
        border-bottom: 1px solid #ffffff0d
    }

    .nav a.active:after {
        display: none
    }

    .nav-join {
        margin-top: 12px;
        text-align: center;
        border-bottom: 1px solid var(--blue) !important;
    }

    .library-hero {
        padding: 68px 7% 65px;
        min-height: 390px
    }

    .library-hero h1 {
        font-size: clamp(34px, 9vw, 52px)
    }

    .library-hero p {
        font-size: 16px;
        max-width: 90%
    }

    .hero-emblem {
        width: 155px;
        height: 155px;
        right: -28px;
        top: 62%;
        opacity: .2
    }

    .ps-mark {
        font-size: 55px
    }

    .hero-bottom {
        left: 7%;
        right: 7%;
        font-size: 6px
    }

    .catalog {
        padding: 60px 6%
    }

    .catalog-head h2 {
        font-size: 28px
    }

    .game-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px
    }

    .cover {
        height: 220px;
        padding: 12px
    }

    .cover b {
        font-size: clamp(19px, 5vw, 28px)
    }

    .card-info {
        padding: 11px
    }

    .card-info h3 {
        font-size: 14px
    }

    .genre,
    .year {
        font-size: 6px
    }

    .exclusive,
    .award,
    .tag {
        font-size: 5px
    }

    .filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 7px
    }

    .filter {
        white-space: nowrap
    }

    .library-cta {
        padding: 48px 7%;
        align-items: flex-start;
        flex-direction: column
    }

    .footer {
        padding: 23px 7%;
        flex-wrap: wrap
    }

    .footer p {
        order: 3;
        width: 100%;
        margin: 0
    }
}

@media(max-width:390px) {
    .game-grid {
        grid-template-columns: 1fr
    }

    .cover {
        height: 265px
    }

    .cover b {
        font-size: 34px
    }

    .catalog-head {
        align-items: center
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important
    }
}