/* ==========================
   GAMES LANDING PAGE
========================== */

.games-page {
    min-height: 260px;
    margin: 0;
    padding: 20px;

    background:
        radial-gradient(circle, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.04)),
        #fff0b8;
    background-size: 7px 7px, 100% 100%, 100% 100%;

    border-right: 4px solid #111;
    border-bottom: 4px solid #111;
    border-left: 4px solid #111;
}

.games-title-panel {
    position: relative;
    overflow: hidden;

    margin: 0 0 14px;
    padding: 12px 14px 14px;

    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.23) 2px, transparent 2px),
        linear-gradient(135deg, #225f94, #2f89c7);
    background-size: 12px 12px, 100% 100%;

    border: 5px solid #111;
    text-align: center;
}

.games-title-panel::before,
.games-title-panel::after {
    content: "";
    position: absolute;
    width: 82px;
    height: 82px;
    background: #d92d1f;
    border: 4px solid #111;
    transform: rotate(45deg);
}

.games-title-panel::before {
    top: -58px;
    left: -38px;
}

.games-title-panel::after {
    right: -38px;
    bottom: -58px;
}

.games-title-panel h1 {
    position: relative;
    z-index: 1;

    margin: 0;
    color: #f6d13d;

    font-family: Impact, "Arial Black", Arial, sans-serif;
    font-size: clamp(3.2rem, 9vw, 5.8rem);
    font-style: italic;
    line-height: 0.88;
    letter-spacing: 0.02em;
    text-transform: uppercase;

    -webkit-text-stroke: 3px #111;
    text-shadow: 6px 6px 0 #111;
    transform: rotate(-1deg);
}

.games-title-panel p {
    position: relative;
    z-index: 1;
    display: inline-block;

    margin: 10px 0 0;
    padding: 6px 16px;

    background: #fff0b8;
    border: 3px solid #111;

    font-size: clamp(0.88rem, 2vw, 1.08rem);
    font-style: italic;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.game-card {
    display: block;
    min-width: 0;

    background: #111;
    border: 4px solid #111;
    color: inherit;
    outline: 3px solid transparent;
    outline-offset: 2px;
    text-decoration: none;

    transition:
        transform 180ms ease,
        outline-color 180ms ease,
        filter 180ms ease;
}

.game-card-featured {
    grid-column: 1 / -1;
}

.game-card img,
.games-coming-soon img {
    display: block;
    width: 100%;
    height: auto;
}

.game-card:hover,
.game-card:focus-visible {
    z-index: 2;
    outline-color: #d92d1f;
    transform: translateY(-4px) scale(1.012);
}

.game-card:hover img,
.game-card:focus-visible img {
    filter: saturate(1.08) contrast(1.03) brightness(1.02);
}

.game-card:active {
    transform: translateY(1px) scale(0.995);
}

.games-coming-soon {
    margin-top: 14px;
    border: 4px solid #111;
}

@media (max-width: 900px) {
    .games-page {
        padding: 14px;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .game-card-featured {
        grid-column: auto;
    }
}

@media (max-width: 760px) {
    .games-page {
        min-height: auto;
        padding: 12px 10px 16px;
        border-right: 0;
        border-left: 0;
    }

    .games-title-panel {
        margin-bottom: 12px;
        border-width: 4px;
    }

    .games-title-panel h1 {
        max-width: 100%;
        font-size: clamp(2.2rem, 13vw, 3.4rem);
        line-height: 0.95;
        white-space: nowrap;
        -webkit-text-stroke-width: 2px;
        text-shadow: 4px 4px 0 #111;
    }

    .games-title-panel p {
        max-width: 94%;
        text-wrap: balance;
    }

    .game-card,
    .games-coming-soon {
        border-width: 3px;
    }

    .games-coming-soon {
        margin-top: 12px;
    }
}

@media (hover: none) {
    .game-card:hover {
        outline-color: transparent;
        transform: none;
    }

    .game-card:hover img {
        filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .game-card {
        transition: none;
    }

    .game-card:hover,
    .game-card:focus-visible,
    .game-card:active {
        transform: none;
    }
}
