/* SDG Games: games.html, the list of games. Builds on css/product-page.css. */
.gm-hero .pp-wrap { position: relative; text-align: center; padding-top: 3.4rem; padding-bottom: 3.4rem; }
.gm-hero h1 { font-size: clamp(2.4rem, 6.5vw, 4rem); font-weight: 800; line-height: 1.05; margin: 0 0 .6rem; }
.gm-hero p { font-size: clamp(1.05rem, 2.4vw, 1.35rem); margin: 0 auto; opacity: .95; max-width: 34rem; }
.gm-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: 0 0 1.6rem; }
.gm-filter[hidden] { display: none; }
.gm-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.gm-grid > li[hidden] { display: none; }
.gm-card { position: relative; display: flex; flex-direction: column; background: var(--pp-surface); border: 1px solid var(--pp-line); border-radius: var(--pp-radius); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.gm-card:hover, .gm-card:focus-within { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(42,34,51,.18); }
.gm-card:focus-within { outline: 3px solid #86b7fe; outline-offset: 2px; }
.gm-art { position: relative; background: #0f1736; }
.gm-art img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.gm-badge { position: absolute; top: .6rem; right: .6rem; background: var(--pp-gold); color: var(--pp-gold-ink); font-weight: 800; font-size: .78rem; border-radius: 999px; padding: .2rem .7rem; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.gm-body { padding: .9rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.gm-tag { margin: 0 0 .2rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--pp-accent); }
.gm-card h2 { font-size: 1.3rem; line-height: 1.2; margin: 0 0 .35rem; color: var(--pp-primary); }
.gm-card h2 a { color: inherit; text-decoration: none; }
.gm-card h2 a::after { content: ""; position: absolute; inset: 0; }   /* the whole card is the link */
.gm-card h2 a:focus-visible { outline: none; }
.gm-blurb { margin: 0 0 .8rem; color: var(--pp-muted); }
.gm-chips { list-style: none; padding: 0; margin: 0 0 .9rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.gm-chips li { border: 1px solid var(--pp-line); border-radius: 999px; padding: .15rem .65rem; font-size: .85rem; background: var(--pp-bg); }
.gm-go { margin: auto 0 0; display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; font-weight: 600; }
.gm-price strong { font-size: 1.3rem; }
.gm-price s { color: var(--pp-muted); margin-right: .25rem; }
.gm-more { color: var(--pp-accent); white-space: nowrap; }
.gm-online { margin: .6rem 0 0; position: relative; z-index: 1; font-weight: 600; }   /* above the card-wide link */
.gm-online a { color: var(--pp-primary); text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .gm-card { transition: none; } .gm-card:hover { transform: none; } }

.gm-price.is-soon { font-size: .95rem; font-weight: 700; color: var(--pp-primary); }
.gm-card.is-shirt .gm-art { background: #fff; padding: .6rem; }
.gm-card.is-shirt .gm-art img { object-fit: contain; }
