.fmm-archive,
.fmm-slider,
.fmm-single {
    direction: rtl;
    box-sizing: border-box;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px 14px;
    color: #16181d;
    font-family: inherit;
}

.fmm-archive *,
.fmm-slider *,
.fmm-single * {
    box-sizing: border-box;
}

.fmm-archive svg,
.fmm-slider svg,
.fmm-single svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.fmm-archive-head,
.fmm-slider-head {
    margin-bottom: 18px;
    text-align: right;
}

.fmm-kicker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #fff4e9;
    border: 1px solid #ffd5ad;
    color: #a64c00;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
}

.fmm-archive-head h2,
.fmm-slider-head h2 {
    margin: 10px 0 7px;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.25;
}

.fmm-archive-head p,
.fmm-slider-head p {
    margin: 0;
    color: #5b6472;
    line-height: 1.9;
}

.fmm-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}

.fmm-search,
.fmm-term-search {
    position: relative;
    display: flex;
    align-items: center;
}

.fmm-search span,
.fmm-term-search span {
    position: absolute;
    right: 13px;
    color: #6b7280;
    display: inline-flex;
}

.fmm-search input,
.fmm-term-search input,
.fmm-sort {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d7dce3;
    border-radius: 14px;
    background: #fff;
    color: #1f2937;
    padding: 0 42px 0 14px;
    font: inherit;
    outline: none;
}

.fmm-sort {
    padding: 0 12px;
}

.fmm-search input:focus,
.fmm-term-search input:focus,
.fmm-sort:focus {
    border-color: #ff7a00;
    box-shadow: 0 0 0 3px rgba(255,122,0,.12);
}

.fmm-filter-open,
.fmm-card-action,
.fmm-download-button,
.fmm-apply {
    border: 0;
    border-radius: 14px;
    background: #ff7a00;
    color: #fff;
    min-height: 46px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
}

.fmm-filter-open:hover,
.fmm-card-action:hover,
.fmm-download-button:hover,
.fmm-apply:hover {
    color: #fff;
    background: #e96e00;
    text-decoration: none;
}

.fmm-grid {
    display: grid;
    grid-template-columns: repeat(var(--fmm-cols, 4), minmax(0, 1fr));
    gap: 16px;
}

.fmm-card {
    min-width: 0;
    border: 1px solid #e1e5ea;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(17,24,39,.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.fmm-card:hover {
    transform: translateY(-3px);
    border-color: #ffbe82;
    box-shadow: 0 14px 30px rgba(17,24,39,.10);
}

.fmm-card-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: #111827;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
}

.fmm-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}

.fmm-card:hover .fmm-card-cover img {
    transform: scale(1.04);
}

.fmm-no-cover {
    width: 100%;
    height: 100%;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1f2937;
    color: #ffb46b;
}

.fmm-no-cover svg {
    width: 56px;
    height: 56px;
}

.fmm-card-body {
    padding: 14px;
}

.fmm-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
}

.fmm-card h3 a {
    color: #15171c;
    text-decoration: none;
}

.fmm-card h3 a:hover {
    color: #ff7a00;
}

.fmm-card p {
    min-height: 48px;
    margin: 8px 0 12px;
    color: #596273;
    font-size: 14px;
    line-height: 1.75;
}

.fmm-badges,
.fmm-single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.fmm-badges span,
.fmm-single-tags span {
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 700;
}

.fmm-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}

.fmm-downloads,
.fmm-single-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4b5563;
    font-weight: 800;
    white-space: nowrap;
}

.fmm-card-action {
    min-height: 38px;
    border-radius: 12px;
    padding: 0 13px;
}

.fmm-state,
.fmm-empty {
    margin: 12px 0;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f9fafb;
    padding: 14px;
    color: #4b5563;
    text-align: center;
}

.fmm-state.is-error {
    border-color: #fecaca;
    background: #fff1f2;
    color: #b91c1c;
}

.fmm-archive.is-loading .fmm-grid {
    opacity: .45;
    pointer-events: none;
}

.fmm-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 22px;
}

.fmm-pagination button {
    min-width: 40px;
    min-height: 40px;
    border: 1px solid #d7dce3;
    border-radius: 12px;
    background: #fff;
    color: #1f2937;
    cursor: pointer;
    font-weight: 800;
}

.fmm-pagination button.is-current {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.fmm-pagination button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.fmm-modal[hidden] {
    display: none !important;
}

.fmm-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.fmm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17,24,39,.58);
}

.fmm-modal-panel {
    position: relative;
    width: min(760px, 100%);
    max-height: min(760px, 92vh);
    overflow: auto;
    background: #fff;
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 30px 90px rgba(0,0,0,.28);
}

.fmm-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.fmm-modal-head strong {
    font-size: 20px;
}

.fmm-modal-head button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.fmm-filter-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0;
}

.fmm-filter-tabs button {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f9fafb;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    font-weight: 800;
    color: #374151;
}

.fmm-filter-tabs button.is-active {
    border-color: #ff7a00;
    background: #fff4e9;
    color: #a64c00;
}

.fmm-term-search-wrap {
    margin-bottom: 12px;
}

