/* Homepage */
.home .hero--home { background: #171d29; color: #fff; padding-block: clamp(32px, 5vw, 72px); }
.home .hero--home::before, .home .hero--home::after { content: none; }
.home .hero__title { color: #fff; font-size: clamp(2.4rem, 4.7vw, 4.6rem); letter-spacing: -.045em; line-height: 1.02; }
.home .hero__lead { color: #e0e3e9; line-height: 1.6; margin: 1.1rem 0; }
.home .hero-search { display: flex; padding: 4px; background: white; border-radius: 6px; max-width: 440px; }
.home .hero-search input { flex: 1; min-width: 0; border: 0; background: white; color: #191f2a; padding: 10px 12px; font: inherit; }
.home .hero-search button { border: 0; border-radius: 4px; background: #bd2426; color: white; padding: 0 18px; font: inherit; font-weight: 650; cursor: pointer; min-height: 44px; }
.home .hero__cta { gap: 20px; margin-top: 6px; }
.home .hero__cta a { display: inline-flex; align-items: center; min-height: 44px; color: white; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #828b9c; }
.home .hero__media { gap: 8px; align-items: flex-start; }
.home .hero__media-label { color: #d3dae6; font-size: .73rem; letter-spacing: .12em; }
.home .hero__media-frame { width: 100%; }
.home .library-jumps { display: flex; gap: 0; padding-block: 4px; border-block: 1px solid #d5d9df; margin: 0; }
.home .library-jumps a { flex: 1; color: #252a36; padding: 13px 15px; line-height: 1.3; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-decoration: none; font-weight: 650; }
.home .library-jumps a + a { border-left: 1px solid #e4e6eb; }
.home .library-jumps a::after { content: '↓'; color: #ac2629; }
.home .library-jumps a:hover, .home .library-jumps a:focus-visible { background: #f7f3f1; }
#homepage-content .library-jumps + .dupa-block-game-list { border-top: 0; }
@media (prefers-reduced-motion: no-preference) {
    .home .hero__content { animation: library-enter 250ms ease-out; }
    .home .library-jumps a::after { transition: transform 160ms ease; }
    .home .library-jumps a:hover::after { transform: translateY(2px); }
    @keyframes library-enter { from { opacity: .7; transform: translateY(5px); } }
}

/* Parent catalog forms */
.page .dupa-catalog .slotsl-filters--compact { border: 1px solid #d8dde3; padding: clamp(12px, 1.4vw, 20px); margin: 18px 0 22px; border-radius: 12px; box-shadow: none; background: #f5f6f8; }
.page .dupa-catalog #dupa-provider-filters,
.page #dupa-catalog-filters .slotsl-filters__primary { display: grid !important; grid-template-columns: minmax(180px, 2fr) minmax(130px,1fr) minmax(125px,.85fr) auto; gap: 12px; align-items: end; }
.page .dupa-catalog #dupa-provider-filters { grid-template-columns: minmax(160px,1fr) minmax(160px,240px); }
.page :is(#dupa-provider-filters,#dupa-catalog-filters) :is(.slotsl-field,.slotsl-search,.slotsl-sort,.slotsl-providers) { margin: 0; min-width: 0; max-width: none; width: 100%; text-align: left; }
.page #dupa-provider-filters .slotsl-sort { display: block; }
.page :is(#dupa-provider-filters,#dupa-catalog-filters) :is(.studio-field-label,.slotsl-field__label) { display: block; color: #485161; text-align: left; letter-spacing: 0; text-transform: none; font-size: .82rem; font-weight: 650; line-height: 1.4; margin: 0 0 4px; }
.page #dupa-catalog-filters .slotsl-field { gap: 0; }
.page :is(#dupa-provider-filters,#dupa-catalog-filters) :is(input[type=text],input[type=search],select) { width: 100% !important; height: 44px !important; min-height: 44px !important; min-width: 0 !important; border: 1px solid #aeb6c1; border-radius: 5px; background-color: white; color: #202632; box-shadow: none; padding: 0 12px; font: inherit; font-size: 16px; box-sizing: border-box; }
.page :is(#dupa-provider-filters,#dupa-catalog-filters) #sl-name { padding-right: 48px; }
.page #dupa-catalog-filters .slotsl-field__control { border: 0; background: none; padding: 0; }
.page :is(#dupa-provider-filters,#dupa-catalog-filters) .sl-submit-search { top: auto !important; right: 0 !important; bottom: 0 !important; margin: 0 !important; height: 44px; width: 44px; transform: none; }
.page #dupa-catalog-filters .sl-mobile-filter-button { height: 44px; width: auto; min-width: 98px; padding: 0 12px; background: #252b37; border: 0; border-radius: 5px; color: white; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.page #dupa-catalog-filters .sl-mobile-filter-button__label { display: inline !important; }
.page #dupa-catalog-filters .sl-filter-icon { color: inherit; }
.page :is(#dupa-provider-filters,#dupa-catalog-filters) :focus-visible { outline: 2px solid #a7292c; outline-offset: 2px; }

/* Studio directory */
.page .dupa-catalog.slotsl-providers-archives > .slotsl-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,225px),1fr)) !important; gap: 0 18px; }
.page .dupa-catalog.slotsl-providers-archives .slotsl-card { border: 0; border-bottom: 1px solid #e0e4ea; border-radius: 0 !important; box-shadow: none; background: white; }
.page .dupa-catalog .slotsl-provider-card-link { display: flex; gap: 12px; align-items: center; padding: 9px 3px; box-sizing: border-box; min-height: 70px; }
.page .dupa-catalog .slotsl-provider-card-link:hover { background: #f7f8fa; }
.page .dupa-catalog .slotsl-provider-card-link .slotsl-thumb { flex: 0 0 72px; height: 48px; border-radius: 4px !important; aspect-ratio: auto; }
.page .dupa-catalog .slotsl-provider-card-link img { object-fit: contain; border-radius: 0 !important; }
.page .dupa-catalog .slotsl-providers-meta { padding: 0 !important; min-width: 0; }
.page .dupa-catalog .slotsl-providers-meta .slotsl-title { gap: 5px; }
.page .dupa-catalog .slotsl-provider-name { order: -1; overflow-wrap: anywhere; }
@media (max-width: 780px) {
    .home .hero__inner { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 20px; }
    .home .hero__content { text-align: left; }
    .page #dupa-catalog-filters .slotsl-filters__primary { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
    .home .hero--home { padding-block: 24px; }
    .home .hero__inner { grid-template-columns: 1fr; gap: 12px; }
    .home .hero__media { width: min(100%,360px); justify-self: center; }
    .home .hero__cta { justify-content: flex-start; }
    .home .library-jumps { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .home .library-jumps a { padding: 12px 10px; }
    .home .library-jumps a:nth-child(odd) { border-left: 0; }
    .page .dupa-catalog #dupa-provider-filters { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 8px; }
    .page .dupa-catalog #dupa-provider-filters .slotsl-search { order: 0; margin: 0; }
    .page #dupa-catalog-filters .slotsl-field--search { grid-column: 1/-1; }
    .page #dupa-catalog-filters .slotsl-field--more { grid-column: 1/-1; }
    .page #dupa-catalog-filters .sl-mobile-filter-button { width: 100%; }
}

.page #dupa-catalog-filters .slotsl-field--more { align-self: end; padding: 0; margin: 0; }

.home .hero-search { max-width: 32rem; border-radius: 10px; align-items: stretch; }
.home .hero-search #home-game-title { outline: none; box-shadow: none; border: 0; border-radius: 7px; font-size: 16px; }
.home .hero-search:focus-within { outline: 2px solid #fff; outline-offset: 3px; }
.home .hero-search button { border-radius: 7px; }
.home .hero-search button:focus-visible { outline: 2px solid white; outline-offset: -5px; }
.page .entry-content :is(.catalog-guide,.cgh-author-box__bio) p a { color: #a92329; }

.page #dupa-catalog-filters .slotsl-field { align-items: stretch; }
.page #dupa-catalog-filters .slotsl-filters__secondary.show-filters {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(145px, .55fr);
    gap: 12px;
    align-items: end;
    width: 100%;
    padding: 14px 0 0;
    margin: 14px 0 0;
    border-top: 1px solid #d6dbe2;
    box-sizing: border-box;
}
.page #dupa-catalog-filters .slotsl-filters__secondary[hidden] { display: none !important; }
.page #dupa-catalog-filters .catalog-check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #aeb6c1;
    border-radius: 5px;
    background: white;
    color: #202632;
    cursor: pointer;
}
.page #dupa-catalog-filters .catalog-check input { width: 18px; height: 18px; margin: 0; accent-color: #9c252d; }
.page #dupa-catalog-filters .catalog-check:has(:checked) { border-color: #a92329; background: #fff7f7; }
.page #dupa-provider-filters #sl-name { padding-right: 46px !important; }
.page :is(#dupa-provider-filters,#dupa-catalog-filters) select { padding-right: 26px; }
@media (max-width: 600px) {
    .page #dupa-catalog-filters .slotsl-filters__secondary.show-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .page #dupa-catalog-filters .slotsl-field--toggle { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
    .page .dupa-catalog #dupa-provider-filters { grid-template-columns: 1fr; }
}

@media (hover: hover) and (pointer: fine) {
    @supports (appearance: base-select) {
        .page :is(#slots-sort, #slotsl-provider-order),
        .page :is(#slots-sort, #slotsl-provider-order)::picker(select) { appearance: base-select; }
        .page :is(#slots-sort, #slotsl-provider-order)::picker(select) { margin-top: 5px; padding: 4px; background: white; border: 1px solid #c8cfd8; border-radius: 8px; box-shadow: 0 8px 24px #1723331f; color: #202632; }
        .page :is(#slots-sort, #slotsl-provider-order) option { min-height: 36px; padding: 5px 9px; gap: 8px; border-radius: 4px; }
        .page :is(#slots-sort, #slotsl-provider-order) option:checked { font-weight: 650; color: #982328; }
        .page :is(#slots-sort, #slotsl-provider-order) option:is(:hover, :focus-visible) { background: #f0f2f5; }
        .page :is(#dupa-catalog-filters, #dupa-provider-filters) :is(#slots-sort, #slotsl-provider-order) { align-items: center; padding-inline: 12px; }
    }
}

.home .hero-game-caption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; width: 100%; }
.home .hero-game-caption a { color: #fff; font-weight: 650; }
