/**
 * Oyunlar dizini (/oyunlar) — beyaz panel + header mega menü oyun kartı stili.
 */
.orvix-games-page {
    --orvix-games-panel-overlap: 2.25rem;
    position: relative;
    z-index: 8;
    width: 100%;
    margin-top: calc(-1 * var(--orvix-games-panel-overlap));
    padding: 0 0 clamp(1.25rem, 2vw, 1.75rem);
    background: transparent;
    box-sizing: border-box;
    isolation: isolate;
}

.orvix-front-shell__main:has(.orvix-games-page) {
    background: var(--orvix-home-section-bg, #f4f6f8);
}

html[data-bs-theme="dark"] .orvix-front-shell__main:has(.orvix-games-page) {
    background: var(--orvix-home-section-bg, #0b0d12);
}

.orvix-games-page > .fdh-shell {
    width: 100%;
}

.orvix-games-page__panel {
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border-radius: 1.75rem 1.75rem 1.35rem 1.35rem;
    padding: clamp(1.25rem, 2.4vw, 1.75rem) clamp(1rem, 2vw, 1.45rem) clamp(1.35rem, 2.5vw, 1.85rem);
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(17, 24, 39, 0.06);
}

html[data-bs-theme="dark"] .orvix-games-page__panel {
    background: #151821;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

#orvixGamesDirectoryGrid {
    width: 100%;
}

.orvix-games-directory {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    width: 100%;
    margin: 0;
    padding: 0;
    justify-items: stretch;
    align-items: stretch;
}

@media (min-width: 576px) {
    .orvix-games-directory {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .orvix-games-directory {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0.65rem;
    }
}

.orvix-games-directory__card.fmh-package-item--epin-cover {
    display: block !important;
    position: relative;
    isolation: isolate;
    flex: unset !important;
    flex-direction: unset !important;
    align-items: unset !important;
    justify-content: unset !important;
    width: 100% !important;
    min-width: 0;
    max-width: none !important;
    aspect-ratio: 4 / 5.25;
    padding: 0;
    overflow: hidden;
    background: #222e35;
    border: none;
    border-radius: 0.65rem;
    box-shadow: none;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.orvix-games-directory__card.fmh-package-item--epin-cover::before {
    display: none !important;
}

.orvix-games-directory__card.fmh-package-item--epin-cover:hover,
.orvix-games-directory__card.fmh-package-item--epin-cover:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.orvix-games-directory__card .fmh-package-epin-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.orvix-games-directory__card .fmh-package-epin-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(15, 23, 42, 0.35);
}

.orvix-games-directory__card .fdh-mega-game-foot {
    position: absolute;
    left: 0.38rem;
    right: 0.38rem;
    bottom: 0.38rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    min-height: 1.85rem;
    width: auto;
    padding: 0.38rem 0.52rem 0.38rem 0.58rem;
    box-sizing: border-box;
    background: rgb(176 176 176 / 14%);
    backdrop-filter: blur(1px) saturate(1.02);
    -webkit-backdrop-filter: blur(1px) saturate(1.02);
    border: none;
    border-top: none;
    border-radius: 999px;
    box-shadow: none;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .orvix-games-directory__card .fdh-mega-game-foot {
        background: rgba(16, 22, 20, 0.88);
    }
}

.orvix-games-directory__card .fdh-mega-game-foot__name {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    height: 1.35rem;
    font-size: 0.64rem;
    font-weight: 400;
    line-height: 1.35rem;
    letter-spacing: 0.01em;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    padding-left: 0.1rem;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
}

.orvix-games-directory__card .fdh-mega-game-foot__go {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: transparent;
    color: #fff;
    font-size: 0.78rem;
    line-height: 1;
}

.orvix-games-directory__card .fdh-mega-game-foot__go i {
    display: block;
    line-height: 1;
    font-size: 0.78rem;
}

.orvix-games-page-empty {
    max-width: 40rem;
    margin: 1rem auto 0;
    padding: 0.5rem 0 1rem;
    text-align: center;
}

.orvix-games-page .orvix-directory-all-cta {
    display: none !important;
}

.orvix-directory-all-cta {
    display: flex;
    justify-content: center;
    margin-top: 1.15rem;
}

.orvix-directory-all-cta__link {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    text-decoration: none;
}

.orvix-directory-all-cta__slant {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.68rem 1.25rem;
    border: 1px dashed color-mix(in srgb, var(--bs-primary, #3762ea) 38%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--bs-primary, #3762ea) 12%, #fff);
    color: var(--bs-primary, #3762ea);
    transform: rotate(-3deg);
    transition: filter 0.18s ease, background 0.18s ease;
}

.orvix-directory-all-cta__label {
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.orvix-directory-all-cta__link:hover .orvix-directory-all-cta__slant {
    filter: brightness(1.03);
    background: color-mix(in srgb, var(--bs-primary, #3762ea) 18%, #fff);
}

@media (max-width: 991.98px) {
    .orvix-directory-all-cta {
        margin-top: 1rem;
        margin-bottom: 0.25rem;
    }
}