.fmm-term-search-title {
    display: block;
    margin-bottom: 7px;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

.fmm-filter-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.fmm-filter-panel[hidden] {
    display: none !important;
}

.fmm-check {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    padding: 11px 12px;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.fmm-check input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.fmm-check span {
    flex: 1;
    font-weight: 800;
    color: #1f2937;
}

.fmm-check em {
    font-style: normal;
    color: #6b7280;
    font-size: 12px;
}

.fmm-check.is-selected {
    border-color: #ff7a00;
    background: #ff7a00;
}

.fmm-check.is-selected span,
.fmm-check.is-selected em {
    color: #fff;
}

.fmm-check:focus-within {
    outline: none;
    box-shadow: none;
}

.fmm-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: sticky;
    bottom: -16px;
    margin: 8px -16px -16px;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
}

.fmm-reset {
    border: 1px solid #d7dce3;
    border-radius: 14px;
    background: #f9fafb;
    color: #1f2937;
    min-height: 46px;
    font-weight: 800;
    cursor: pointer;
}

.fmm-seo-box {
    margin-top: 26px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fafafa;
    padding: 18px;
    color: #4b5563;
    line-height: 1.9;
}

.fmm-seo-box h2 {
    margin: 0 0 8px;
    color: #111827;
}

.fmm-slider {
    position: relative;
}

.fmm-slider-view {
    overflow: hidden;
}

.fmm-slider-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding: 4px 0 10px;
}

.fmm-slide {
    flex: 0 0 min(300px, 82vw);
    scroll-snap-align: start;
}

.fmm-slider-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(17,24,39,.12);
    cursor: pointer;
    font-size: 24px;
}

.fmm-next { right: 4px; }
.fmm-prev { left: 4px; }

.fmm-single {
    max-width: 1180px;
}

.fmm-single-hero {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
    margin-bottom: 22px;
}

.fmm-single-cover {
    border-radius: 22px;
    overflow: hidden;
    background: #111827;
    min-height: 260px;
    border: 1px solid #e5e7eb;
}

.fmm-single-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fmm-single-main {
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #fff;
    padding: clamp(18px, 3vw, 30px);
    box-shadow: 0 12px 30px rgba(17,24,39,.06);
}

.fmm-single-main h1 {
    margin: 12px 0 10px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.2;
}

.fmm-single-main p {
    color: #596273;
    line-height: 1.9;
    margin: 0 0 14px;
}

.fmm-single-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.fmm-download-button {
    min-height: 52px;
    padding: 0 22px;
    font-size: 16px;
}

.fmm-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
}

.fmm-single-description,
.fmm-info-card,
.fmm-related {
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 8px 22px rgba(17,24,39,.04);
}

.fmm-single-description h2,
.fmm-info-card h2,
.fmm-related h2 {
    margin: 0 0 12px;
}

.fmm-content {
    line-height: 2;
    color: #374151;
}

.fmm-info-card div:not(.fmm-link-stack) {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f5;
}

.fmm-info-card span {
    color: #6b7280;
}

.fmm-info-card strong {
    color: #111827;
    word-break: break-word;
}

.fmm-link-stack {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.fmm-link-stack a {
    display: flex;
    justify-content: center;
    border-radius: 13px;
    border: 1px solid #d7dce3;
    background: #f9fafb;
    color: #1f2937;
    padding: 10px;
    text-decoration: none;
    font-weight: 800;
}

.fmm-related {
    margin-top: 20px;
}

@media (max-width: 980px) {
    .fmm-toolbar,
    .fmm-single-hero,
    .fmm-single-layout {
        grid-template-columns: 1fr;
    }

    .fmm-filter-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fmm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .fmm-archive,
    .fmm-slider,
    .fmm-single {
        padding-left: 10px;
        padding-right: 10px;
    }

    .fmm-grid {
        grid-template-columns: repeat(var(--fmm-mobile-cols, 1), minmax(0, 1fr));
        gap: 12px;
    }

    .fmm-filter-panel,
    .fmm-modal-actions {
        grid-template-columns: 1fr;
    }

    .fmm-modal {
        padding: 8px;
        align-items: flex-end;
    }

    .fmm-modal-panel {
        border-radius: 20px 20px 0 0;
        max-height: 88vh;
    }

    .fmm-card p {
        min-height: 0;
    }
}

/* Requested update: square images, fixed responsive grids, skin-style slider controls, single-page specs and tabs */
.fmm-card-cover,
.fmm-single-cover,
.fmm-gallery-grid a {
    aspect-ratio: 1 / 1;
}

.fmm-single-cover {
    min-height: 0;
}

.fmm-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fmm-slider {
    --fmm-slider-cols: 4;
    --fmm-slider-tablet-cols: 3;
    --fmm-slider-mobile-cols: 2;
    --fmm-slider-gap: 16px;
    --fmm-slider-gap-total: 48px;
    --fmm-slider-tablet-gap-total: 28px;
    --fmm-slider-mobile-gap-total: 12px;
}

.fmm-slider-shell {
    width: 100%;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    gap: 12px;
    align-items: center;
    direction: ltr;
}

.fmm-next {
    grid-column: 1;
}

.fmm-prev {
    grid-column: 3;
}

.fmm-slider-view {
    min-width: 0;
    overflow: hidden;
    direction: rtl;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}

.fmm-slider-track {
    display: flex;
    gap: var(--fmm-slider-gap);
    overflow: visible;
    scroll-snap-type: none;
    scrollbar-width: auto;
    padding: 4px 0 10px;
    direction: rtl;
    will-change: transform;
    transition: transform .28s ease;
}

.fmm-slider-track.is-dragging {
    transition: none;
}

.fmm-slider-track .fmm-card {
    flex: 0 0 calc((100% - var(--fmm-slider-gap-total)) / var(--fmm-slider-cols));
    direction: rtl;
}

.fmm-slide {
    flex: initial;
    scroll-snap-align: initial;
}

.fmm-slider-nav {
    position: static;
    z-index: 1;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e2e2;
    border-radius: 999px;
    background: #fff;
    color: #555;
    cursor: pointer;
    font: inherit;
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(0,0,0,.06);
    transition: transform .16s ease, opacity .16s ease, border-color .16s ease;
}

.fmm-slider-nav:hover,
.fmm-slider-nav:focus-visible {
    transform: translateY(-1px);
    border-color: #d2d2d2;
    color: #444;
    outline: none;
}

.fmm-slider-nav[disabled] {
    opacity: .36;
    cursor: default;
    transform: none;
}

.fmm-slider-dots {
    width: 100%;
    min-height: 18px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    direction: rtl;
}

.fmm-slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d2d2d2;
    cursor: pointer;
    transition: width .18s ease, background-color .18s ease, opacity .18s ease;
}

