/* =========================
   GRID
========================= */

.games-grid{
    display:grid;
    grid-template-columns:repeat(5, 1fr);
    gap:20px;
    max-width:1920px;
    margin:0 auto;
    padding:20px;
}

/* =========================
   CARD
========================= */

.game-card{
    position:relative;
    border-radius:2px;
    overflow:hidden;
    height:580px;
    min-height:550px;
    background:#0f2442;
    cursor:pointer;
    transition:transform .25s ease, box-shadow .25s ease;
}

.game-card:hover{
    transform:translateY(-6px) scale(1.04);
    box-shadow:0 15px 35px rgba(0,0,0,.4);
}

/* =========================
   MEDIA
========================= */

.game-media{
    position:relative;
    width:100%;
    height:100%;
    overflow:hidden;
}

/* IMAGE */
.game-image{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:2;
    opacity:1;
    transition:opacity .4s ease, transform .6s ease;
}

/* VIDEO */
.game-video{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:1;
    opacity:0;
    transition:opacity .4s ease;
    pointer-events:none;
}

/* HOVER SWITCH */
.game-card:hover .game-image{
    opacity:0;
    transform:scale(1.08);
}

.game-card:hover .game-video{
    opacity:1;
}

/* =========================
   OVERLAY
========================= */

.game-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.85),
        transparent 60%
    );
    z-index:3;
}

/* =========================
   LOGO (CENTER BOTTOM)
========================= */

.game-logo{
    position:absolute;
    bottom:16px;
    left:50%;
    transform:translateX(-50%);
    width:65%;
    max-width:180px;
    z-index:5;
    filter:drop-shadow(0 8px 20px rgba(0,0,0,.9));
    transition:transform .3s ease;
}

.game-card:hover .game-logo{
    transform:translateX(-50%) translateY(-5px);
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:1200px){
    .games-grid{
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:768px){
    .games-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:480px){
    .games-grid{
        grid-template-columns:repeat(1,1fr);
    }
}
.game-link{
    text-decoration:none;
    color:inherit;
    display:contents;
}