.popular-games {
    margin-bottom: clamp(2.5rem, 6vw, 5rem);
    color: #fff;
}

.popular-games__heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(.75rem, 2vw, 1.5rem);
    margin: 0 0 clamp(1.25rem, 3vw, 2.25rem);
    color: inherit;
    font: inherit;
    font-size: clamp(1.75rem, 3.4vw, 2.625rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.035em;
    text-align: center;
}

.popular-games__heading::before,
.popular-games__heading::after {
    content: "";
    width: clamp(1.5rem, 6vw, 4.5rem);
    height: 1px;
    background: linear-gradient(90deg, transparent, #767ad2);
}

.popular-games__heading::after { transform: rotate(180deg); }

.popular-games__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.popular-game__title {
    margin: 0;
    color: #fff;
    font: inherit;
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.popular-game__link {
    display: block;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: .875rem;
    background-color: #191e4b;
    background-clip: padding-box;
    color: inherit;
    text-decoration: none;
}

.popular-game__cover {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.popular-game__link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-game__caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    min-height: 2.85rem;
    padding: .55rem .7rem;
    overflow-wrap: anywhere;
}

.popular-game__arrow {
    position: relative;
    flex: none;
    width: .9rem;
    height: .9rem;
    color: #d3d8ff;
}

.popular-game__arrow::before,
.popular-game__arrow::after {
    position: absolute;
    top: 50%;
    right: 1px;
    content: "";
}

.popular-game__arrow::before { width: .8rem; height: 2px; background: currentColor; transform: translateY(-50%); }
.popular-game__arrow::after { width: .46rem; height: .46rem; border: solid currentColor; border-width: 2px 2px 0 0; transform: translateY(-50%) rotate(45deg); }

.popular-game__link:focus-visible { outline: 3px solid #c1caff; outline-offset: 3px; }
.popular-game__link:focus-visible,
.popular-game__link:active { background-color: #272b70; color: #fff; }

@media (min-width: 640px) {
    .popular-games__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}

@media (min-width: 1100px) {
    .popular-games__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    #storefront-games.popular-games { scroll-margin-top: 5rem; }
}

@media (max-width: 639px) {
    .popular-game__cover { aspect-ratio: 4 / 5; }
}

@media (hover: hover) {
    .popular-game__link:hover { border-color: #9599ed; background-color: #272b70; color: #fff; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .popular-game__link img { transition: transform .24s ease-out; }
    .popular-game__link:hover img { transform: scale(1.025); }
}
