body#top.site-milkdrop-page {
    position: relative;
    isolation: isolate;
}

body.auth-body.site-milkdrop-page {
    position: relative;
    isolation: isolate;
}

.site-milkdrop-backdrop,
.site-milkdrop-snapshot,
.site-milkdrop-backdrop-shade {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.site-milkdrop-backdrop {
    z-index: 0;
    display: block;
    opacity: .64;
    background: #050409;
    filter: saturate(1.24) contrast(1.08) brightness(.76);
    transform: scale(1.025);
    transition: opacity 320ms ease;
}

.site-milkdrop-snapshot {
    z-index: 0;
    display: block;
    opacity: .64;
    background-color: #050409;
    background-position: center;
    background-size: cover;
    filter: saturate(1.24) contrast(1.08) brightness(.76);
    transform: scale(1.025);
    transition: opacity 360ms ease;
}

.site-milkdrop-snapshot[data-hidden="true"] {
    opacity: 0;
}

.site-milkdrop-backdrop-shade {
    z-index: 1;
    background:
        radial-gradient(circle at 78% 12%, rgba(212, 162, 76, .09), transparent 32rem),
        linear-gradient(180deg, rgba(4, 3, 8, .28), rgba(4, 3, 8, .58));
}

body#top.site-milkdrop-page > .layout > :not(.site-milkdrop-backdrop):not(.site-milkdrop-snapshot):not(.site-milkdrop-backdrop-shade) {
    z-index: 2;
}

body.auth-body.site-milkdrop-page > .auth-page {
    position: relative;
    z-index: 2;
}

/* Login uses the same sharp launch artwork and moving background as Feed. */
body.auth-body.site-milkdrop-page .auth-launch-panel.site-auth-hero {
    position: relative !important;
    isolation: isolate !important;
    border-color: rgba(212, 162, 76, .34) !important;
    background: rgba(5, 5, 8, .1) !important;
    filter: none !important;
    -webkit-backdrop-filter: blur(1px) saturate(1.06) !important;
    backdrop-filter: blur(1px) saturate(1.06) !important;
}

body.auth-body.site-milkdrop-page .auth-launch-panel.site-auth-hero::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    opacity: .64 !important;
    border: 0 !important;
    background:
        linear-gradient(90deg, rgba(5, 4, 7, .92) 0%, rgba(5, 4, 7, .52) 50%, rgba(5, 4, 7, .16) 100%),
        var(--launch-hero-image, url("/assets/launch-network-hero.jpg")) !important;
    background-size: auto, cover !important;
    background-position: center, center !important;
    background-repeat: no-repeat, no-repeat !important;
    filter: none !important;
    mix-blend-mode: multiply !important;
    pointer-events: none !important;
}

body.auth-body.site-milkdrop-page .auth-launch-panel.site-auth-hero::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    background: linear-gradient(180deg, rgba(5, 4, 7, .04), rgba(5, 4, 7, .24)) !important;
    pointer-events: none !important;
}

body.auth-body.site-milkdrop-page .auth-launch-panel.site-auth-hero > * {
    position: relative !important;
    z-index: 1 !important;
}

body.auth-body.site-milkdrop-page .auth-launch-box {
    background: linear-gradient(145deg, rgba(15, 13, 18, .72), rgba(5, 5, 8, .52)) !important;
    -webkit-backdrop-filter: blur(6px) saturate(1.06) !important;
    backdrop-filter: blur(6px) saturate(1.06) !important;
}

body.auth-body.site-milkdrop-page .site-auth-hero :where(
    .auth-launch-grid a,
    .auth-launch-note,
    .auth-join-reasons > div
) {
    background: linear-gradient(145deg, rgba(15, 13, 18, .48), rgba(5, 5, 8, .28)) !important;
    -webkit-backdrop-filter: blur(2px) saturate(1.04) !important;
    backdrop-filter: blur(2px) saturate(1.04) !important;
}

/* Let a restrained amount of the shared visual pass through the navigation rails. */
body#top.site-milkdrop-page > .layout > .sidebar,
body#top.site-milkdrop-page > .layout > .rightbar {
    background-color: transparent !important;
    background-image: linear-gradient(180deg, rgba(12, 10, 15, .38), rgba(4, 4, 7, .24)) !important;
    -webkit-backdrop-filter: blur(2px) saturate(1.08);
    backdrop-filter: blur(2px) saturate(1.08);
}

