/* Clearer UX fix preview — 2026-11-24 (isolated).
   Scoped to body.slp-layout-new. Classic keeps nav-floating-hotfix always-visible nav. */

body.slp-layout-new .playstore-live-banner {
    display: none !important;
}

body.slp-layout-new .playstore-clearer-card {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    align-items: center;
    justify-content: space-between;
    width: min(1120px, calc(100% - 24px));
    margin: 0.75rem auto;
    padding: 0.7rem 0.95rem;
    border-radius: 12px;
    border: 1px solid rgba(61, 220, 132, 0.28);
    background: linear-gradient(120deg, rgba(12, 36, 24, 0.92), rgba(10, 18, 30, 0.96));
    color: #e8fff2;
    text-decoration: none;
}

body.slp-layout-new .playstore-clearer-card:hover,
body.slp-layout-new .playstore-clearer-card:focus-visible {
    border-color: rgba(120, 240, 170, 0.55);
    outline: 2px solid rgba(120, 240, 170, 0.65);
    outline-offset: 2px;
}

body.slp-layout-new .playstore-clearer-card img {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    flex: 0 0 auto;
}

body.slp-layout-new .playstore-clearer-card-copy {
    display: grid;
    gap: 0.15rem;
    min-width: min(100%, 14rem);
    flex: 1 1 12rem;
}

body.slp-layout-new .playstore-clearer-card-copy strong {
    color: #fff;
    font-size: 0.92rem;
}

body.slp-layout-new .playstore-clearer-card-copy span {
    color: #b7d7c8;
    font-size: 0.8rem;
    line-height: 1.35;
}

body.slp-layout-new .playstore-clearer-card-cta {
    flex: 0 0 auto;
    font-weight: 800;
    font-size: 0.82rem;
    color: #d9ffe9;
    white-space: nowrap;
}

body.slp-layout-new .nav-clearer-desktop-actions {
    display: none;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
}

body.slp-layout-new .nav-clearer-desktop-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(125, 199, 255, 0.3);
    background: rgba(8, 18, 32, 0.9);
    color: #e7f3ff;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

body.slp-layout-new .nav-clearer-desktop-actions a.is-primary {
    border-color: rgba(244, 196, 61, 0.55);
    background: linear-gradient(135deg, rgba(72, 52, 14, 0.95), rgba(18, 28, 42, 0.96));
    color: #fff8e4;
}

body.slp-layout-new .nav-clearer-tools {
    display: none;
    align-items: center;
    gap: 0.55rem;
    flex: 0 1 auto;
    min-width: 0;
    margin-left: 0.35rem;
}

body.slp-layout-new .nav-clearer-tools .nav-clearer-find {
    flex: 1 1 14rem;
    min-width: 12rem;
    max-width: 18rem;
}

body.slp-layout-new .nav-clearer-tools .nav-find-input {
    width: 100%;
    min-width: 0;
}

body.slp-layout-new .nav-clearer-account {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(125, 199, 255, 0.35);
    background: rgba(8, 18, 32, 0.92);
    color: #e7f3ff;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    flex: 0 0 auto;
}

body.slp-layout-new .nav-clearer-account.is-active,
body.slp-layout-new .nav-mobile-account.is-active {
    border-color: rgba(120, 240, 170, 0.55);
    color: #e8fff2;
    box-shadow: inset 0 0 0 1px rgba(120, 240, 170, 0.25);
}

body.slp-layout-new .nav-clearer-account:focus-visible,
body.slp-layout-new .nav-clearer-desktop-actions a:focus-visible,
body.slp-layout-new .nav-mobile-actions > a:focus-visible,
body.slp-layout-new .nav-mobile-actions > button:focus-visible,
body.slp-layout-new .nav-clearer-tools .nav-find-input:focus-visible {
    outline: 2px solid rgba(125, 199, 255, 0.85);
    outline-offset: 2px;
}

body.slp-layout-new .slp-menu-group-label {
    display: block;
    margin: 0.55rem 0.35rem 0.2rem;
    padding: 0.2rem 0.4rem;
    color: #9ec2e8;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.slp-layout-new .nc-home {
    gap: 1rem;
}

body.slp-layout-new .nc-hero.nc-hero-compact {
    padding: 0.95rem 1.05rem 1.05rem;
}

body.slp-layout-new .nc-hero-actions .btn {
    min-height: 42px;
}

body.slp-layout-new .nc-world-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

body.slp-layout-new .nc-world-compact .nc-world-card {
    flex: 1 1 16rem;
}