.fmm-slider-dot.is-active {
    width: 20px;
    background: #ff7a00;
}

.fmm-single-hero {
    grid-template-columns: 320px minmax(0, 1fr) 320px;
}

.fmm-single-main,
.fmm-info-card {
    min-width: 0;
}

.fmm-single-tabs {
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 8px 22px rgba(17,24,39,.04);
    margin-top: 22px;
}

.fmm-tab-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.fmm-tab-buttons button {
    min-height: 46px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f9fafb;
    color: #374151;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.fmm-tab-buttons button.is-active {
    border-color: #ff7a00;
    background: #fff4e9;
    color: #a64c00;
}

.fmm-tab-panel[hidden] {
    display: none !important;
}

.fmm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.fmm-gallery-grid a {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    background: #111827;
}

.fmm-gallery-grid img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.fmm-version-downloads {
    display: grid;
    gap: 12px;
}

.fmm-version-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f9fafb;
    padding: 14px;
}

.fmm-version-card h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.fmm-version-card span {
    display: inline-flex;
    color: #4b5563;
    font-weight: 800;
    margin-bottom: 6px;
}

.fmm-version-card p {
    margin: 0;
    color: #596273;
    line-height: 1.8;
}

@media (min-width: 641px) and (max-width: 980px) {
    .fmm-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fmm-slider {
        --fmm-slider-cols: var(--fmm-slider-tablet-cols, 3);
        --fmm-slider-gap: 14px;
        --fmm-slider-gap-total: var(--fmm-slider-tablet-gap-total, 28px);
    }

    .fmm-single-hero {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .fmm-single-hero .fmm-info-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .fmm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fmm-slider {
        --fmm-slider-cols: var(--fmm-slider-mobile-cols, 2);
        --fmm-slider-gap: 12px;
        --fmm-slider-gap-total: var(--fmm-slider-mobile-gap-total, 12px);
    }

    .fmm-slider-shell {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        gap: 8px;
    }

    .fmm-slider-nav {
        width: 38px;
        height: 38px;
        font-size: 24px;
    }

    .fmm-single-hero {
        grid-template-columns: 1fr;
    }

    .fmm-tab-buttons,
    .fmm-gallery-grid,
    .fmm-version-card {
        grid-template-columns: 1fr;
    }
}

/* update: requested single-mod layout, full square images, gallery lightbox and horizontal downloads */
.fmm-single {
    max-width: 1260px;
    padding-left: 18px;
    padding-right: 18px;
}

.fmm-card-cover,
.fmm-single-cover,
.fmm-gallery-item,
.fmm-gallery-grid a {
    aspect-ratio: 1 / 1;
}

.fmm-card-cover,
.fmm-single-cover,
.fmm-gallery-item,
.fmm-gallery-grid a {
    background: #f7f8fa;
}

.fmm-card-cover img,
.fmm-single-cover img,
.fmm-gallery-grid img {
    object-fit: contain !important;
}

.fmm-card:hover .fmm-card-cover img {
    transform: none;
}

.fmm-single-hero {
    grid-template-columns: minmax(250px, 340px) minmax(0, 1fr) minmax(260px, 310px);
    gap: 20px;
    max-width: 1260px;
    margin-left: auto;
    margin-right: auto;
    align-items: start;
}

.fmm-single-cover {
    width: 100%;
    min-height: 0;
}

.fmm-single-cover img {
    background: #f7f8fa;
}

.fmm-single-main h1 {
    margin-top: 0;
}

.fmm-single-actions {
    margin-top: 16px;
}

.fmm-single-count {
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #f9fafb;
    padding: 9px 13px;
}

.fmm-info-card {
    width: 100%;
}

.fmm-info-card a.fmm-dependency-link {
    color: #ff7a00;
    text-decoration: none;
}

.fmm-info-card a.fmm-dependency-link:hover {
    text-decoration: underline;
}

.fmm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.fmm-gallery-item {
    width: 100%;
    display: block;
    border: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    cursor: zoom-in;
}

.fmm-gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
}

.fmm-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px;
    background: rgba(0,0,0,.78);
}

.fmm-gallery-lightbox img {
    max-width: min(1100px, 94vw);
    max-height: 88vh;
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
}

.fmm-gallery-close {
    position: fixed;
    top: 18px;
    left: 18px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}

.fmm-version-downloads {
    display: grid;
    gap: 12px;
    overflow-x: auto;
}

.fmm-version-card {
    display: grid;
    grid-template-columns: minmax(150px, 1.1fr) minmax(220px, 2fr) auto auto;
    gap: 14px;
    align-items: center;
}

