/* Illustrated scenes share the page surface. Product screenshots stay intact. */
.store-main .hn-explore .hn-hero.hn-dragon-hero,
.store-main .hn-explore .hn-dragon-strip-banner,
.store-main .hn-explore .hn-explore-feature[data-tone],
.store-main .category-hero-glass,
.store-main .hg .hg-hero,
.store-main .hg .hg-builder-feature {
    background: var(--bg-main, #fff);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
[data-theme="dark"] .store-main .hn-explore .hn-hero.hn-dragon-hero,
[data-theme="dark"] .store-main .hn-explore .hn-dragon-strip-banner,
[data-theme="dark"] .store-main .hn-explore .hn-explore-feature[data-tone],
[data-theme="dark"] .store-main .hg .hg-hero,
[data-theme="dark"] .store-main .hg .hg-builder-feature {
    background: var(--bg-main, #101725);
    border: 0;
    box-shadow: none;
}

/* Fade the whole picture plane, so every transparent pixel sees the same base. */
/* The moving hero keeps its mask on the image; masking its 3D ancestor hides it in Chrome. */
.store-main .hn-explore .hn-explore-feature[data-tone] > picture,
.store-main .hn-explore .hn-dragon-strip-banner > picture,
.store-main .hn-explore .hn-dragon-live-stage img,
.store-main .category-hero-art,
.store-main .hg .hg-hero-art,
.store-main .hg .hg-builder-feature-art {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    clip-path: inset(1px);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 3%, rgba(0,0,0,.08) 11%, rgba(0,0,0,.4) 21%, #000 36%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0%, transparent 2%, #000 8%, #000 91%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, transparent 3%, rgba(0,0,0,.08) 11%, rgba(0,0,0,.4) 21%, #000 36%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0%, transparent 2%, #000 8%, #000 91%, transparent 100%);
    mask-composite: intersect;
}
.store-main .hn-explore .hn-explore-feature[data-tone] > picture::before,
.store-main .hn-explore .hn-dragon-strip-banner > picture::before,
.store-main .hg .hg-hero-art::after {
    content: none;
}
.store-main .hn-explore .hn-explore-feature[data-tone] > picture img,
.store-main .hn-explore .hn-dragon-strip-banner > picture img,
.store-main .category-hero-art img,
.store-main .hg .hg-hero-art img,
.store-main .hg .hg-builder-feature-art img {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    -webkit-mask-image: none;
    -webkit-mask-composite: source-over;
    mask-image: none;
    mask-composite: add;
}
.store-main .hn-explore .hn-explore-feature[data-tone] > picture,
.store-main .hn-explore .hn-dragon-strip-banner > picture {
    width: 114%;
    margin-left: -14%;
}
.store-main .hn-explore .hn-explore-feature[data-tone] > picture img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}
.store-main .hn-explore .hn-explore-feature[data-tone] {
    min-height: clamp(290px, 25vw, 370px);
}
.store-main .category-hero-glass { gap: 0; }
.store-main .category-hero-art { flex-basis: 48%; max-width: none; }
.store-main .category-hero-art:hover img { transform: none; box-shadow: none; }
.store-main .hg .hg-hero h1,
.store-main .hg .hg-builder-feature h2 { color: var(--text-primary); }
.store-main .hg .hg-hero-copy > p,
.store-main .hg .hg-builder-feature-copy > p,
.store-main .hg .hg-builder-feature-label,
.store-main .hg .hg-builder-feature-label > span { color: var(--text-secondary); }
.store-main .hg .hg-builder-feature h2 strong { color: var(--apple-blue); }
.store-main .hg .hg-builder-feature-tags b {
    background: var(--pill-bg);
    border-color: var(--border-subtle);
    color: var(--pill-text);
}

/* Original covers and logos keep all their content; remove only the divider. */
.store-main .hub-ai .hub-ai-card-art,
.store-main .hn-account-services .hn-account-category-art {
    border-bottom: 0;
    background: transparent;
}

@media (max-width: 1100px) {
    .store-main .hn-explore .hn-dragon-live-stage img,
    .store-main .hn-explore .hn-dragon-strip-banner > picture {
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 7%, #000 68%, rgba(0,0,0,.62) 80%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
        mask-image: linear-gradient(180deg, transparent 0%, #000 7%, #000 68%, rgba(0,0,0,.62) 80%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
        -webkit-mask-composite: source-in;
        mask-composite: intersect;
    }
    .store-main .hn-explore .hn-dragon-strip-banner > picture { width: 100%; margin-left: 0; }
}
@media (max-width: 900px) {
    .store-main .category-hero-content { flex: 0 0 auto; width: 100%; }
    .store-main .category-hero-art {
        flex-basis: auto;
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 7%, #000 68%, rgba(0,0,0,.62) 80%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
        mask-image: linear-gradient(180deg, transparent 0%, #000 7%, #000 68%, rgba(0,0,0,.62) 80%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
        -webkit-mask-composite: source-in;
        mask-composite: intersect;
    }
}
@media (max-width: 760px) {
    .store-main .hn-explore .hn-explore-feature[data-tone] { min-height: 0; }
    .store-main .hn-explore .hn-explore-feature[data-tone] > picture,
    .store-main .hg .hg-hero-art,
    .store-main .hg .hg-builder-feature-art {
        width: 100%;
        margin-left: 0;
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 7%, #000 67%, rgba(0,0,0,.62) 80%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
        mask-image: linear-gradient(180deg, transparent 0%, #000 7%, #000 67%, rgba(0,0,0,.62) 80%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
        -webkit-mask-composite: source-in;
        mask-composite: intersect;
    }
    .store-main .hn-explore .hn-explore-feature[data-tone] .hn-explore-feature-copy { padding-top: 12px; }
}
@supports not (mask-image: linear-gradient(#000, transparent)) {
    .store-main .hn-explore .hn-explore-feature[data-tone] > picture::before,
    .store-main .hn-explore .hn-dragon-strip-banner > picture::before {
        content: "";
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, var(--bg-main) 0%, transparent 35%);
        pointer-events: none;
    }
    @media (max-width: 1100px) {
        .store-main .hn-explore .hn-dragon-strip-banner > picture::before {
            background: linear-gradient(180deg, transparent 65%, var(--bg-main) 100%);
        }
    }
    @media (max-width: 760px) {
        .store-main .hn-explore .hn-explore-feature[data-tone] > picture::before {
            background: linear-gradient(180deg, transparent 65%, var(--bg-main) 100%);
        }
    }
}
