@charset "utf-8";


body {
    margin: 0;
    background: #222;
    color: #fff;
    font-family: 'NanumGothic', sans-serif;
}


#main_banner {
    display: none;
}


#contents {
    width: calc(100% - 32px);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 50px 16px;
    overflow: hidden;
}

#contents > article {
    max-width: 100%;
    min-width: 100%;
}


.new-game {
    grid-column: 1 / span 2;
    grid-row: 1;
    position: relative;
}

.new-game img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.new-game .info {
    position: absolute;
    bottom: 16px;
    left: 16px;
    margin-top: 0;
}

section > article:nth-child(2) {
    display: none;
}

.card {
    cursor: pointer;
}

.card img {
    width: 100%;
}

.info {
    font-weight: bold;
    margin-top: 16px;
}

.title {
    font-weight: bold;
    margin: 10px 0 16px 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.release {
    font-size: 1rem;
    font-weight: normal;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.price {
    font-size: 1rem;
    font-weight: normal;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    #main_banner {
        display: block;
        height: 230px;
        overflow: hidden;
    }

    #main_banner img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    #contents {
        width: calc(100% - 84px);
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        margin: 50px 42px;
        min-height: calc(100vh - 590px);
    }

    .new-game {
        display: none;
    }

    section > article:nth-child(2) {
        display: block;
    }

    .info {
        position: static;
        margin-top: 20px;
    }

    .title {
        font-size: clamp(0.7rem, 1.5vw, 1.25rem);
    }

    .release,
    .price {
        font-size: clamp(0.6rem, 1.3vw, 1rem);
    }
}

@media (min-width: 1025px) {
    #main_banner {
        display: block;
        width: 100%;
        height: 432px;
        object-fit: cover;
    }

    #contents {
        width: calc(100% - 240px);
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
        margin: 100px 120px;
    }

    .info {
        margin-top: 24px;
    }

    .title {
        font-size: clamp(0.8rem, 1.1vw, 1.5rem);
    }

    .release,
    .price {
        font-size: clamp(0.875rem, 1vw, 1.25rem);
    }
}