html body#top.site-milkdrop-page > div.layout > aside.sidebar .menu-link,
html body#top.site-milkdrop-page > div.layout > aside.sidebar .sidebar-more-link,
html body#top.site-milkdrop-page > div.layout > aside.sidebar .sidebar-legal-link {
    background: linear-gradient(145deg, rgba(10, 9, 13, .16), rgba(3, 3, 6, .06)) !important;
}

html body#top.site-milkdrop-page > div.layout > aside.sidebar .menu-link.active,
html body#top.site-milkdrop-page > div.layout > aside.sidebar .sidebar-more-link.active {
    background: linear-gradient(145deg, rgba(212, 162, 76, .15), rgba(18, 14, 9, .08)) !important;
}

html body#top.site-milkdrop-page > div.layout > aside.rightbar > .widget,
html body#top.site-milkdrop-page > div.layout > aside.rightbar .page-tip-widget {
    background: linear-gradient(145deg, rgba(16, 13, 18, .28), rgba(6, 6, 9, .14)) !important;
}

html body#top.site-milkdrop-page.home-page:not(.studio-app-body) > div.layout > aside.rightbar.home-rightbar > .widget {
    background: linear-gradient(145deg, rgba(16, 13, 18, .28), rgba(6, 6, 9, .14)) !important;
}

/* Carry the same glass treatment through the center feed without dimming its text. */
html body#top.site-milkdrop-page > div.layout > main.feed .post-card:not(.admin-divine-hero):not(.site-page-hero),
html body#top.site-milkdrop-page > div.layout > main.feed .create-post,
html body#top.site-milkdrop-page > div.layout > main.feed .legal-card,
html body#top.site-milkdrop-page > div.layout > main.feed .legal-toc,
html body#top.site-milkdrop-page > div.layout > main.feed .forum-topic-card,
html body#top.site-milkdrop-page > div.layout > main.feed .forum-reply-card,
html body#top.site-milkdrop-page > div.layout > main.feed .forum-form,
html body#top.site-milkdrop-page > div.layout > main.feed .forum-search,
html body#top.site-milkdrop-page > div.layout > main.feed .public-audience-card,
html body#top.site-milkdrop-page > div.layout > main.feed .launch-trust-strip,
html body#top.site-milkdrop-page > div.layout > main.feed .launch-command-card,
html body#top.site-milkdrop-page > div.layout > main.feed .community-live-strip,
html body#top.site-milkdrop-page > div.layout > main.feed .home-live-deck {
    background: linear-gradient(145deg, rgba(15, 13, 18, .34), rgba(5, 5, 8, .18)) !important;
    -webkit-backdrop-filter: blur(2px) saturate(1.06);
    backdrop-filter: blur(2px) saturate(1.06);
}

html body#top.site-milkdrop-page > div.layout > main.feed :where(
    .hero-signal-counters > div,
    .hero-alpha-notice,
    .home-hero-chips > span,
    .public-benefit-grid > span,
    .public-proof-stat,
    .public-post-mini-card
) {
    background: linear-gradient(145deg, rgba(12, 10, 15, .24), rgba(4, 4, 7, .08)) !important;
}

/*
 * Shared page hero: keep the launch artwork, but render it as a translucent
 * layer so the page MilkDrop remains visible underneath. Only pages that opt
 * in with .site-page-hero receive the common desktop height; compact workflow
 * surfaces such as Messages, Profile and Settings deliberately stay unmarked.
 */
html body#top.site-milkdrop-page > div.layout > main.feed > .site-page-hero {
    box-sizing: border-box !important;
    position: relative !important;
    isolation: isolate !important;
    min-height: 410px !important;
    height: 410px !important;
    max-height: 410px !important;
    padding: clamp(28px, 3.6vw, 48px) !important;
    overflow: hidden !important;
    border-color: rgba(212, 162, 76, .34) !important;
    background: rgba(5, 5, 8, .1) !important;
    filter: none !important;
    -webkit-backdrop-filter: blur(1px) saturate(1.06) !important;
    backdrop-filter: blur(1px) saturate(1.06) !important;
}

