main {
    width: var(--all-width);
    margin: 26px auto 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

nav {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 0;
    border: 1px solid rgba(229, 233, 240, .9);
    border-radius: 8px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 16px 38px rgba(23, 32, 51, .07);
    backdrop-filter: blur(14px);
}

.nav-title {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    background: #172033;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}

nav ul {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background-color: transparent;
    overflow-x: auto;
    scrollbar-width: none;
}

nav ul::-webkit-scrollbar {
    display: none;
}

nav a {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    background: #f7f9fc;
    color: var(--ink);
    font-size: 14px;
    font-weight: 750;
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

nav a:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.content {
    width: 100%;
    padding-left: 0;
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

main .list {
    margin-bottom: 0;
}

main h3 {
    min-height: 50px;
    height: auto;
    line-height: 1.15;
    padding: 0 0 14px;
    background: transparent;
    border-bottom: 0;
    color: var(--ink);
    font-weight: 900;
    font-size: clamp(24px, 3vw, 38px);
    display: flex;
    align-items: center;
    gap: 12px;
}

main h3::before {
    content: "";
    width: 12px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent);
    box-shadow: 0 9px 18px rgba(255, 107, 74, .28);
    flex: 0 0 auto;
}

main .big-box {
    display: grid;
    gap: 16px;
}

.big-box[data-type=hot],
.big-box[data-type=all],
.big-box:not([data-type]) {
    padding: 0;
    background-color: transparent;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.big-box[data-type=new] {
    margin-top: 0;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

.game-base,
.new-game {
    width: auto;
    margin-right: 0;
    min-width: 0;
    padding: 0;
    border: 1px solid rgba(229, 233, 240, .95);
    border-radius: 8px;
    background-color: #fff;
    color: var(--ink);
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(23, 32, 51, .07);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    position: relative;
}

.game-base:hover,
.new-game:hover {
    background-color: #fff;
    border-color: rgba(255, 107, 74, .42);
    box-shadow: 0 20px 42px rgba(23, 32, 51, .14);
    transform: translateY(-5px);
}

.game-base .img-box,
.new-game .img-box {
    background: #eef3f8;
    overflow: hidden;
}

.game-base .img-box::before,
.new-game .img-box::before {
    padding-top: 100%;
}

.game-base .img-box>img,
.new-game .img-box>img {
    transition: transform .35s ease, filter .35s ease;
}

.game-base:hover .img-box>img,
.new-game:hover .img-box>img {
    transform: scale(1.06);
    filter: saturate(1.12);
}

.game-base .base-text,
.new-game .new-text {
    min-height: 48px;
    padding: 11px 12px 12px;
    text-align: left;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.2;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 800;
    width: auto;
    transform: none;
    margin-left: 0;
}

.game-base:hover .base-text,
.new-game:hover .new-text {
    color: var(--accent);
}

#hot .big-box[data-type=hot] {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

#hot .game-base:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

#hot .game-base:first-child .base-text {
    min-height: 62px;
    padding: 16px;
    font-size: 20px;
}

#hot .game-base:first-child::after {
    content: "Featured";
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 7px 10px;
    border-radius: 8px;
    background: rgba(23, 32, 51, .86);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

#new h3 {
    margin-bottom: 0;
}

#new .new-game {
    background-color: #172033;
    border-color: rgba(23, 32, 51, .2);
}

#new .new-game .new-text {
    color: #fff;
}

#new .new-game:hover .new-text {
    color: var(--accent-3);
}

@media screen and (min-width:770px) {
    .game-base,
    .new-game {
        width: auto;
        margin-right: 0;
    }

    .game-base:nth-of-type(6n),
    .new-game:nth-of-type(8),
    .new-game:nth-of-type(3n),
    .game-base:nth-of-type(2n) {
        margin-right: 0;
    }
}

@media screen and (max-width:1100px) {
    #hot .big-box[data-type=hot] {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media screen and (max-width:769px) {
    main {
        margin-top: 16px;
        gap: 14px;
    }

    main::before {
        min-height: 168px;
        padding: 24px;
        font-size: 38px;
    }

    nav {
        padding: 10px;
        align-items: stretch;
        flex-direction: column;
    }

    .nav-title {
        width: 100%;
        min-height: 40px;
    }

    nav ul {
        width: 100%;
        flex-direction: row;
    }

    nav a {
        min-width: auto;
        padding-right: 16px;
    }

    .content {
        padding: 0;
        gap: 20px;
    }

    main h3 {
        min-height: 40px;
        padding-bottom: 10px;
        font-size: 24px;
    }

    main h3::before {
        height: 25px;
    }

    #hot .big-box[data-type=hot],
    .big-box[data-type=hot],
    .big-box[data-type=all],
    .big-box:not([data-type]) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    #hot .game-base:first-child {
        grid-column: span 2;
    }

    .big-box[data-type=new] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .game-base .base-text,
    .new-game .new-text {
        min-height: 44px;
        padding: 10px;
        font-size: 13px;
    }

    #hot .game-base:first-child .base-text {
        min-height: 54px;
        font-size: 17px;
    }
}

@media screen and (max-width:430px) {
    main::before {
        min-height: 142px;
        padding: 18px;
        font-size: 30px;
    }

    .big-box[data-type=new] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
