/* ─── Download cards: hairline blocks on canvas ─── */

.section-downloads {
    background-color: #201d1d;
    padding: 64px 0 0;
}

.downloads-group {
    margin-bottom: 48px;
}

.downloads-group:last-child {
    margin-bottom: 0;
}

.downloads-group__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: #fdfcfc;
    text-align: left;
    margin-bottom: 24px;
    letter-spacing: 0;
    text-transform: none;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(253, 252, 252, 0.12);
}

.downloads-group__title::before {
    content: "[+] ";
    font-weight: 700;
}

.downloads-divider {
    width: 100%;
    height: 1px;
    margin: 0 0 48px;
    background-color: rgba(253, 252, 252, 0.12);
}

.file-meta {
    display: block;
    font-size: 14px;
    font-weight: 400;
    line-height: 2;
    color: #9a9898;
    letter-spacing: 0;
    margin-top: 8px;
    text-align: left;
}

.games-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    margin: -8px;
}

.games-grid > * {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 30%;
    flex: 0 0 30%;
    width: 30%;
    max-width: 33.333%;
    margin: 8px;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -ms-flex: 0 0 calc(33.333% - 16px);
    flex: 0 0 calc(33.333% - 16px);
    width: calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
}

.game-card {
    background-color: #201d1d;
    border: 1px solid rgba(253, 252, 252, 0.12);
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    opacity: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-transition: background-color 0.15s ease;
    -moz-transition: background-color 0.15s ease;
    -o-transition: background-color 0.15s ease;
    transition: background-color 0.15s ease;
}

.game-card:hover,
.game-card:active {
    background-color: #302c2c;
}

.game-image {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(253, 252, 252, 0.12);
    background-color: #201d1d;
    padding-bottom: 50%;
}

.game-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

@supports (aspect-ratio: 1) {
    .game-image {
        aspect-ratio: 2 / 1;
        padding-bottom: 0;
        position: relative;
    }

    .game-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

.game-info {
    padding: 16px;
    text-align: left;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}

.game-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 8px;
    color: #fdfcfc;
}

.game-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #c4c2c2;
    letter-spacing: 0;
    margin-bottom: 16px;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}

@media (max-width: 850px) {
    .section-downloads {
        padding-top: 48px;
    }

    .games-grid {
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }

    .games-grid > * {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 45%;
        flex: 0 0 45%;
        width: 45%;
        max-width: 50%;
        -ms-flex: 0 0 calc(50% - 16px);
        flex: 0 0 calc(50% - 16px);
        width: calc(50% - 16px);
        max-width: calc(50% - 16px);
    }
}

@media (max-width: 640px) {
    .section-downloads {
        padding-top: 32px;
    }

    .downloads-group {
        margin-bottom: 24px;
    }

    .downloads-divider {
        margin-bottom: 24px;
    }

    .game-info {
        padding: 12px;
    }

    .game-title {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .game-description {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .file-meta {
        font-size: 12px;
        margin-top: 4px;
    }
}