.fmm-version-card h3,
.fmm-version-card p,
.fmm-version-card span {
    margin: 0;
}

.fmm-version-card h3 {
    font-size: 17px;
}

.fmm-version-card p {
    min-height: 0;
    line-height: 1.8;
}

.fmm-version-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border: 1px solid #ffd5ad;
    border-radius: 12px;
    background: #fff4e9;
    color: #a64c00 !important;
    padding: 0 12px;
    white-space: nowrap;
}

.fmm-version-no-file {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 12px;
    background: #eef0f3;
    color: #6b7280;
    padding: 0 12px;
    white-space: nowrap;
    font-weight: 800;
}

@media (min-width: 641px) and (max-width: 980px) {
    .fmm-single-hero {
        grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    }

    .fmm-single-hero .fmm-info-card {
        grid-column: 1 / -1;
    }

    .fmm-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .fmm-single {
        padding-left: 12px;
        padding-right: 12px;
    }

    .fmm-single-hero {
        grid-template-columns: 1fr;
    }

    .fmm-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fmm-version-card {
        min-width: 680px;
        grid-template-columns: minmax(150px, 1.1fr) minmax(220px, 2fr) auto auto;
    }
}

/* final requested layout and archive/slider styling */
.fmm-archive,
.fmm-slider,
.fmm-single {
    max-width: 1260px;
    padding-right: clamp(12px, 2vw, 20px);
    padding-left: clamp(12px, 2vw, 20px);
    font-family: inherit;
}

.fmm-archive-head,
.fmm-slider-head {
    text-align: center;
    margin: 0 auto 18px;
    max-width: 760px;
}

.fmm-archive-head h1,
.fmm-slider-head h2 {
    margin: 0 0 8px;
    color: #20242d;
    font-family: inherit;
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 800;
    line-height: 1.45;
}

.fmm-archive-head p,
.fmm-slider-head p {
    margin: 0;
    color: #656d7a;
    font-size: 15px;
    line-height: 1.9;
}

.fmm-kicker,
.fmm-badges {
    display: none !important;
}

.fmm-toolbar {
    grid-template-columns: minmax(0, 1fr) 185px auto;
}

.fmm-sort {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #777 50%), linear-gradient(135deg, #777 50%, transparent 50%);
    background-position: left 18px center, left 12px center;
    background-size: 7px 7px, 7px 7px;
    background-repeat: no-repeat;
    padding: 0 14px 0 36px;
    overflow: hidden;
}

.fmm-archive.is-loading {
    position: relative;
}

.fmm-archive.is-loading::after {
    content: "";
    position: absolute;
    top: 170px;
    left: 50%;
    z-index: 4;
    width: 34px;
    height: 34px;
    margin-left: -17px;
    border-radius: 999px;
    border: 3px solid rgba(255, 122, 0, .18);
    border-top-color: #ff7a00;
    animation: fmm-spin .72s linear infinite;
}

@keyframes fmm-spin {
    to { transform: rotate(360deg); }
}

.fmm-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.fmm-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #ead8c8;
    border-radius: 22px;
    background: #f8eee5;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .07);
    contain: layout paint;
    isolation: isolate;
}

.fmm-card-title {
    margin: 0 !important;
    min-height: 38px;
    padding: 9px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #263044;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    font: inherit;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
    text-align: center;
}

.fmm-card-title a {
    width: 100%;
    color: #fff !important;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fmm-card-cover {
    aspect-ratio: 1 / 1;
    background: #f7f8fa;
}

.fmm-card-cover img,
.fmm-single-cover img,
.fmm-gallery-grid img {
    object-fit: contain !important;
}

.fmm-card:hover .fmm-card-cover img {
    transform: none !important;
}

.fmm-card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 12px 13px;
    background: #f8eee5;
}

.fmm-card-body p {
    min-height: 50px;
    margin: 0;
    color: #5f5b58;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.75;
    text-align: center;
}

.fmm-card-version {
    min-height: 34px;
    margin-top: auto;
    padding: 7px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #ead8c8;
    border-radius: 13px;
    background: #fff7ef;
    color: #5a3d22;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.4;
    text-align: center;
}

.fmm-card-version svg {
    width: 17px;
    height: 17px;
}

.fmm-card-action {
    width: 100%;
    min-height: 38px;
    border-radius: 0;
    background: #ff7a00;
    color: #fff !important;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none !important;
}

.fmm-card-action:hover,
.fmm-card-action:focus-visible {
    background: #ff7a00;
    opacity: .94;
    color: #fff !important;
    outline: none;
}

.fmm-filter-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fmm-seo-box {
    position: relative;
    margin: 34px auto 0;
    max-width: 980px;
    border: 1px solid #ececec;
    border-radius: 22px;
    background: #fff;
    padding: 22px 18px 18px;
    color: #4d5562;
    line-height: 2;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(17, 24, 39, .04);
}

.fmm-seo-content {
    max-height: none;
    overflow: hidden;
    transition: max-height .28s ease;
}

.fmm-seo-box.is-collapsed .fmm-seo-content {
    max-height: 168px;
}

.fmm-seo-box h2,
.fmm-seo-box h3 {
    margin: 0 0 8px;
    color: #20242d;
    font-family: inherit;
    line-height: 1.7;
}

.fmm-seo-box h2 {
    font-size: 21px;
    font-weight: 800;
}

.fmm-seo-box h3 {
    font-size: 17px;
    font-weight: 800;
}