body.slp-layout-new .nc-secondary-after-hero {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

body.slp-layout-new .nc-secondary-after-hero .slp-bar,
body.slp-layout-new .nc-secondary-after-hero .member-topbar-pro,
body.slp-layout-new .account-secondary-after .slp-bar,
body.slp-layout-new .account-secondary-after .member-topbar-pro,
body.slp-layout-new .clearer-deferred-chrome .slp-bar,
body.slp-layout-new .clearer-deferred-chrome .member-topbar-pro {
    margin: 0;
    border-radius: 14px;
}

body.slp-layout-new .clearer-deferred-chrome {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0 0.25rem;
}

body.slp-layout-new .nc-summary-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

body.slp-layout-new .nc-summary-panels .nc-panel {
    margin: 0;
}

body.slp-layout-new .account-clearer-lead {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

body.slp-layout-new .account-clearer-lead-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: flex-end;
    justify-content: space-between;
}

body.slp-layout-new .account-clearer-lead-head h1 {
    margin: 0.15rem 0 0;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
}

body.slp-layout-new .account-clearer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

body.slp-layout-new .account-secondary-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

body.slp-layout-new .account-secondary-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(125, 199, 255, 0.24);
    background: rgba(8, 14, 24, 0.88);
    color: #d7e7fb;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.setup-checklist {
    display: grid;
    gap: 0.55rem;
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(125, 199, 255, 0.24);
    background: rgba(8, 14, 24, 0.9);
}

.setup-checklist h2 {
    margin: 0.15rem 0 0.25rem;
    font-size: 1.15rem;
}

.setup-checklist ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.setup-checklist li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.55rem;
    align-items: center;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.setup-checklist li.is-done {
    opacity: 0.72;
}

.setup-checklist b {
    width: 1.5rem;
    height: 1.5rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(91, 198, 255, 0.18);
    color: #dff4ff;
    font-size: 0.78rem;
}

.setup-checklist li.is-done b {
    background: rgba(61, 220, 132, 0.2);
    color: #d9ffe9;
}

.setup-checklist small {
    display: block;
    color: var(--muted, #9bb2c3);
    margin-top: 0.15rem;
}

.support-clearer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0 0 1rem;
}

/* Seasonal FX toggle must sit above the Clearer topbar (z-index 1200–5000). */
body.slp-layout-new .rsc-seasonal-controls {
    z-index: 5200;
}

@media (min-width: 901px) {
    /*
     * Clearer desktop header — leave the Classic hotfix grid alone.
     * Keep Find Anything + Account as one tight pair (not stranded in the far "clients" column).
     * Order: brand · play/app · find/account · roster · full-width hubs
     */
    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new .topbar .wrap.nav-wrap {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 8px 12px !important;
        grid-template-areas: none !important;
        grid-template-columns: none !important;
    }

    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new .topbar .brand {
        order: 1;
        flex: 0 0 auto;
        min-width: 0;
    }

    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new .topbar .nav-clearer-desktop-actions {
        order: 2;
        display: inline-flex !important;
        flex: 0 0 auto;
        margin-left: 0;
    }

    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new .topbar .nav-clearer-tools {
        order: 3;
        display: inline-flex !important;
        align-items: center;
        gap: 0.45rem;
        flex: 0 1 auto;
        margin-left: 0.25rem;
        min-width: 0;
    }

    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new .topbar .site-live-roster-control {
        order: 4;
        margin-left: auto;
        flex: 0 1 240px;
        width: auto !important;
        max-width: 240px !important;
        grid-area: auto !important;
    }

    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new .topbar #primary-navigation {
        order: 5;
        flex: 1 1 100%;
        width: 100% !important;
        display: flex !important;
        grid-area: auto !important;
        margin: 0 !important;
        padding-top: 6px !important;
    }

    body.slp-layout-new .nav-clearer-desktop-actions {
        display: inline-flex;
    }

    body.slp-layout-new .nav-clearer-tools {
        display: inline-flex;
    }

    /* Desktop Search/Account live in .nav-clearer-tools — hide drawer duplicate. */
    body.slp-layout-new #primary-navigation > .nav-find {
        display: none !important;
    }

    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new .topbar .nav-mobile-actions,
    body.slp-layout-new .nav-mobile-actions {
        display: none !important;
    }

    body.slp-layout-new .nav-client-dock,
    body.slp-layout-new .nav-tablet-download {
        display: none !important;
    }

    body.slp-layout-new .slp-primary-hubs {
        flex: 1 1 auto;
        justify-content: flex-start;
    }

    body.slp-layout-new .nav-clearer-tools .nav-clearer-find {
        max-width: 16rem;
        min-width: 12rem;
        flex: 1 1 12rem;
    }

    body.slp-layout-new .nav-clearer-account {
        flex: 0 0 auto;
    }
}

