section {
    width: var(--all-width);
    margin: 0 auto 10px;
    background: #F5F5F5;
    border: 1px solid #FFF;
    border-bottom: 1px solid #CCC;
    padding: 12px;
    display: flex;
}

section .img-box {
    width: 70%;
}

section .img-box::before {
    padding-top: 45%;
}

section .ban-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

section .ban-text li {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 15px;
    cursor: pointer;
    border-bottom: 1px solid #ccc;
    font-size: 12px;
}

section .ban-text li:first-child {
    border-top: 1px solid #ccc;
}

.ban-active {
    background-color: #fff;
    position: relative;
}

.ban-active::before {
    content: '';
    border: 5px solid #000;
    position: absolute;
    left: 1px;
    top: 50%;
    transform: translateY(-50%);
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
}

main {
    width: var(--all-width);
    margin: 0 auto 15px;
    padding: 10px;
    background-color: #fff;
}

main h3 {
    font-size: 21px;
    text-align: center;
    margin-bottom: 8px;
    font-weight: normal;
}

main .big-box {
    display: flex;
    flex-wrap: wrap;
    row-gap: 8px;
}

.game-box .img {
    padding: 3px;
    border: 1px solid #ccc;
}

.game-box .img .img-box::before {
    padding-top: 68%;
}

.game-box .game-text {
    padding: 10px 0;
    color: #000;
    font-size: 14px;
}

.game-box .game-text span {
    width: 96%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.loading {
    width: 200px;
    height: 100px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px #0004;
    position: fixed;
    bottom: calc(60px + 1%);
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    row-gap: 4px;
    justify-content: center;
}

.loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #00000093;
    border-top-color: rgb(255, 166, 0);
    animation: loop 1s infinite linear;
}

.loading::after {
    content: 'Loading...';
    font-size: 14px;
}

.end {
    text-align: center;
    font-size: 19px;
    font-weight: 700;
    display: none;
}

@media (min-width:800px) {
    .game-box {
        width: calc((100% - 60px)/3);
        margin-right: 20px;
    }

    .game-box:nth-of-type(3n) {
        margin-right: 0;
    }
}

@media (max-width:799px) {
    section {
        flex-direction: column;
    }

    section .img-box {
        width: 100%;
    }

    section .img-box::before {
        padding-top: 50%;
    }

    section .ban-text {
        flex: none;
        height: 150px;
        overflow-y: auto;
        margin-top: 5px;
    }

    section .ban-text li {
        min-height: 40px;
        font-size: 14px;
    }

    .game-box {
        width: calc((100% - 15px)/2);
        margin-right: 15px;
    }

    .game-box:nth-of-type(2n) {
        margin-right: 0;
    }
}

@keyframes loop {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }

    100% {
        transform: rotate(360deg);
    }
}