.fmm-seo-box p {
    margin: 0 auto 18px;
    max-width: 860px;
}

.fmm-seo-fade {
    display: none;
}

.fmm-seo-box.is-collapsed .fmm-seo-fade {
    position: absolute;
    right: 0;
    bottom: 66px;
    left: 0;
    height: 70px;
    display: block;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 72%);
    pointer-events: none;
}

.fmm-seo-toggle {
    min-width: 170px;
    min-height: 42px;
    border: 0;
    border-radius: 14px;
    background: #ff7a00;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.fmm-slider-more {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.fmm-slider-more a {
    width: min(520px, 100%);
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #ff7a00;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 900;
}

.fmm-single-hero {
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 20px;
    max-width: 1260px;
    align-items: stretch;
}

.fmm-single-cover {
    aspect-ratio: 1 / 1;
    min-height: 0;
    height: auto;
    align-self: start;
    background: #f7f8fa;
}

.fmm-single-panel {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #fff;
    padding: clamp(16px, 2.2vw, 24px);
    box-shadow: 0 12px 30px rgba(17, 24, 39, .06);
}

.fmm-single-main {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
}

.fmm-single-main h1 {
    margin: 0 0 10px;
    font-size: clamp(27px, 3.5vw, 42px);
}

.fmm-single-main p {
    margin-bottom: 14px;
}

.fmm-single-navbox {
    display: grid;
    gap: 10px;
    margin: 14px 0;
    padding: 12px;
    border: 1px solid #ececec;
    border-radius: 18px;
    background: #fafafa;
}

.fmm-single-jumps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.fmm-single-jumps button,
.fmm-back-mods {
    min-height: 42px;
    border: 1px solid #e0e0e0;
    border-radius: 13px;
    background: #fff;
    color: #30343c;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.fmm-back-mods {
    width: 100%;
    border-color: #ff7a00;
    background: #ff7a00;
    color: #fff !important;
}

.fmm-info-card {
    min-width: 0;
    align-self: start;
    border: 1px solid #ead8c8;
    border-radius: 20px;
    background: #fffaf6;
    padding: 16px;
    box-shadow: none;
}

.fmm-info-card h2 {
    margin: 0 0 10px;
    font-size: 19px;
    font-weight: 900;
    text-align: center;
}

.fmm-info-card .fmm-info-row,
.fmm-info-card div.fmm-info-row:not(.fmm-link-stack) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 10px 0;
    border-bottom: 1px solid #f0dfd0;
    white-space: nowrap;
}

.fmm-info-card .fmm-info-row span {
    flex: 0 0 auto;
    color: #6b625d;
    font-size: 13px;
    font-weight: 800;
}