/*
 * Clearer mobile navigation contract
 * Must beat nav-floating-hotfix-20260826.css ID/body !important rules that force
 * always-visible #primary-navigation and hide .nav-mobile-actions.
 */
@media (max-width: 900px) {
    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new .topbar .wrap.nav-wrap {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px 10px !important;
        grid-template-areas: none !important;
        grid-template-columns: none !important;
    }

    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new .topbar .brand {
        order: 1;
        flex: 0 1 auto;
        min-width: 0;
    }

    /* Play · Search · Account · Menu stay one compact cluster beside the logo — not split across the header. */
    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new .topbar .nav-mobile-actions {
        order: 2;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0.3rem !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        grid-area: auto !important;
    }

    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new .topbar .nav-mobile-actions > a,
    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new .topbar .nav-mobile-actions > button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        grid-area: auto !important;
        position: static !important;
        min-height: 40px !important;
        min-width: 44px !important;
        width: auto !important;
        padding: 0.35rem 0.55rem !important;
        font-size: 0.78rem !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
        flex: 0 0 auto !important;
    }

    /* Classic-only Home/Forums shortcuts stay hidden on Clearer. Account uses .nav-mobile-account. */
    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new .topbar .nav-mobile-actions .nav-mobile-home,
    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new .topbar .nav-mobile-actions .nav-mobile-forums {
        display: none !important;
    }

    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new .topbar .nav-mobile-actions .nav-mobile-play,
    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new .topbar .nav-mobile-actions .nav-mobile-search,
    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new .topbar .nav-mobile-actions .nav-mobile-account,
    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new .topbar .nav-mobile-actions .nav-mobile-toggle {
        display: inline-flex !important;
    }

    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new .topbar .nav-client-dock,
    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new .topbar .nav-tablet-download,
    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new .topbar .nav-clearer-desktop-actions,
    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new .topbar .nav-clearer-tools {
        display: none !important;
    }

    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new .topbar .site-live-roster-control {
        order: 6;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new .topbar .site-live-roster-control .site-live-pill {
        width: 100% !important;
        max-width: none !important;
        min-height: 42px !important;
    }

    /* Closed drawer by default — overrides hotfix #primary-navigation { display:flex !important } */
    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new #primary-navigation {
        display: none !important;
        grid-area: auto !important;
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        max-height: calc(100dvh - 76px) !important;
        margin: 0 !important;
        padding: 10px 8px 14px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        flex-flow: column nowrap !important;
        align-items: stretch !important;
        gap: 7px !important;
        background: linear-gradient(180deg, rgba(10, 17, 28, 0.98), rgba(4, 8, 15, 0.99)) !important;
        border: 1px solid rgba(148, 177, 224, 0.15) !important;
        border-radius: 16px !important;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35) !important;
    }

    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new #primary-navigation.is-mobile-open {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
    }

    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new #primary-navigation .slp-primary-hubs {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.4rem !important;
        width: 100% !important;
    }

    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new #primary-navigation .slp-primary-hubs a {
        justify-content: center !important;
        min-height: 42px !important;
        white-space: normal !important;
        text-align: center !important;
    }

    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new #primary-navigation .nav-find {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
    }

    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new #primary-navigation .nav-find-input {
        width: 100% !important;
        min-width: 0 !important;
    }

    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new #primary-navigation > .nav-cluster,
    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new #primary-navigation > .nav-link {
        width: 100% !important;
        max-width: none !important;
    }

    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new #primary-navigation > .nav-cluster > .nav-trigger,
    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new #primary-navigation > .nav-link {
        width: 100% !important;
        justify-content: flex-start !important;
        min-height: 48px !important;
    }

    body.slp-layout-new .nc-summary-panels {
        grid-template-columns: 1fr;
    }

    body.slp-layout-new .member-topbar-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new .topbar .nav-mobile-actions {
        flex-wrap: wrap !important;
        justify-content: flex-end !important;
        max-width: calc(100% - 48px) !important;
        row-gap: 0.3rem !important;
    }

    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new .topbar .nav-mobile-actions > a,
    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new .topbar .nav-mobile-actions > button {
        padding: 0.3rem 0.45rem !important;
        font-size: 0.72rem !important;
        min-width: 40px !important;
    }

    body.slp-layout-new .brand small,
    body.slp-layout-new .brand span > small {
        display: none !important;
    }
}

@media (max-width: 360px) {
    body.rsc-site-polish.rsc-nav-v2.nav-only-preview.slp-layout-new .topbar .brand > span {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.slp-layout-new .rsc-seasonal-fx,
    body.slp-layout-new .playstore-live-banner-track {
        animation: none !important;
    }
}
