.games-hub {
    --games-green: #157347;
    --games-green-dark: #0e5434;
    --games-ink: #172b26;
    --games-muted: #64716c;
    padding: 12px 0 28px;
    color: var(--games-ink);
}

.games-hub .games-hub__header {
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid #dfebe4;
    border-radius: 20px;
    background: linear-gradient(125deg, #f1f8f3, #fff 80%);
}

.games-hub .games-hub__intro {
    display: flex;
    align-items: center;
    gap: 18px;
}

.games-hub .games-hub__logo {
    flex: 0 0 64px;
    object-fit: contain;
}

.games-hub .games-hub__eyebrow {
    margin: 0 0 5px;
    color: var(--games-green);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.games-hub h1 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.games-hub .games-hub__subtitle {
    margin: 8px 0 0;
    color: var(--games-muted);
}

.games-hub .games-hub__token {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e0eae4;
    color: var(--games-muted);
    font-size: .8rem;
}

.games-hub .games-hub__token > a:not(#copyPlayLink) {
    min-width: 0;
    color: var(--games-green-dark);
    overflow-wrap: anywhere;
}

.games-hub #copyPlayLink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    border-radius: 8px;
    color: var(--games-green);
    text-decoration: none;
}

.games-hub #copyPlayLink:hover {
    background: #e2f0e7;
}

.games-hub .games-hub__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 24px;
    margin-top: 24px;
}

.games-hub .games-hub__card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e0e7e3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(27, 54, 40, .045);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.games-hub .games-hub__card:hover {
    border-color: #b8cfc0;
    box-shadow: 0 10px 26px rgba(27, 54, 40, .09);
}

.games-hub .games-hub__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #f1f4f2;
    border-bottom: 1px solid #e9eeeb;
}

.games-hub .games-hub__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.games-hub .games-hub__category {
    margin-bottom: 8px;
    color: var(--games-green);
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.games-hub .games-hub__body h2 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
}

.games-hub .games-hub__body > p {
    margin: 0 0 22px;
    color: var(--games-muted);
    font-size: .88rem;
    line-height: 1.6;
}

.games-hub .games-hub__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.games-hub .games-hub__button {
    display: inline-flex;
    flex: 1 1 115px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: .84rem;
    font-weight: 650;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: color .16s ease, background .16s ease, border-color .16s ease;
}

.games-hub .games-hub__button--play {
    border-color: var(--games-green);
    background: var(--games-green);
    color: #fff;
}

.games-hub .games-hub__button--play:hover {
    border-color: var(--games-green-dark);
    background: var(--games-green-dark);
    color: #fff;
}

.games-hub .games-hub__button--leaderboard {
    border-color: #c7d9cd;
    background: #f8fbf9;
    color: var(--games-green-dark);
}

.games-hub .games-hub__button--leaderboard:hover {
    border-color: #93b9a0;
    background: #eaf4ed;
    color: var(--games-green-dark);
}

.games-hub a:focus-visible {
    outline: 3px solid #62a87b;
    outline-offset: 3px;
}

@media (max-width: 991.98px) {
    .games-hub .games-hub__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 575.98px) {
    .games-hub .games-hub__header {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .games-hub .games-hub__intro {
        align-items: flex-start;
        gap: 12px;
    }

    .games-hub .games-hub__logo {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .games-hub .games-hub__token > span {
        flex-basis: 100%;
    }

    .games-hub .games-hub__grid {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: auto;
        gap: 20px;
    }

    .games-hub .games-hub__body {
        padding: 18px;
    }

    .games-hub .games-hub__button {
        font-size: .92rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .games-hub .games-hub__card,
    .games-hub .games-hub__button {
        transition: none;
    }
}