.fmm-info-card .fmm-info-row strong {
    min-width: 0;
    color: #171b24;
    font-size: 13px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.fmm-single-tabs {
    max-width: 1260px;
    margin-right: auto;
    margin-left: auto;
}

.fmm-version-table {
    width: 100%;
    overflow: hidden;
    border: 1px solid #e6e6e6;
    border-radius: 18px;
    background: #fff;
}

.fmm-version-head,
.fmm-version-card {
    display: grid;
    grid-template-columns: minmax(140px, 1.1fr) minmax(220px, 2fr) minmax(120px, .8fr) minmax(110px, .7fr);
    gap: 0;
    align-items: stretch;
}

.fmm-version-head {
    background: #263044;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.fmm-version-head span,
.fmm-version-cell {
    min-width: 0;
    padding: 12px 13px;
    border-left: 1px solid rgba(255,255,255,.13);
    display: flex;
    align-items: center;
}

.fmm-version-cell {
    border-left-color: #eeeeee;
}

.fmm-version-downloads {
    display: block;
    overflow: visible;
}

.fmm-version-card {
    border: 0;
    border-radius: 0;
    background: #fff;
    padding: 0;
    border-top: 1px solid #eeeeee;
}

.fmm-version-card h3,
.fmm-version-cell strong {
    margin: 0;
    font-size: 14px;
    font-weight: 900;
}

.fmm-version-cell p {
    margin: 0;
    color: #5f6673;
    font-size: 13px;
    line-height: 1.8;
}

.fmm-version-cell .fmm-card-action {
    width: 100%;
    border-radius: 12px;
}

@media (min-width: 641px) and (max-width: 980px) {
    .fmm-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fmm-single-hero {
        grid-template-columns: 1fr;
    }

    .fmm-single-panel {
        grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    }
}

@media (max-width: 640px) {
    .fmm-toolbar {
        grid-template-columns: 1fr;
    }

    .fmm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .fmm-card-title {
        font-size: 12px !important;
        min-height: 36px;
    }

    .fmm-card-body {
        padding: 10px;
    }

    .fmm-card-body p,
    .fmm-card-version {
        font-size: 11px;
    }

    .fmm-filter-tabs,
    .fmm-single-jumps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fmm-single-hero,
    .fmm-single-panel {
        grid-template-columns: 1fr;
    }

    .fmm-single-panel {
        padding: 14px;
    }

    .fmm-info-card .fmm-info-row span,
    .fmm-info-card .fmm-info-row strong {
        font-size: 12px;
    }

    .fmm-version-head {
        display: none;
    }

    .fmm-version-card {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 10px;
        border-top: 1px solid #eeeeee;
    }

    .fmm-version-cell {
        border-left: 0;
        padding: 8px 0;
        justify-content: space-between;
        gap: 12px;
    }

    .fmm-version-cell::before {
        content: attr(data-label);
        color: #6b7280;
        font-size: 12px;
        font-weight: 900;
        white-space: nowrap;
    }

    .fmm-version-cell p,
    .fmm-version-cell strong {
        text-align: left;
    }
}

.fmm-version-card {
    min-width: 0 !important;
    width: 100%;
}

@media (max-width: 640px) {
    .fmm-version-card {
        min-width: 0 !important;
        width: 100%;
    }
}

/* requested precise fixes: single downloads, archive cards, slider columns and payment badge */
.fmm-sort {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-size: 18px 18px !important;
    background-position: left 14px center !important;
    padding-left: 42px !important;
}

.fmm-card {
    transform: translateZ(0);
}

.fmm-card:hover {
    transform: translateY(-3px);
}

.fmm-card-title {
    min-height: 42px !important;
    padding-top: 11px !important;
    padding-bottom: 11px !important;
    visibility: visible !important;
}

.fmm-card-title,
.fmm-card-title a {
    color: #fff !important;
}

.fmm-card-cover {
    position: relative;
    line-height: 0;
    overflow: hidden;
}

.fmm-card-cover img {
    display: block !important;
    transform: translateZ(0) !important;
    object-position: center center;
}

.fmm-card:hover .fmm-card-cover img {
    transform: translateZ(0) !important;
}

.fmm-card-body {
    min-height: 58px;
    justify-content: center;
}

.fmm-card-body p {
    display: none !important;
}

.fmm-card-version {
    width: 100%;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
}

.fmm-card-version span {
    min-width: 0;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fmm-price-badge {
    position: absolute;
    top: 50%;
    right: 50%;
    z-index: 6;
    min-width: min(76%, 210px);
    transform: translate(50%, -50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 16px;
    background: rgba(38, 48, 68, .88);
    color: #fff;
    text-align: center;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
    pointer-events: none;
    backdrop-filter: blur(6px);
}

.fmm-price-original {
    color: rgba(255, 255, 255, .66);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    text-decoration: line-through;
}

.fmm-price-final {
    color: #fff;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.45;
    white-space: nowrap;
}

.fmm-price-single {
    min-width: min(72%, 260px);
    padding: 12px 16px;
}

.fmm-price-single .fmm-price-original {
    font-size: 12px;
}

.fmm-price-single .fmm-price-final {
    font-size: 17px;
}

.fmm-single-navbox-back-only {
    padding: 0;
    border: 0;
    background: transparent;
}

.fmm-single-navbox-back-only .fmm-back-mods {
    width: 100%;
    min-height: 48px;
    border-radius: 15px;
}

.fmm-info-card .fmm-info-row-last,
.fmm-info-card .fmm-info-row:last-child {
    border-bottom: 0 !important;
    padding-bottom: 0;
}

.fmm-version-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.fmm-version-search span {
    position: absolute;
    right: 14px;
    display: inline-flex;
    color: #6b7280;
    pointer-events: none;
}

.fmm-version-search input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d7dce3;
    border-radius: 15px;
    background: #fff;
    color: #1f2937;
    padding: 0 44px 0 14px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    outline: none;
}

.fmm-version-search input:focus {
    border-color: #ff7a00;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, .12);
}

.fmm-single-downloads {
    position: relative;
}

.fmm-single-downloads.is-loading [data-fmm-version-results],
.fmm-single-downloads.is-loading [data-fmm-version-pagination] {
    opacity: .42;
    pointer-events: none;
}

.fmm-single-downloads.is-loading::after {
    content: "";
    position: absolute;
    top: 82px;
    left: 50%;
    z-index: 3;
    width: 30px;
    height: 30px;
    margin-left: -15px;
    border-radius: 999px;
    border: 3px solid rgba(255, 122, 0, .18);
    border-top-color: #ff7a00;
    animation: fmm-spin .72s linear infinite;
}

.fmm-version-state {
    margin: 0 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    background: #f9fafb;
    padding: 10px 12px;
    color: #4b5563;
    text-align: center;
}

.fmm-version-state.is-error {
    border-color: #fecaca;
    background: #fff1f2;
    color: #b91c1c;
}

.fmm-version-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
}

.fmm-version-pagination button {
    min-width: 38px;
    min-height: 38px;
    border: 1px solid #d7dce3;
    border-radius: 12px;
    background: #fff;
    color: #1f2937;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
}

.fmm-version-pagination button.is-current {
    background: #263044;
    color: #fff;
    border-color: #263044;
}

.fmm-version-pagination button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.fmm-payment-notice {
    margin: 0 0 14px;
    border-radius: 14px;
    padding: 12px 14px;
    text-align: center;
    font-weight: 900;
}

.fmm-payment-notice-error {
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #b91c1c;
}

.fmm-seo-box {
    padding-bottom: 70px;
}

.fmm-seo-box.is-collapsed .fmm-seo-content {
    max-height: 172px;
}

.fmm-seo-box.is-collapsed .fmm-seo-fade {
    bottom: 64px;
    height: 82px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.92) 58%, #fff 100%);
}

.fmm-seo-toggle {
    position: absolute;
    right: 50%;
    bottom: 18px;
    transform: translateX(50%);
    min-width: 190px;
    box-shadow: 0 10px 22px rgba(255, 122, 0, .18);
}

.fmm-slider {
    --fmm-slider-cols: 4 !important;
    --fmm-slider-tablet-cols: 3;
    --fmm-slider-mobile-cols: 2;
    --fmm-slider-gap: 16px;
    --fmm-slider-gap-total: 48px;
    --fmm-slider-tablet-gap-total: 28px;
    --fmm-slider-mobile-gap-total: 12px;
}

.fmm-slider-track .fmm-card {
    flex: 0 0 calc((100% - var(--fmm-slider-gap-total)) / var(--fmm-slider-cols)) !important;
}

@media (min-width: 641px) and (max-width: 980px) {
    .fmm-slider {
        --fmm-slider-cols: 3 !important;
        --fmm-slider-gap: 14px;
        --fmm-slider-gap-total: 28px;
    }

    .fmm-tab-buttons {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .fmm-card-title {
        min-height: 38px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .fmm-card-version {
        font-size: 10.5px;
        padding-right: 6px;
        padding-left: 6px;
    }

    .fmm-price-badge {
        min-width: 82%;
        padding: 7px 9px;
        border-radius: 13px;
    }

    .fmm-price-original {
        font-size: 10px;
    }

    .fmm-price-final {
        font-size: 12px;
    }

    .fmm-tab-buttons {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px;
    }

    .fmm-tab-buttons button {
        min-height: 42px;
        padding: 0 6px;
        font-size: 12px;
        white-space: nowrap;
    }

    .fmm-version-table {
        border-radius: 16px;
    }

    .fmm-version-card {
        padding: 11px;
    }

    .fmm-version-cell {
        align-items: flex-start;
    }

    .fmm-version-cell::before {
        min-width: 74px;
    }

    .fmm-version-cell p,
    .fmm-version-cell strong,
    .fmm-version-cell .fmm-version-badge {
        min-width: 0;
        max-width: calc(100% - 86px);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .fmm-seo-box {
        border-radius: 18px;
        padding: 18px 12px 68px;
    }

    .fmm-seo-box.is-collapsed .fmm-seo-content {
        max-height: 190px;
    }

    .fmm-seo-box.is-collapsed .fmm-seo-fade {
        bottom: 62px;
        height: 88px;
    }

    .fmm-seo-toggle {
        width: calc(100% - 32px);
        min-width: 0;
    }

    .fmm-slider {
        --fmm-slider-cols: 2 !important;
        --fmm-slider-gap: 12px;
        --fmm-slider-gap-total: 12px;
    }
}

.fmm-single-back-wrap {
    grid-column: 1 / -1;
    margin: 0;
}

/* final requested adjustments: persistent purchase access, visible titles and slider columns */
.fmm-archive .fmm-card > .fmm-card-title,
.fmm-slider .fmm-card > .fmm-card-title,
.fmm-related .fmm-card > .fmm-card-title {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 11px 12px !important;
    overflow: hidden !important;
    background: #263044 !important;
    color: #fff !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 3 !important;
    text-align: center !important;
    text-indent: 0 !important;
    clip: auto !important;
    transform: none !important;
}

.fmm-archive .fmm-card > .fmm-card-title a,
.fmm-slider .fmm-card > .fmm-card-title a,
.fmm-related .fmm-card > .fmm-card-title a,
.fmm-card-title-text {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    opacity: 1 !important;
    visibility: visible !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.55 !important;
    text-align: center !important;
    text-decoration: none !important;
}

.fmm-single-back-wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
}

.fmm-single-purchase {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 10px 16px;
    border: 1px solid #ff7a00;
    border-radius: 15px;
    background: #ff7a00;
    color: #fff !important;
    font: inherit;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.6;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 10px 22px rgba(255, 122, 0, .18);
}

.fmm-single-purchase:hover,
.fmm-single-purchase:focus-visible {
    color: #fff !important;
    transform: translateY(-1px);
}

.fmm-single-purchase.is-active {
    background: #263044;
    border-color: #263044;
    box-shadow: 0 10px 22px rgba(38, 48, 68, .16);
}

.fmm-payment-thanks {
    width: min(100% - 32px, 760px);
    margin: clamp(36px, 7vw, 90px) auto;
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid #ead8c8;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(17, 24, 39, .08);
    text-align: center;
}

.fmm-payment-thanks-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ecfdf3;
    color: #15803d;
    font-size: 34px;
    font-weight: 950;
}

.fmm-payment-thanks h1 {
    margin: 0 0 14px;
    color: #263044;
    font-size: clamp(25px, 4vw, 38px);
    font-weight: 950;
    line-height: 1.45;
}

.fmm-payment-thanks p {
    margin: 0 auto 24px;
    max-width: 620px;
    color: #5b6472;
    font-size: 15px;
    font-weight: 700;
    line-height: 2;
}

.fmm-payment-thanks-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 420px);
    min-height: 50px;
    padding: 10px 18px;
    border-radius: 15px;
    background: #ff7a00;
    color: #fff !important;
    font: inherit;
    font-size: 14px;
    font-weight: 950;
    text-align: center;
    text-decoration: none !important;
}

