/* TavernWall v6.3.4 Games Hub Card Polish */

/* Make the games page look like a launcher, not a giant poster wall */
.games-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    max-width: 1060px;
}

.game-card {
    display: grid !important;
    grid-template-columns: 240px minmax(0, 1fr) !important;
    align-items: stretch !important;
    min-height: 190px !important;
    max-height: none !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.game-thumb {
    height: 100% !important;
    min-height: 190px !important;
    border-bottom: 0 !important;
    border-right: 1px solid rgba(255,217,85,.16) !important;
    background:
        radial-gradient(circle at center, rgba(255,217,85,.12), transparent 45%),
        rgba(0,0,0,.2) !important;
}

.game-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.game-card-body {
    padding: 18px 20px !important;
    display: grid !important;
    align-content: center !important;
    gap: 9px !important;
}

.game-card h2 {
    font-size: 28px !important;
    line-height: 1.1 !important;
    margin: 0 !important;
}

.game-card p {
    max-width: 720px;
    margin: 0 !important;
    line-height: 1.45 !important;
}

.game-tags,
.game-stats {
    margin: 0 !important;
}

.game-tags span,
.game-stats span {
    font-size: 11px !important;
    padding: 4px 8px !important;
}

.game-card .button {
    width: fit-content !important;
    min-width: 130px !important;
    margin-top: 4px !important;
}

/* If only one game exists, don't make it feel oversized */
.games-grid .game-card:only-child {
    max-width: 980px;
}

/* Slightly tighten the Games intro */
.games-hero {
    max-width: 1060px;
}

.game-filter-bar {
    max-width: 1060px;
}

@media (max-width: 760px) {
    .game-card {
        grid-template-columns: 1fr !important;
    }

    .game-thumb {
        height: 150px !important;
        min-height: 150px !important;
        border-right: 0 !important;
        border-bottom: 1px solid rgba(255,217,85,.16) !important;
    }

    .game-card h2 {
        font-size: 24px !important;
    }

    .game-card .button {
        width: 100% !important;
    }
}
