.page.games-page {
    padding: 0;
}

.games-directory {
    background: #04030f;
    color: #c5c1f2;
    min-height: 70vh;
    overflow: hidden;
    position: relative;
}

.games-directory__content {
    margin: 0 auto;
    max-width: 1180px;
    padding: 28px 40px 96px;
    position: relative;
    z-index: 1;
}

.games-hero {
    align-items: center;
    background:
        linear-gradient(112deg, rgba(29, 12, 78, .98) 0%, rgba(58, 20, 127, .92) 48%, rgba(18, 8, 54, .98) 100%);
    border-bottom: 1px solid rgba(197, 193, 242, .12);
    display: grid;
    gap: 58px;
    grid-template-columns: minmax(0, 1.06fr) minmax(420px, .94fr);
    min-height: 520px;
    overflow: hidden;
    padding: 76px max(40px, calc((100vw - 1100px) / 2));
    position: relative;
}

.games-hero:before {
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 36px 36px;
    content: "";
    inset: 0;
    mask-image: linear-gradient(to right, #000, transparent 75%);
    position: absolute;
}

.games-hero__glow {
    border-radius: 50%;
    filter: blur(10px);
    opacity: .55;
    pointer-events: none;
    position: absolute;
}

.games-hero__glow--one {
    background: #e442fe;
    height: 270px;
    left: -160px;
    top: -150px;
    width: 270px;
}

.games-hero__glow--two {
    background: #6842fe;
    bottom: -240px;
    height: 470px;
    right: 12%;
    width: 470px;
}

.games-hero__content,
.games-hero__mosaic {
    position: relative;
    z-index: 1;
}

.games-kicker {
    color: #f477ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.games-hero h1 {
    font-size: clamp(48px, 5.2vw, 72px);
    letter-spacing: -.035em;
    line-height: .98;
    margin: 0 0 24px;
    max-width: 620px;
}

.games-hero__intro {
    color: rgba(233, 233, 255, .78);
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    max-width: 610px;
}

.games-search {
    align-items: center;
    background: rgba(4, 3, 15, .72);
    border: 1px solid rgba(244, 119, 255, .42);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(4, 3, 15, .35);
    display: flex;
    margin-top: 32px;
    max-width: 620px;
    padding: 6px;
}

.games-search:focus-within {
    border-color: #f477ff;
    box-shadow: 0 0 0 3px rgba(228, 66, 254, .16), 0 20px 60px rgba(4, 3, 15, .35);
}

.games-search svg {
    fill: none;
    flex: 0 0 auto;
    height: 22px;
    margin: 0 14px;
    stroke: #c5c1f2;
    stroke-linecap: round;
    stroke-width: 1.8;
    width: 22px;
}

.games-search input {
    background: transparent;
    border: 0;
    color: #fff;
    flex: 1;
    font-size: 16px;
    min-width: 0;
    outline: 0;
    padding: 13px 0;
}

.games-search input::placeholder {
    color: #8c88ae;
}

.games-search button {
    background: linear-gradient(135deg, #e442fe, #6842fe);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 14px 20px;
}

.games-hero__meta {
    color: rgba(233, 233, 255, .58);
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 22px;
    margin-top: 22px;
}

.games-hero__meta span {
    align-items: center;
    display: flex;
    gap: 7px;
}

.games-hero__meta span:before {
    background: #55e99d;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(85, 233, 157, .7);
    content: "";
    height: 6px;
    width: 6px;
}

.games-hero__meta strong {
    color: #fff;
}

.games-hero__mosaic {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    transform: rotate(2deg);
}

.games-hero-tile {
    background: #161622;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    box-shadow: 0 22px 44px rgba(4, 3, 15, .3);
    display: block;
    min-height: 176px;
    overflow: hidden;
    position: relative;
    transform: translateY(12px);
}

.games-hero-tile:nth-child(2),
.games-hero-tile:nth-child(4) {
    transform: translateY(-12px);
}

.games-hero-tile img,
.latest-game-card__image img,
.game-news-card__image img,
.all-game-card__image img {
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
    width: 100%;
}

.games-hero-tile:hover img,
.latest-game-card:hover img,
.game-news-card:hover img,
.all-game-card:hover img {
    transform: scale(1.055);
}

.games-hero-tile__shade {
    background: linear-gradient(to top, rgba(4, 3, 15, .94), transparent 68%);
    inset: 0;
    position: absolute;
}

.games-hero-tile__name {
    bottom: 16px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    left: 16px;
    line-height: 1.25;
    position: absolute;
    right: 16px;
}

.games-hero__empty {
    align-items: center;
    background: rgba(4, 3, 15, .45);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 320px;
    text-align: center;
}

.games-hero__empty span {
    color: #fff;
    font-size: 64px;
    font-weight: 800;
}

.games-section {
    padding: 72px 0 14px;
}

.games-section + .games-section {
    border-top: 1px solid rgba(197, 193, 242, .1);
    margin-top: 58px;
}

.games-section__heading {
    align-items: end;
    display: flex;
    gap: 40px;
    justify-content: space-between;
    margin-bottom: 30px;
}

.games-section__heading h2 {
    font-size: 38px;
    letter-spacing: -.02em;
    margin: 0;
}

.games-section__heading > p {
    color: #77738f;
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 4px;
    max-width: 380px;
    text-align: right;
}

.latest-games-grid,
.game-news-grid,
.all-games-grid {
    display: grid;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.latest-games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.latest-game-card {
    background: #11101c;
    border: 1px solid rgba(197, 193, 242, .11);
    border-radius: 15px;
    display: block;
    height: 100%;
    overflow: hidden;
    position: relative;
    transition: border-color .2s ease, transform .2s ease;
}

.latest-game-card:hover {
    border-color: rgba(228, 66, 254, .62);
    transform: translateY(-4px);
}

.latest-game-card__image {
    background: #221e3a;
    display: block;
    height: 190px;
    overflow: hidden;
    position: relative;
}

.latest-game-card__overlay {
    background: linear-gradient(to top, rgba(17, 16, 28, .78), transparent 60%);
    inset: 0;
    position: absolute;
}

.latest-game-card__date {
    bottom: 12px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    left: 14px;
    position: absolute;
}

.latest-game-card__body {
    display: block;
    padding: 18px 46px 19px 18px;
}

.latest-game-card__body strong {
    color: #f2f1ff;
    display: block;
    font-size: 18px;
    line-height: 1.25;
}

.latest-game-card__body > span {
    color: #77738f;
    display: block;
    font-size: 12px;
    margin-top: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.latest-game-card > svg,
.all-game-card > svg {
    fill: none;
    height: 18px;
    position: absolute;
    stroke: #77738f;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 18px;
}

.latest-game-card > svg {
    bottom: 24px;
    right: 17px;
}

.game-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-news-card {
    align-items: stretch;
    background: #11101c;
    border: 1px solid rgba(197, 193, 242, .11);
    border-radius: 15px;
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    height: 100%;
    overflow: hidden;
    transition: border-color .2s ease, transform .2s ease;
}

.game-news-card:hover {
    border-color: rgba(104, 66, 254, .7);
    transform: translateY(-3px);
}

.game-news-card__image {
    background: #221e3a;
    min-height: 158px;
    overflow: hidden;
}

.game-news-card__body {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.game-news-card__game {
    color: #f477ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.game-news-card h3 {
    color: #f2f1ff;
    font-size: 17px;
    line-height: 1.35;
    margin: 9px 0 18px;
}

.game-news-card time {
    color: #77738f;
    font-size: 12px;
    margin-top: auto;
}

.games-section--all {
    scroll-margin-top: 30px;
}

.all-games-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.all-game-card {
    align-items: center;
    background: rgba(17, 16, 28, .72);
    border: 1px solid rgba(197, 193, 242, .09);
    border-radius: 12px;
    display: flex;
    min-height: 74px;
    padding: 8px 34px 8px 8px;
    position: relative;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.all-game-card:hover {
    background: #181627;
    border-color: rgba(228, 66, 254, .48);
    transform: translateY(-2px);
}

.all-game-card__image {
    background: #221e3a;
    border-radius: 8px;
    flex: 0 0 56px;
    height: 56px;
    overflow: hidden;
}

.all-game-card__copy {
    min-width: 0;
    padding-left: 11px;
}

.all-game-card__copy strong,
.all-game-card__copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.all-game-card__copy strong {
    color: #f2f1ff;
    font-size: 13px;
    line-height: 1.25;
}

.all-game-card__copy small {
    color: #706c88;
    font-size: 10px;
    margin-top: 5px;
}

.all-game-card > svg {
    right: 9px;
    top: 27px;
}

.game-image-fallback {
    align-items: center;
    background: linear-gradient(135deg, #6842fe, #e442fe);
    color: #fff;
    display: flex;
    font-size: 24px;
    font-weight: 800;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.all-game-card .game-image-fallback {
    font-size: 16px;
}

.games-empty-state {
    background: rgba(17, 16, 28, .72);
    border: 1px dashed rgba(197, 193, 242, .2);
    border-radius: 14px;
    color: #8c88ae;
    padding: 40px 24px;
    text-align: center;
}

.sr-only {
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

@media screen and (max-width: 1050px) {
    .games-hero {
        gap: 38px;
        grid-template-columns: minmax(0, 1fr) 380px;
    }

    .all-games-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 820px) {
    .games-hero {
        grid-template-columns: 1fr;
        padding-bottom: 54px;
        padding-top: 54px;
    }

    .games-hero__content {
        max-width: 680px;
    }

    .games-hero__mosaic {
        transform: none;
    }

    .games-hero-tile,
    .games-hero-tile:nth-child(2),
    .games-hero-tile:nth-child(4) {
        min-height: 210px;
        transform: none;
    }

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

    .game-news-grid {
        grid-template-columns: 1fr;
    }

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

@media screen and (max-width: 600px) {
    .games-directory__content {
        padding: 10px 20px 70px;
    }

    .games-hero {
        padding: 42px 20px 36px;
    }

    .games-hero h1 {
        font-size: 44px;
    }

    .games-hero__intro {
        font-size: 16px;
    }

    .games-search button {
        padding: 14px 15px;
    }

    .games-hero__mosaic {
        gap: 9px;
    }

    .games-hero-tile,
    .games-hero-tile:nth-child(2),
    .games-hero-tile:nth-child(4) {
        min-height: 145px;
    }

    .games-section {
        padding-top: 54px;
    }

    .games-section + .games-section {
        margin-top: 42px;
    }

    .games-section__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 24px;
    }

    .games-section__heading h2 {
        font-size: 32px;
    }

    .games-section__heading > p {
        text-align: left;
    }

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

    .latest-game-card__image {
        height: 210px;
    }

    .game-news-card {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .game-news-card__image {
        min-height: 150px;
    }

    .game-news-card__body {
        padding: 16px;
    }

    .game-news-card h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }
}

@media screen and (max-width: 390px) {
    .games-search svg {
        margin: 0 9px;
    }

    .games-search button {
        font-size: 0;
        height: 44px;
        padding: 0;
        width: 44px;
    }

    .games-search button:after {
        content: "Go";
        font-size: 13px;
    }

    .games-hero-tile__name {
        bottom: 10px;
        font-size: 12px;
        left: 10px;
        right: 10px;
    }
}
