/* Side panels never become mobile banners. Keep this breakpoint in sync
   with desktop_ads.js and the inline AdSense sizing rules. */
.desktop-ad-layout {
    display: contents;
}

.desktop-ad-rail {
    display: none;
}

.site-footer-inner {
    box-sizing: border-box;
}

@media (min-width: 961px) {
    .site-nav .nav-links {
        min-width: 0;
        flex-wrap: wrap;
    }
}

@media (min-width: 1440px) and (hover: hover) and (pointer: fine) {
    .desktop-ad-layout {
        width: min(1920px, 100%);
        display: grid;
        grid-template-columns: 160px minmax(0, 1fr) 160px;
        column-gap: 24px;
        align-items: start;
        justify-items: center;
        margin-inline: auto;
    }

    .desktop-ad-layout-home {
        max-width: 1540px;
    }

    .desktop-ad-layout > .landing-card {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .desktop-ad-layout .leaderboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .desktop-ad-layout > .landing-card .home-lane-play {
        max-width: 100%;
    }

    .desktop-ad-layout.desktop-ad-layout-game {
        width: min(1340px, 100%);
        grid-template-columns: 160px minmax(0, 720px) 160px;
        column-gap: 150px;
        align-items: center;
    }

    .desktop-ad-layout-game > .container {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .desktop-ad-rail {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 160px;
        padding-top: 24px;
    }

    .desktop-ad-label {
        color: #94a3b8;
        font: 10px/1.4 Arial, sans-serif;
        letter-spacing: 0.08em;
        text-align: center;
        text-transform: uppercase;
    }

    .desktop-ad-placeholder {
        height: 600px;
        box-sizing: border-box;
        display: grid;
        place-content: center;
        border: 1px dashed rgba(153, 246, 228, 0.32);
        border-radius: 16px;
        color: #99f6e4;
        background: rgba(7, 18, 34, 0.24);
        font: 12px/1.6 Arial, sans-serif;
        text-align: center;
    }
}

@media (min-width: 1600px) and (hover: hover) and (pointer: fine) {
    .desktop-ad-layout .leaderboard-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
