body {
    height: 100vh;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1rem;
}

img {
    border: none;
    outline: none;
    vertical-align: bottom;
}

a,
a:hover,
a:visited {
    text-decoration: none;
    color: #333333;
}

section {
    max-width: 800px;
    width: 100%;
    height: 100vh;
    margin-top: 15px;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin: 0 auto;
}

li {
    margin-bottom: 15px;
    width: 33.3%;
}

li .game-img {
    padding: 5px 10px;
    position: relative;
}

li .game-img img {
    width: 100%;
    border-radius: 8px;
    transition: transform 300ms ease;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3);
}

li .game-img img:hover {
    transform: scale(1.05);
}

li .game-img span {
    position: absolute;
    color: #ffffff;
    width: 50px;
    height: 50px;
    left: 4px;
    top: 2px;
}

li .game-img .hot {
    background-color: rebeccapurple;
}

li .game-img .new {
    background-color: tomato;
}

li .game-img .match {
    background-image: url("https://hsgame.popcongame.com/contents/images/icon_network.png");
    background-repeat: no-repeat;
    background-size: contain;
}

li .game-img .rank {
    background-image: url("https://hsgame.popcongame.com/contents/images/icon_rank0.png");
    background-repeat: no-repeat;
    background-size: contain;
}

.game-title {
    text-align: center;
    padding: 5px 10px 0;
    line-height: 1.5rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.game-desc {
    display: none;
}

@media screen and (max-width: 568px) {
    li .game-img span {
        width: 40px;
        height: 40px;
    }
}

@media screen and (max-width: 415px) {
    li .game-img span {
        width: 30px;
        height: 30px;
    }
    .game-info {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 300px) {
    li .game-img span {
        width: 25px;
        height: 25px;
    }
}