@media (min-width: 641px) and (max-width: 980px) {
    .fmm-slider {
        --fmm-slider-cols: 2 !important;
        --fmm-slider-gap: 14px !important;
        --fmm-slider-gap-total: 14px !important;
    }
}

@media (max-width: 640px) {
    .fmm-slider {
        --fmm-slider-cols: 1 !important;
        --fmm-slider-gap: 12px !important;
        --fmm-slider-gap-total: 0px !important;
    }

    .fmm-archive .fmm-card > .fmm-card-title,
    .fmm-slider .fmm-card > .fmm-card-title,
    .fmm-related .fmm-card > .fmm-card-title {
        min-height: 40px !important;
        padding: 9px 10px !important;
    }

    .fmm-card-title-text,
    .fmm-card-title a {
        font-size: 13px !important;
    }

    .fmm-payment-thanks {
        width: calc(100% - 24px);
        margin-top: 24px;
        margin-bottom: 24px;
        padding: 22px 16px;
        border-radius: 19px;
    }
}

/* v1.2.0: requested price placement and download-limit dialog */
.fmm-archive .fmm-price-card,
.fmm-slider .fmm-price-card {
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 32px;
    transform: none !important;
    flex-direction: row;
    gap: 7px;
    padding: 5px 9px;
    border-width: 1px 0 0;
    border-radius: 0;
    background: rgba(38, 48, 68, .94);
    box-shadow: none;
    backdrop-filter: blur(4px);
}

