h2.title {
    position: relative;
    line-height: 1.2;
}

h2.title::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 150px;
    height: 10px;
    z-index: 0;
}

h2.title.blue::after {
    background: rgb(135,224,255);
    background: linear-gradient(90deg, rgba(135,224,255,1) 20%, transparent 80%);
}

h2.title.red::after {
    background: rgb(255,135,135);
    background: linear-gradient(90deg, rgba(255,135,135,1) 44%, rgba(255,255,255,0) 100%);
}

h2.title.orange::after {
    background: rgb(255,127,76);
    background: linear-gradient(90deg, rgba(255,127,76,1) 44%, rgba(255,255,255,0) 100%);
}

h2.title.purple::after {
    background: rgb(255,118,174);
    background: linear-gradient(90deg, rgba(255,118,174,1) 44%, rgba(255,255,255,0) 100%);
}



h2.title p {
    position: relative;
    font-family: 'Fredoka';
    font-size: 20px;
    margin: 0;
    z-index: 1;
}

.new-game,.top-game {
    border-radius: 10px;
    box-sizing: border-box;
    padding: 10px 25px;
}

.new-game {
    background-color: #ebfcff;
    --columns: 14;
    grid-area: 1/var(--columns)/span 2/span 4;
}

.top-game {
    background-color: #ff9d76;
    background: linear-gradient(180deg,#ff9d76,#fff 28%);
    --columns: 4;
    grid-area: 4/var(--columns)/span 3/span 6;
}

.game-list ul {
    display: flex;
    justify-content: space-between;
}

.bg1 {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -200%);
    width: 176px;
    height: 20px;
    border-radius: 0 0 15px 15px;
    z-index: -1;
    opacity: 0.8;
}

.bg2 {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -180%);
    width: 176px;
    height: 20px;
    border-radius: 0 0 15px 15px;
    z-index: -1;
    opacity: 0.3;
}

.pink .bg1 {
    background-color: #ff4c4c;
    
}

.pink .bg2 {
    background-color: #ff4c4c;
}

.blue .bg1 {
    background-color: #72d2ff;
}

.blue .bg2 {
    background-color: #72d2ff;
}

.green .bg1 {
    background-color: #65ff7a;
}

.green .bg2 {
    background-color: #65ff7a;
}

.game-list ul li {
    transition: transform 300ms cubic-bezier(0.165, 0.84, 0.44, 1);
}

.game-list ul li.pink {
    background-color: #ffc0c0;
}

.game-list ul li.blue {
    background-color: #cef0ff;
}

.game-list ul li.green {
    background-color: #e0ffe4;
}


.game-list ul li:last-child {
    margin-right: 0px;
}

.top-game .game-list {
    margin-top: 28px;
}

.top-game .game-list ul li {
    position: relative;
    width: 190px;
    height: fit-content;
    box-sizing: border-box;
    padding: 6px;
    border-radius: 18px;
    box-shadow: 0px 0px 10px #878787;
    z-index: 9;
}

.top-game .game-list ul li a img {
    width: 100%;
    border-radius: 15px;
    object-fit: contain;
}

.top-game .game-list ul li a h3 {
    display: block;
    width: 150px;
    margin: 0 auto;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 12px;
    text-align: center;
}

.new-game .game-list {
    margin-top: 17px;
}

.new-game .game-list ul li {
    position: relative;
    width: 110px;
    background-color: #fff;
    border-radius: 10px;
    box-sizing: border-box;
    padding: 5px;
    box-shadow: 0px 0px 10px #c9c9c9;
}

.new-game .game-list .game-name {
    width: 100px;
    margin: 0 auto;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    font-size: 12px;
}

.new-game .game-list ul li a img {
    width: 100%;
    border-radius: 10px;
    object-fit: contain;
}

@media screen and (min-width: 768px) {
    .game-list ul li:hover {
        transform: scale(1.05);
    }
}

@media screen and (min-width: 1700px) and (max-width: 1899px) {
    .new-game {
        --columns: 12;
    }
}

@media screen and (min-width: 1520px) and (max-width: 1699px) {
    .new-game {
        --columns: 10;
    }
}

@media screen and (min-width: 1330px) and (max-width: 1519px) {
    .new-game {
        --columns: 8;
    }
}

@media screen and (min-width: 1280px) and (max-width: 1329px) {
    .new-game {
        --columns: 7;
    }
}

@media screen and (min-width: 960px) and (max-width: 1279px) {
    .new-game {
        --columns: 4;
    }

    .top-game {
        --columns: 2;
        grid-area: 5/var(--columns)/span 3/span 6;
    }
}

@media screen and (min-width: 768px) and (max-width: 959px) {
    .new-game {
        --columns: 3;
    }

    .top-game {
        --columns: 1;
        grid-area: 5/var(--columns)/span 3/span 6;
    }
}


@media screen and (min-width: 640px) and (max-width: 767px) {
    .new-game {
        --columns: 2;
    }

    .top-game {
        --columns: 1;
        grid-area: 7/var(--columns)/span 3/span 5;
    }
    
    .new-game,.top-game {
        border-radius: 10px;
        box-sizing: border-box;
        padding: 5px 15px;
    }

    .top-game .game-list ul li {
        width: 158px;
    }

    .bg1 {
        width: 144px;
    }

    .bg2 {
        width: 144px;
    }

    .top-game .game-list ul li a h3 {
        width: 144px;
    }
}

@media screen and (max-width: 639px) {
    .game .game-name {
        display: none;
    }

    .new-game, .top-game {
        display: none;
    }
}