﻿.gm, .gm-box {
    color: #283e31
}

.gm {
    margin: 1rem auto 3rem;
    max-width: 1200px
}

    .gm h1, .gm h2, .gm h3, .gm-box h2, .gm-box h3 {
        font-family: 'Noto Serif','Times New Roman',serif
    }

.gm-hero {
    background: linear-gradient(95deg,#173a30 8%,#183d32d9 50%,#183d3266),url('../Images/hero.png') center/cover;
    padding: clamp(2rem,6vw,5rem);
    border-radius: 18px;
    color: white
}

    .gm-hero h1 {
        font-size: clamp(3rem,7vw,6rem);
        color: white
    }

    .gm-hero p {
        max-width: 32rem;
        font-size: 1.25rem
    }

    .gm-hero a {
        display: inline-block;
        background: #ffecc8;
        color: #263d30;
        margin: .4rem .5rem .4rem 0;
        padding: .7rem 1rem;
        border-radius: 6px;
        font-weight: bold
    }

        .gm-hero a + a {
            color: white;
            background: #304f40
        }

.gm-box, .gm-grid article {
    background: #fffdf7;
    border: 1px solid #d7d0bc;
    border-radius: 14px
}

.gm-box {
    margin: 1.25rem 0;
    padding: clamp(1rem,2vw,1.6rem)
}

    .gm-box summary {
        cursor: pointer;
        font-weight: bold
    }

    .gm-box progress {
        width: min(100%,30rem);
        accent-color: #325944
    }

.gm-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 1rem
}

    .gm-grid article, .gm-copy {
        display: flex;
        flex-direction: column
    }

    .gm-grid article {
        overflow: hidden
    }

.gm-copy {
    flex: 1;
    padding: 1.2rem
}

    .gm-copy small {
        color: #775827
    }

    .gm-copy h3 {
        font-size: 1.6rem;
        margin: .6rem 0
    }

.gm-game {
    margin-top: auto;
    border-top: 1px solid #dbd4c1;
    padding-top: .7rem
}

.gm-copy a, .gm-box a {
    color: #28533d;
    font-weight: 700
}

.gm-art {
    background: #ece6d5;
    display: flex;
    align-items: end;
    justify-content: space-between;
    padding: 1rem;
    color: #39533d;
    font-weight: bold;
    letter-spacing: .1em
}

    .gm-art img {
        height: 96px;
        max-width: 55%;
        object-fit: contain
    }

.gm-box button {
    padding: .55rem .85rem;
    margin: .35rem;
    border: 1px solid #8a9b88;
    border-radius: 6px;
    background: #f1f4e9;
    color: #244c39
}

    .gm-box button:disabled {
        opacity: .45
    }

.gm-box dialog {
    width: min(85vw,48rem);
    padding: 1.5rem;
    border: 1px solid #c6c1af;
    border-radius: 12px
}

    .gm-box dialog::backdrop {
        background: #172e25aa
    }

@media(max-width:800px) {
    .gm-grid {
        grid-template-columns: 1fr
    }

    .gm-box dialog {
        width: 95vw
    }
}
