.koe-games-showcase,
.koe-games-showcase * {
    box-sizing: border-box;
}

.koe-games-showcase {
    --kg-blue: #0874c9;
    --kg-blue-dark: #075ca0;
    --kg-text: #161d27;
    --kg-muted: #6f7884;
    --kg-gap: 8px;
    width: 100%;
    margin: 0 0 24px;
    font-family: inherit;
}

.koe-games-showcase__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 14px;
}

.koe-games-showcase__headline {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.koe-games-showcase__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    color: var(--kg-blue);
}

.koe-games-showcase__icon svg {
    display: block;
    width: 38px;
    height: 38px;
}

.koe-games-showcase__title,
.koe-games-showcase__subtitle {
    display: block;
}

.koe-games-showcase__title {
    color: var(--kg-text);
    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.koe-games-showcase__subtitle {
    margin-top: 2px;
    color: var(--kg-muted);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 400;
}

.koe-games-showcase__all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--kg-blue-dark);
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.koe-games-showcase__all:hover {
    color: #004f8f;
    text-decoration: none;
}

.koe-games-showcase__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.18fr);
    gap: var(--kg-gap);
    min-height: 450px;
}

.koe-games-showcase__grid > .koe-games-showcase__card:not(.is-hero) {
    min-height: 0;
}

.koe-games-showcase__card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    background: #111827;
    border-radius: 5px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.07);
    transform: translateZ(0);
}

.koe-games-showcase__card.is-hero {
    grid-row: span 2;
    min-height: 450px;
}

.koe-games-showcase__card:nth-child(2),
.koe-games-showcase__card:nth-child(3) {
    min-height: 221px;
}

.koe-games-showcase__card.is-wide,
.koe-games-showcase__card:nth-child(4) {
    grid-column: 2 / 3;
    min-height: 221px;
}

.koe-games-showcase__card-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    color: #fff;
    text-decoration: none;
    isolation: isolate;
}

.koe-games-showcase__card-link:hover,
.koe-games-showcase__card-link:focus {
    color: #fff;
    text-decoration: none;
}

.koe-games-showcase__image {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.001);
    transition: transform .35s ease, filter .35s ease;
}

.koe-games-showcase__image--fallback {
    background: linear-gradient(135deg, #0c2542, #151b2d 55%, #07111e);
}

.koe-games-showcase__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(5,10,18,0.02) 0%, rgba(5,10,18,0.35) 48%, rgba(5,10,18,0.92) 100%),
        linear-gradient(90deg, rgba(5,10,18,0.38) 0%, rgba(5,10,18,0.05) 54%, rgba(5,10,18,0.38) 100%);
    transition: opacity .25s ease;
}

.koe-games-showcase__content {
    position: absolute;
    left: 20px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.koe-games-showcase__card:not(.is-hero) .koe-games-showcase__content {
    left: 18px;
    right: 16px;
    bottom: 16px;
}

.koe-games-showcase__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding: 4px 8px 3px;
    color: #fff;
    background: rgba(8, 116, 201, 0.92);
    border-radius: 2px;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    box-shadow: 0 2px 9px rgba(0,0,0,.22);
}

.koe-games-showcase__post-title {
    display: block;
    max-width: 94%;
    color: #fff;
    font-size: 21px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 10px rgba(0,0,0,.45);
}

.koe-games-showcase__card.is-hero .koe-games-showcase__post-title {
    font-size: clamp(28px, 3vw, 36px);
    line-height: 1.08;
    max-width: 92%;
}

.koe-games-showcase__excerpt {
    display: block;
    margin-top: 12px;
    max-width: 82%;
    color: rgba(255,255,255,.9);
    font-size: 14px;
    line-height: 1.35;
    text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

.koe-games-showcase__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    text-shadow: 0 1px 6px rgba(0,0,0,.45);
    transition: transform .22s ease;
}

.koe-games-showcase__cta.is-button {
    min-height: 39px;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 3px;
    background: rgba(0,0,0,.18);
    backdrop-filter: blur(2px);
}

.koe-games-showcase__card:hover .koe-games-showcase__image,
.koe-games-showcase__card-link:focus .koe-games-showcase__image {
    transform: scale(1.045);
    filter: saturate(1.08) contrast(1.03);
}

.koe-games-showcase__card:hover .koe-games-showcase__cta,
.koe-games-showcase__card-link:focus .koe-games-showcase__cta {
    transform: translateX(4px);
}

.koe-games-showcase-empty {
    padding: 14px 16px;
    border: 1px dashed #d7dce2;
    border-radius: 4px;
    background: #fff;
    color: #6b7280;
    font-size: 13px;
}

@media (min-width: 768px) {
    .koe-games-showcase__grid {
        grid-template-rows: 1fr 1fr;
    }

    .koe-games-showcase__card:nth-child(2) {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        width: calc(50% - (var(--kg-gap) / 2));
    }

    .koe-games-showcase__card:nth-child(3) {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        justify-self: end;
        width: calc(50% - (var(--kg-gap) / 2));
    }

    .koe-games-showcase__card:nth-child(4) {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }
}

@media (max-width: 1024px) {
    .koe-games-showcase__grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .koe-games-showcase__card.is-hero,
    .koe-games-showcase__card,
    .koe-games-showcase__card:nth-child(2),
    .koe-games-showcase__card:nth-child(3),
    .koe-games-showcase__card:nth-child(4) {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
        justify-self: stretch;
        min-height: 260px;
    }

    .koe-games-showcase__card.is-hero {
        min-height: 390px;
    }
}

@media (max-width: 767px) {
    .koe-games-showcase {
        margin-bottom: 18px;
    }

    .koe-games-showcase__head {
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 10px;
    }

    .koe-games-showcase__icon,
    .koe-games-showcase__icon svg {
        width: 32px;
        height: 32px;
    }

    .koe-games-showcase__title {
        font-size: 21px;
    }

    .koe-games-showcase__subtitle {
        font-size: 12px;
    }

    .koe-games-showcase__all {
        padding-top: 5px;
        font-size: 12px;
    }

    .koe-games-showcase__grid {
        gap: 8px;
    }

    .koe-games-showcase__card,
    .koe-games-showcase__card.is-hero,
    .koe-games-showcase__card:nth-child(2),
    .koe-games-showcase__card:nth-child(3),
    .koe-games-showcase__card:nth-child(4) {
        min-height: 230px;
        border-radius: 4px;
    }

    .koe-games-showcase__card.is-hero {
        min-height: 310px;
    }

    .koe-games-showcase__content,
    .koe-games-showcase__card:not(.is-hero) .koe-games-showcase__content {
        left: 14px;
        right: 14px;
        bottom: 14px;
    }

    .koe-games-showcase__badge {
        margin-bottom: 8px;
        padding: 4px 7px 3px;
        font-size: 10px;
    }

    .koe-games-showcase__post-title,
    .koe-games-showcase__card.is-hero .koe-games-showcase__post-title {
        max-width: 96%;
        font-size: 22px;
        line-height: 1.12;
    }

    .koe-games-showcase__excerpt {
        max-width: 94%;
        margin-top: 9px;
        font-size: 13px;
    }

    .koe-games-showcase__cta {
        margin-top: 11px;
        font-size: 13px;
    }

    .koe-games-showcase__cta.is-button {
        min-height: 36px;
        padding: 0 14px;
    }
}

@media (max-width: 420px) {
    .koe-games-showcase__head {
        flex-direction: column;
    }

    .koe-games-showcase__all {
        padding-left: 44px;
    }
}