html body#top.site-milkdrop-page > div.layout > main.feed > .site-page-hero::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: -1 !important;
    opacity: .64 !important;
    border: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    mix-blend-mode: multiply !important;
    background:
        linear-gradient(90deg, rgba(5, 4, 7, .92) 0%, rgba(5, 4, 7, .52) 50%, rgba(5, 4, 7, .16) 100%),
        var(--launch-hero-image, url("/assets/launch-network-hero.jpg")) !important;
    background-image:
        linear-gradient(90deg, rgba(5, 4, 7, .92) 0%, rgba(5, 4, 7, .52) 50%, rgba(5, 4, 7, .16) 100%),
        var(--launch-hero-image, url("/assets/launch-network-hero.jpg")) !important;
    background-size: auto, cover !important;
    background-position: center, center !important;
    background-repeat: no-repeat, no-repeat !important;
    pointer-events: none !important;
}

html body#top.site-milkdrop-page > div.layout > main.feed > .site-page-hero::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: -1 !important;
    opacity: 1 !important;
    border: 0 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025) !important;
    background: linear-gradient(180deg, rgba(5, 4, 7, .04), rgba(5, 4, 7, .24)) !important;
    pointer-events: none !important;
}

html body#top.site-milkdrop-page > div.layout > main.feed > .site-page-hero > *,
html body#top.site-milkdrop-page > div.layout > main.feed > .site-page-hero > :where(h1, h2, p, span) {
    position: relative !important;
    z-index: 1 !important;
}

html body#top.site-milkdrop-page > div.layout > main.feed > .site-page-hero :where(h1, h2, p) {
    background: transparent !important;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .8) !important;
}

@media (min-width: 901px) {
    html body#top.site-milkdrop-page.home-page > div.layout > main.feed > .home-hero-card.site-page-hero .home-hero-content {
        display: grid !important;
        align-content: center !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 720px !important;
        height: 100% !important;
    }

    html body#top.site-milkdrop-page.home-page > div.layout > main.feed > .home-hero-card.site-page-hero .home-hero-content > * {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    html body#top.site-milkdrop-page.home-page > div.layout > main.feed > .home-hero-card.site-page-hero :where(
        .hero-genre-rotator,
        .hero-pulse-separator,
        .hero-alpha-notice,
        .home-hero-chips
    ) {
        display: none !important;
    }

    html body#top.site-milkdrop-page.home-page > div.layout > main.feed > .home-hero-card.site-page-hero h1 {
        max-width: 25ch !important;
        font-size: 2.7rem !important;
        line-height: .98 !important;
    }

    html body#top.site-milkdrop-page.home-page > div.layout > main.feed > .home-hero-card.site-page-hero p.desktop-launch-only {
        max-width: 680px !important;
    }

    html body#top.site-milkdrop-page.home-page > div.layout > main.feed > .home-hero-card.site-page-hero .hero-signal-counters {
        margin: 2px 0 0 !important;
    }

    html body#top.site-milkdrop-page.home-page > div.layout > main.feed > .home-hero-card.site-page-hero {
        padding: 28px 32px !important;
    }

    html body#top.site-milkdrop-page.visualizer-maker-page > div.layout > main.feed > .visualizer-maker-hero.site-page-hero {
        padding: 28px 32px !important;
    }

    html body#top.site-milkdrop-page.visualizer-maker-page > div.layout > main.feed > .visualizer-maker-hero.site-page-hero h1 {
        font-size: clamp(2.45rem, 3.2vw, 3rem) !important;
        line-height: .98 !important;
    }

    html body#top.site-milkdrop-page.visualizer-maker-page > div.layout > main.feed > .visualizer-maker-hero.site-page-hero .visualizer-journey-status {
        display: none !important;
    }
}

@media (max-width: 900px) {
    html body#top.site-milkdrop-page > div.layout > main.feed > .site-page-hero {
        min-height: 270px !important;
        height: auto !important;
        max-height: none !important;
        padding: 24px 20px !important;
    }
}

body#top.site-milkdrop-page .mobile-bottom-nav {
    background-color: rgba(7, 6, 10, .52) !important;
    -webkit-backdrop-filter: blur(6px) saturate(1.08);
    backdrop-filter: blur(6px) saturate(1.08);
}

.site-milkdrop-backdrop[data-state="loading"],
.site-milkdrop-backdrop[data-state="starting"],
.site-milkdrop-backdrop[data-state="fallback"],
.site-milkdrop-backdrop[data-state="released"] {
    opacity: 0;
}

.site-milkdrop-backdrop[data-state="snapshot"] {
    opacity: .64;
}

@media (prefers-reduced-motion: reduce) {
    .site-milkdrop-backdrop {
        transition: none;
    }

    .site-milkdrop-snapshot {
        transition: none;
    }
}
