@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

.fps-card {
    --fps-card-radius: 20px
    position: relative;
    display: block;
    width: 100%;
    min-height: 465px !important;
    overflow: hidden;
    border: 1 solid rgba(0,0,0,.16);
    border-radius: var(--fps-card-radius);
    background: #eee;
    cursor: pointer;
    isolation: isolate;
    transform: translateZ(0);
    transition: transform .28s ease, box-shadow .28s ease;
    font-family: "Inter", sans-serif;
}

.fps-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(0,0,0,.16);
}

.fps-card:focus-visible {
    outline: 3px solid rgba(30,110,255,.45);
    outline-offset: 3px;
}

.fps-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    z-index: -3;
}

.fps-card__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 38%,
        rgba(0,0,0,.10) 48%,
        rgba(0,0,0,.92) 100%
    );
    pointer-events: none;
    font-family: "Inter", sans-serif;
}

.fps-card__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 14px 18px;
    color: #fff;
    font-family: "Inter", sans-serif;
}

.fps-card__title {
    margin: 0 0 5px;
    color: #fff;
    font-size: clamp(25px, 2.2vw, 31px);
    line-height: 1.05;
    font-weight: 700;
    font-family: "Inter", sans-serif;
}

.fps-card__description {
    max-width: 95%;
    color: rgba(255,255,255,.92);
    font-size: 14px;
    line-height: 1.3;
    font-family: "Inter", sans-serif;
}

.fps-card__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin-top: 10px;
}

.fps-badge {
    display: inline-flex;
    align-items: center;
    gap: 0 !important;
}

.fps-badge__icon {
    width: 80% !important;
    height: auto !important;
    display: block;
    object-fit: contain;
    border-radius: 4px;
}

.fps-badge__text {
    color: #fff;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .02em;
    font-family: "Inter", sans-serif;
}

/* Popup */
.fps-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,.68);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}

.fps-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.fps-modal__dialog {
    position: relative;
    width: min(1180px, 100%);
    max-height: min(92vh, 1000px);
    overflow: auto;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 25px 80px rgba(0,0,0,.30);
    transform: translateY(16px) scale(.985);
    transition: transform .25s ease;
    overscroll-behavior: contain;
}

.fps-modal.is-open .fps-modal__dialog {
    transform: translateY(0) scale(1);
}

.fps-modal__close {
    position: sticky;
    float: right;
    top: 14px;
    z-index: 20;
    width: 38px;
    height: 38px;
    margin: 14px 14px -52px 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: #111;
    font-size: 24px;
    line-height: 38px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0,0,0,.12);
}

.fps-modal__content {
    min-height: 100px;
    font-family: "Inter", sans-serif;
}

.fps-modal__loading,
.fps-modal__error {
    padding: 80px 30px;
    text-align: center;
    font-size: 16px;
}

body.fps-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .fps-modal {
        padding: 8px;
        align-items: flex-end;
    }
    .fps-modal__dialog {
        width: 100%;
        max-height: 94vh;
        border-radius: 14px 14px 0 0;
    }
    .fps-card {
        min-height: 360px;
    }
}
