/* ==============================
   COMMON
================================ */

.home-game-section {
    position: relative;
    margin-bottom: 22px;
}

.home-section-header {
    min-height: 32px;
    margin-bottom: 8px;
}

.home-section-title-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    text-decoration: none;
}

.home-section-icon {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.home-section-title {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.home-section-arrow {
    font-size: 32px;
    line-height: 20px;
}

.home-game-list,
.one-four-list {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.home-game-list::-webkit-scrollbar,
.one-four-list::-webkit-scrollbar {
    display: none;
}

.home-game-list {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.home-game-card {
    display: block;
    flex: 0 0 auto;
    text-decoration: none;
}

.home-game-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 9px;
    background: #181a24;
}

.home-game-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.home-game-card:hover .home-game-image {
    transform: scale(1.04);
}


/* ==============================
   1. NORMAL TYPE
================================ */

.card-type-normal,
.card-type-icon {
    width: 190px;
}

.card-type-normal .home-game-image-wrapper,
.card-type-icon .home-game-image-wrapper {
    aspect-ratio: 16 / 9;
}


/* ==============================
   2. VERTICAL TYPE
================================ */

.card-type-vertical {
    width: 190px;
}

.card-type-vertical .home-game-image-wrapper {
    aspect-ratio: 2 / 3;
}


/* ==============================
   3. ONE-FOUR TYPE
================================ */

.one-four-scroll-wrapper {
    position: relative;
    width: 100%;
}

.one-four-list {
    display: flex;
    gap: 8px;
    width: 100%;
}

.one-four-group {
    display: grid;
    grid-template-columns:
        minmax(280px, 3fr)
        minmax(330px, 2.7fr);
         /* minmax(280px, 2fr);  */
    gap: 8px;
    flex: 0 0 auto;
    height: 255px;
}

.card-type-one-four-large {
    width: 385px;
    height: 255px;
}

.card-type-one-four-large .home-game-image-wrapper {
    width: 100%;
    height: 100%;
}

.one-four-small-grid {
    display: grid;
    grid-template-columns: repeat(2, 165px);
    grid-template-rows: repeat(2, 123.5px);
    gap: 8px;
}

.card-type-one-four-small {
    width: 165px;
    height: 123.5px;
}

.card-type-one-four-small .home-game-image-wrapper {
    width: 100%;
    height: 100%;
}


/* ==============================
   4. Landscape With Icon
================================ */

.view-type-icon {
    padding: 12px 8px 15px;
    border-radius: 4px;
    background:
        linear-gradient(
            90deg,
            rgba(75, 44, 26, 0.90),
            rgba(35, 27, 54, 0.92)
        );
}

.icon-type-header {
    min-height: 62px;
    padding: 8px 12px;
    margin: -12px -8px 8px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.icon-type-title-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.icon-type-main-icon {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.icon-type-content {
    min-width: 0;
}

.icon-type-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-type-description {
    overflow: hidden;
    max-width: 700px;
    margin-top: 4px;
    color: #ddd5ed;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ==============================
   HIGHLIGHTS
================================ */

.home-game-highlights {
    position: absolute;
    top: -1px;
    left: -1px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 3px;
}

.home-highlight-image {
    display: block;
    width: auto;
    max-width: 100px;
    height: 25px;
    object-fit: contain;
}


/* ==============================
   HOVER DETAILS
================================ */

.home-game-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 35px 9px 8px;
    background: linear-gradient(
        to top,
        rgba(4, 5, 10, 0.92),
        transparent
    );
    opacity: 0;
    transition: opacity 0.2s ease;
}

.home-game-card:hover .home-game-overlay {
    opacity: 1;
}

.home-game-name {
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-game-play-count {
    margin-top: 2px;
    color: #d0d1db;
    font-size: 11px;
}


/* ==============================
   RESPONSIVE
================================ */

@media (max-width: 1000px) {
    .one-four-group {
        grid-template-columns:
            300px
            288px;
            /* 300px; */
        height: 220px;
    }

    .card-type-one-four-large {
        width: 300px;
        height: 220px;
    }

    .one-four-small-grid {
        grid-template-columns: repeat(2, 140px);
        grid-template-rows: repeat(2, 106px);
    }

    .card-type-one-four-small {
        width: 140px;
        height: 106px;
    }
}

@media (max-width: 600px) {
    .card-type-normal,
    .card-type-icon {
        width: 150px;
    }

    .card-type-vertical {
        width: 145px;
    }

    .one-four-group {
        grid-template-columns:
            250px
            248px;
            /* 250px; */
        height: 185px;
    }

    .card-type-one-four-large {
        width: 250px;
        height: 185px;
    }

    .one-four-small-grid {
        grid-template-columns: repeat(2, 120px);
        grid-template-rows: repeat(2, 88.5px);
    }

    .card-type-one-four-small {
        width: 120px;
        height: 88.5px;
    }
    





    .view-type-icon {
    position: relative;
    overflow: hidden;
    padding: 14px 10px 16px;
    border-radius: 4px;
    background: #16131d;
}

.icon-type-header {
    position: relative;
    min-height: 70px;
    margin: -14px -10px 10px;
    overflow: hidden;
}

/* Normal image, NOT background */
.icon-type-banner-image {
    position: absolute;
    top: 0;
    right: 0;

    width: 65%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    opacity: 0.55;

    pointer-events: none;
}

/* dark fade like screenshot */
.icon-type-header::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        #3a2118 0%,
        rgba(50, 31, 27, 0.95) 25%,
        rgba(25, 21, 31, 0.65) 60%,
        rgba(22, 19, 29, 0.25) 100%
    );

    pointer-events: none;
}

.icon-type-title-link {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;

    min-height: 70px;

    padding: 8px 14px;

    gap: 12px;

    color: #fff;
    text-decoration: none;
}

.icon-type-main-icon {
    width: 52px;
    height: 52px;

    object-fit: contain;

    flex-shrink: 0;
}

.icon-type-content {
    min-width: 0;
}

.icon-type-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-type-description {
    margin-top: 4px;

    color: #ddd4ef;

    font-size: 14px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
}