.gameCarousel {
    position: relative;
}

.gameCarousel ul {
    margin-block-end: 0;
    padding: 8px 0 0 0;
    overflow: hidden;
    overflow-x: hidden;
    overflow-x: scroll;
    width: 100%;
    white-space: nowrap;
    list-style: none;
    scroll-padding: 50px;
    scrollbar-width: none;
    margin: 0;
    font-size: 0;
}

.gameCarousel ul li {
    list-style: none;
    display: inline-block;
    box-sizing: border-box;
    vertical-align: middle;
    position: relative;
    height: 90px;
    width: 90px;
    margin-right: 8px;
}

.gameCarousel.carousel ul li {
    list-style: none;
    display: inline-block;
    box-sizing: border-box;
    vertical-align: middle;
    position: relative;
    margin-right: 8px;
    width: calc((100vw - 216px) / 6.6);
    height: calc(((((100vw - (216px)) / 6.6) - 4px) * 0.5617977528) + calc(var(--base-unit) * 0.5));
}

.gameCarousel ul li .thumbNail {
    width: 100%;
    position: relative;
    aspect-ratio: 186/237;
    height: 100%;
    background-color: #373952;
    overflow: hidden;
    display: block;
}

.gameCarousel ul li .gameTitle {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
    padding: 10px 15px;
    font-size: 10px;
    text-align: left;
    display: none;
    z-index: 6;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gameCarousel ul li .thumbNail img {
    position: absolute;
    z-index: 2;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;

    object-fit: cover;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.gameCarousel ul li .thumbNail img[src=''],
.gameCarousel ul li .thumbNail img[src='#'] {
    display: none;
}

.gameCarousel li.primeCarouselLi {
    width: calc((100vw - 216px) / 3.25);
    height: calc(((((100vw - (76px)) / 3.25) - 4px) * 0.5617977528) + calc(var(--base-unit) * 0.5));
}

.gameCarousel li.primeCarouselLi a {
    position: relative;
    box-sizing: border-box;
    display: block;
    background-clip: padding-box;
}

.gameCarousel li.primeCarouselLi .primeQuarter {
    display: grid;
    height: 100%;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-gap: 4px 4px;
    grid-auto-flow: column;
}

.gameCarousel li.primeCarouselLi .primeQuarter a,
.gameCarousel ul li a {
    width: 100%;
    height: 100%;
    position: relative;
    /* border-radius: calc(8px * 1 + 2px); */
    border-radius: 12px;
    border: 2px solid #0000;
    box-sizing: border-box;
    display: block;
    /* contain: layout; */
    z-index: 0;
    background-clip: padding-box;
    overflow: hidden;
}

.gameCarousel li.primeCarouselLi .primeQuarter a:hover,
.gameCarousel ul li a:hover {
    border: 2px solid var(--brand-colour);
    box-sizing: border-box;
    background-clip: border-box;
}

.gameCarousel li.primeCarouselLi .primeQuarter a:hover .thumbNail::before,
.gameCarousel ul li a:hover .thumbNail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
    border-radius: 10px;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gameCarousel li.primeCarouselLi .primeQuarter a:hover .thumbNail::before,
.gameCarousel ul li a:hover .thumbNail::before {
    opacity: 1;
}

.gameCarousel li.primeCarouselLi .primeQuarter a:hover .gameTitle,
.gameCarousel ul li a:hover .gameTitle {
    display: block;
    opacity: 1;
}

.gameCarousel li.primeCarouselLi .primeQuarter a .thumbNail {
    color: #fff;
    position: absolute;
    /* bottom: 5px; */
    /* margin-bottom: calc(8px * 1);
    margin-left: calc(8px * 1); */

    z-index: 4;
    /* width: calc(100% - 8px * 2); */
    /* height: 0; */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background-color: #373952;
}

.phatgamesBio {
    margin: 16px 0;
    overflow-anchor: none;
    overflow: hidden;
    display: flex;
}

.phatgamesBio .aboutWrap {
    border-radius: 10px;
    background-color: #212233;
    position: relative;
    width: 424px;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    padding: 20px;
}

.phatgamesBio .aboutWrap h1 {
    font-size: 24px;
    line-height: 31px;
}

.phatgamesBio .aboutWrap p {
    line-height: 1.55;
    padding: 0.5rem 0;
}

.phatgamesBio .aboutWrap p:last-of-type {
    padding-bottom: 0.75rem;
}

.phatgamesGenres {
    overflow: hidden;
    flex: 1;
}

.phatgamesGenres .genersCarousel {
    position: relative;
    overflow-y: hidden;
    z-index: 2;
    margin-block-end: 0;
    overflow: hidden;
    overflow-x: scroll;
    width: 100%;
    white-space: nowrap;
    list-style: none;
    transform: translateZ(0);
    scroll-padding: 50px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin: 0;
    height: 100%;
}

.phatgamesGenres .genersCarousel > div {
    display: inline-block;
    box-sizing: border-box;
    vertical-align: middle;
    position: relative;
    height: 100%;
}

.phatgamesGenres .genersCarousel > div:first-child {
    margin-left: 7px;
}

.phatgamesGenres .genersCarousel > div a {
    display: flex;
    height: 50%;
    min-height: 95px;
    gap: 10px;
}

.phatgamesGenres .genersCarousel > div a:hover .navIcon {
    background-color: var(--nav-icon-color-active);
}

.phatgamesGenres .genersCarousel > div a:hover > div .sidebarLinkText {
    color: var(--nav-icon-color-active);
}

.phatgamesGenres .genersCarousel > div a > div {
    border-radius: 10px;
    width: 125px;
    height: 115px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    background-color: #212233;
}

.phatgamesGenres .genersCarousel > div a:first-child > div {
    margin-bottom: 3px;
}
.phatgamesGenres .genersCarousel > div a:last-child > div {
    margin-top: 3px;
}

.phatgamesGenres .genersCarousel > div a > div .navIcon {
    width: 25px;
    height: 25px;
    display: block;
    margin-bottom: 6px;
}

.phatgamesGenres .genersCarousel > div a > div .sidebarLinkText {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

@media (max-width: 967px) {
    .phatgamesBio {
        flex-direction: column;
    }

    .phatgamesBio .aboutWrap {
        width: 97%;
        margin-bottom: 10px;
    }

    .phatgamesGenres .genersCarousel > div:first-child {
        margin-left: 0;
    }
}

@media (max-width: 1650px) {
    .gameCarousel li.primeCarouselLi {
        width: calc((100vw - 216px) / 3.25);
        height: calc(((((100vw - (76px)) / 3.25) - 4px) * 0.5617977528) + calc(var(--base-unit) * 0.5));
    }

    .gameCarousel.carousel ul li {
        width: calc((100vw - 216px) / 6.6);
        height: calc(((((100vw - (216px)) / 6.6) - 4px) * 0.5617977528) + calc(var(--base-unit) * 0.5));
    }
}

@media (max-width: 1450px) {
    .gameCarousel li.primeCarouselLi {
        width: calc((100vw - 216px) / 2.25);
        height: calc(((((100vw - (76px)) / 2.25) - 4px) * 0.5617977528) + calc(var(--base-unit) * 0.5));
    }
    .gameCarousel.carousel ul li {
        width: calc((100vw - 216px) / 3.6);
        height: calc(((((100vw - (216px)) / 3.6) - 4px) * 0.5617977528) + calc(var(--base-unit) * 0.5));
    }
}

@media (max-width: 768px) {
    .gameCarousel li.primeCarouselLi {
        width: calc((100vw - 216px) / 1);
        height: calc(((((100vw - (76px)) / 1) - 4px) * 0.5617977528) + calc(var(--base-unit) * 0.5));
    }
    .gameCarousel.carousel ul li {
        width: calc((100vw - 216px) / 1);
        height: calc(((((100vw - (216px)) / 1) - 4px) * 0.5617977528) + calc(var(--base-unit) * 0.5));
    }
}
