/* ==========================================================================
   The games page (/games/index.cfm): a card for each season game, drawn by
   /games/games.js. The stage and the white sheet are site.css's "Inner
   pages"; every colour here is a token, apart from each season's own night
   on its card's art (the games' own skies).
   ========================================================================== */

.games-section { padding-bottom: clamp(56px, 7vw, 88px); }

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.games-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--site-line);
    border-radius: 16px;
    background: var(--site-paper);
}

/* The one that plays this season */
.games-card.is-now {
    border-color: var(--site-brand);
    box-shadow: 0 10px 30px rgba(242, 101, 32, 0.15);
}

/* The art: the season's own night and its icon */
.games-card__art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
}

.games-card--halloween .games-card__art { background: linear-gradient(160deg, #2a1a3e, #120b1c); }
.games-card--thanksgiving .games-card__art { background: linear-gradient(160deg, #3a1712, #120707); }
.games-card--christmas .games-card__art { background: linear-gradient(160deg, #123326, #040d0a); }

.games-card__art img {
    width: 72px;
    height: auto;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

.games-card__flag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--site-brand);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.games-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 20px 20px;
}

.games-card__season {
    margin: 0;
    color: var(--site-ink-soft);
    font-size: 14px;
}

.games-card__name {
    margin: 2px 0 8px;
    color: var(--site-ink);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.games-card__how {
    margin: 0 0 12px;
    color: var(--site-ink-soft);
    font-size: 15px;
    line-height: 1.5;
}

.games-card__best {
    margin: 0 0 16px;
    color: var(--site-ink);
    font-size: 14px;
    font-weight: 600;
}

.games-card__play {
    align-self: flex-start;
    margin-top: auto;
}

.games-card__back {
    margin: auto 0 0;
    color: var(--site-ink-soft);
    font-size: 15px;
    font-weight: 600;
}

.games-note {
    margin: 0;
    color: var(--site-ink-soft);
    font-size: 16px;
}
