/* ─── Patrix Fantasy 32x — page chrome on top of css/v2 ─── */

.pf-page .section-downloads {
    padding-bottom: 64px;
}

/* ─── Top nav (v2 has no nav.css) ─── */

.pf-nav {
    position: relative;
    z-index: 10;
    background-color: #201d1d;
    border-bottom: 1px solid rgba(253, 252, 252, 0.12);
}

@supports (position: sticky) {
    .pf-nav {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
    }
}

.pf-nav__inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    min-height: 56px;
}

.pf-nav__brand {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: #fdfcfc;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin-right: 16px;
}

.pf-nav__link {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #fdfcfc;
    text-decoration: underline;
    white-space: nowrap;
}

.pf-nav__link:active {
    color: #fdfcfc;
}

.pf-nav__link:focus {
    outline: 2px solid #fdfcfc;
    outline-offset: 2px;
}

/* Selectors Level 4: regla aislada. */
.pf-nav__link:focus-visible {
    outline: 2px solid #fdfcfc;
    outline-offset: 2px;
}

.pf-nav__arrow {
    font-weight: 500;
}

/* ─── Single download card: one home-page module, not a 3-col leftover ─── */

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

.pf-page .games-grid > * {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    width: 100%;
    max-width: 360px;
}

/* ─── Download button icon (not in v2/buttons.css) ─── */

.btn-download__icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

/* ─── Preview stack ─── */

.pf-previews {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.pf-previews__frame {
    width: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(253, 252, 252, 0.12);
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    background-color: #201d1d;
    margin-bottom: 24px;
}

.pf-previews__frame:last-child {
    margin-bottom: 0;
}

.pf-previews__frame::before {
    content: "";
    display: block;
    padding-bottom: 56.25%;
}

.pf-previews__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

@supports (gap: 24px) {
    .pf-previews {
        gap: 24px;
    }

    .pf-previews__frame {
        margin-bottom: 0;
    }
}

@supports (aspect-ratio: 1) {
    .pf-previews__frame::before {
        display: none;
        padding-bottom: 0;
    }

    .pf-previews__img {
        position: static;
        height: auto;
        aspect-ratio: 16 / 9;
        -o-object-fit: cover;
        object-fit: cover;
    }
}

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

    .pf-page .games-grid > * {
        -ms-flex: 0 0 calc(100% - 16px);
        flex: 0 0 calc(100% - 16px);
        width: calc(100% - 16px);
        max-width: calc(100% - 16px);
    }
}

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

    .pf-nav__inner {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        min-height: 0;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .pf-nav__brand,
    .pf-nav__link {
        font-size: 14px;
    }

    .pf-previews__frame {
        margin-bottom: 16px;
    }
}

@supports (gap: 16px) {
    @media (max-width: 640px) {
        .pf-previews {
            gap: 16px;
        }

        .pf-previews__frame {
            margin-bottom: 0;
        }
    }
}