.fmm-archive .fmm-price-card .fmm-price-original,
.fmm-slider .fmm-price-card .fmm-price-original {
    font-size: 10px;
    line-height: 1.25;
}

.fmm-archive .fmm-price-card .fmm-price-final,
.fmm-slider .fmm-price-card .fmm-price-final {
    font-size: 12px;
    line-height: 1.25;
}

.fmm-single-commerce {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    direction: rtl;
}

.fmm-price-single-panel {
    position: static !important;
    width: 100%;
    min-width: 0;
    min-height: 50px;
    transform: none !important;
    padding: 8px 14px;
    border: 1px solid #263044;
    border-radius: 15px;
    background: #263044;
    box-shadow: 0 10px 22px rgba(38, 48, 68, .16);
    pointer-events: auto;
}

.fmm-price-single-panel .fmm-price-original {
    font-size: 11px;
}

.fmm-price-single-panel .fmm-price-final {
    font-size: 15px;
}

.fmm-single-commerce .fmm-single-purchase {
    min-width: 0;
    height: 100%;
}

.fmm-notice-modal[hidden] {
    display: none !important;
}

.fmm-notice-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    direction: rtl;
}

.fmm-notice-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, .56);
    backdrop-filter: blur(3px);
}

.fmm-notice-modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 480px);
    padding: 24px 20px 20px;
    border: 1px solid #ead8c8;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(17, 24, 39, .22);
    text-align: center;
}

.fmm-notice-modal-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff4e9;
    color: #d75f00;
    font-size: 28px;
    font-weight: 950;
}

.fmm-notice-modal-title {
    margin: 0 0 9px;
    color: #263044;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.5;
}

.fmm-notice-modal-message {
    margin: 0 0 18px;
    color: #5b6472;
    font-size: 14px;
    font-weight: 700;
    line-height: 2;
}

.fmm-notice-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 220px);
    min-height: 44px;
    border: 0;
    border-radius: 13px;
    background: #ff7a00;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

html.fmm-notice-open {
    overflow: hidden;
}

@media (max-width: 980px) {
    .fmm-single-commerce {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .fmm-archive .fmm-price-card,
    .fmm-slider .fmm-price-card {
        min-height: 29px;
        padding: 4px 6px;
        gap: 5px;
    }

    .fmm-archive .fmm-price-card .fmm-price-final,
    .fmm-slider .fmm-price-card .fmm-price-final {
        font-size: 11px;
    }

    .fmm-notice-modal-panel {
        padding: 21px 15px 16px;
        border-radius: 17px;
    }
}

.fmm-check[data-fmm-term-depth] {
    padding-inline-start: calc(12px + (var(--fmm-term-depth, 0) * 14px));
}

/* v1.5.0: server-backed login gate and non-sticky download preparation state */
.fmm-card-action.is-preparing,
.fmm-card-action.is-download-started {
    cursor: wait;
    opacity: .82;
    user-select: none;
}

.fmm-card-action.is-preparing::before {
    content: "";
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin-inline-end: 8px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 999px;
    animation: fmm-spin .72s linear infinite;
}

.fmm-card-action.is-download-started {
    cursor: default;
}

.fmm-login-gate {
    position: relative;
    width: 100%;
    height: clamp(250px, 36vh, 290px);
    min-height: 250px;
    overflow: hidden;
    border-radius: 18px;
}

.fmm-login-gated-content {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    opacity: .28;
    filter: blur(1.6px);
    pointer-events: none;
    user-select: none;
}

.fmm-login-mask {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px;
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(5px);
    text-align: center;
}

.fmm-login-mask strong {
    color: #1f2937;
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 950;
}

.fmm-login-mask p {
    max-width: 620px;
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.9;
}

.fmm-login-mask a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 14px;
    background: #ff7a00;
    color: #fff !important;
    padding: 0 22px;
    text-decoration: none !important;
    font-weight: 950;
    box-shadow: 0 10px 24px rgba(255,122,0,.22);
}

.fmm-version-login-required {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 12px;
    background: #f3f4f6;
    color: #6b7280;
    padding: 0 12px;
    white-space: nowrap;
    font-weight: 850;
}

@media (max-width: 640px) {
    .fmm-login-gate {
        height: clamp(300px, 48vh, 340px);
        min-height: 300px;
    }

    .fmm-login-gated-content {
        min-height: 0;
    }

    .fmm-login-mask {
        padding: 20px 16px;
    }
}


/* v1.6.0: the public versions table intentionally contains only title, game version and download. */
.fmm-version-head,
.fmm-version-card {
    grid-template-columns: minmax(180px, 1.5fr) minmax(130px, .8fr) minmax(120px, .7fr);
}
