/* A game card. Shared by the games hub and the "learn through play" strip on
   the home page, so both stay in step as games are added. */

/* auto-fit so the shelf reads well with one game or with nine: empty tracks
   collapse and what is there stays centred, rather than clinging to the left */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 380px));
    justify-content: center;
    gap: 22px;
    margin-top: 26px;
}
.gcard {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        border-color 0.2s;
}
.gcard:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lift);
    border-color: var(--blue);
}
.gcard .art {
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
    font-size: 72px;
    position: relative;
}
.gcard .meta {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
}
.gcard .meta span {
    font-family: "DM Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
    border-radius: 999px;
    padding: 5px 10px;
}
.gcard .body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.gcard h3 {
    font-size: 21px;
    font-weight: 700;
}
.gcard p {
    font-size: 14.5px;
    color: var(--ink-soft);
    flex: 1;
}
.gcard .play {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--blue);
    margin-top: 2px;
}
.gcard.soon {
    opacity: 0.72;
}
.gcard.soon:hover {
    transform: none;
    border-color: var(--line);
    box-shadow: var(--shadow-card);
}
.gcard.soon .play {
    color: var(--ink-soft);
}
