/* Normal-player purple satin artwork. Original background files remain untouched.
   Remove this stylesheet link and the is-purple-satin body class to restore them. */
body.is-purple-satin {
    background-color: #1b0533;
    background-image: var(--brand-background-amethyst);
    background-position: top center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
/* Keep a single continuous backdrop, without repeated section-sized panels. */
body.is-purple-satin #app > .container > .page-content > .page-content-wrapper.lobby {
    background: transparent !important;
}
body.is-purple-satin .lobby .event-frame,
body.is-purple-satin .lobby .event-podium,
body.is-purple-satin .lobby .demo_game_frame,
body.is-purple-satin .lobby .__slotGames-staging {
    display: none;
}
body.is-purple-satin .lobby .event-wrapper {
    position: relative;
    height: auto;
    padding-top: 0;
    padding-bottom: 18px;
}
body.is-purple-satin .lobby .title.rewards { top: 0; }
body.is-purple-satin .lobby .events-slider { margin-top: 12px; }
body.is-purple-satin .lobby .event-token-container { bottom: 0; }
body.is-purple-satin .lobby .demo-game { margin-top: 4px; padding-bottom: 18px; }
body.is-purple-satin .lobby .demo-game-title { position: relative; top: 0; }
body.is-purple-satin .lobby .demo-game-container {
    position: relative;
    width: 100%;
    margin-top: 8px;
}
body.is-purple-satin .lobby .demo-game-slider { margin-top: 0; }
body.is-purple-satin .lobby .__foryou-section .__liveGames-staging {
    transform: translateY(75%);
}
@media (max-width: 767px) {
    body.is-purple-satin .lobby .__foryou-section { margin-bottom: 24px; }
    body.is-purple-satin .lobby .__liveGames-section:not(.__foryou-section) {
        top: 0;
        padding-bottom: 24px;
    }
    body.is-purple-satin .lobby .__slotGames-section {
        top: 0;
        margin-top: 12px;
        padding-bottom: 24px;
    }
}
/* Leave room for scaled carousel cards at both mobile and desktop widths. */
body.is-purple-satin .lobby .demo-game { padding-bottom: clamp(18px, 4.5vw, 45px); }
body.is-purple-satin .lobby .__liveGames-section:not(.__foryou-section) { top: 0; }
body.is-purple-satin .lobby .__liveGames-section:not(.__foryou-section) .__liveGames-staging { display: none; }
@media (max-width: 767px) {
    body.is-purple-satin #app > .container > .page-content > .page-content-wrapper.lobby {
        padding-bottom: 100px !important;
    }
}

/* Anchor the normal lobby artwork to the jackpot/content area, below the header. */
body.is-purple-satin:has(.lobby-page-content) {
    background-image: none;
}
body.is-purple-satin #app > .container:has(> .lobby-page-content) {
    background-color: #1b0533;
    background-image: var(--brand-background-amethyst);
    background-position: top center;
    /* A width-based canvas stays stable while lazy images change page height. */
    background-size: 100% min(600vw, 6000px);
    transition: none !important;
    animation: none !important;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

/* Footer follows the last game row; never float it over the payment panel. */
body.is-purple-satin .lobby .lobby-information-payment-methods-section {
    margin-top: 16px;
    margin-bottom: 0;
}
body.is-purple-satin:has(.lobby-page-content) #app > .container > .copyright.primary {
    position: relative;
    inset: auto;
    transform: none;
    width: 100%;
    margin: 0;
    padding: 12px 0 calc(min(23.43vw, 234.3px) + 24px + env(safe-area-inset-bottom));
}
body.is-purple-satin #app > .container > .lobby-page-content > .page-content-wrapper.lobby {
    padding-bottom: 16px !important;
}

/* Transparent artwork provides a shallow stage without a rectangular section panel. */
body.is-purple-satin .lobby .event-wrapper,
body.is-purple-satin .lobby .demo-game,
body.is-purple-satin .lobby .__liveGames-section:not(.__foryou-section),
body.is-purple-satin .lobby .__slotGames-section {
    isolation: isolate;
}
body.is-purple-satin .lobby .event-wrapper::after,
body.is-purple-satin .lobby .demo-game::after,
body.is-purple-satin .lobby .__liveGames-section:not(.__foryou-section)::after,
body.is-purple-satin .lobby .__slotGames-section::after {
    content: "";
    position: absolute;
    left: 2%;
    bottom: 8px;
    width: 96%;
    height: min(14vw, 140px);
    background: var(--brand-background-podium) center / 100% 100% no-repeat;
    z-index: -1;
    pointer-events: none;
    transition: none;
}
body.is-purple-satin .lobby .event-wrapper,
body.is-purple-satin .lobby .demo-game {
    padding-bottom: clamp(56px, 14vw, 140px);
}
body.is-purple-satin .lobby .__liveGames-section:not(.__foryou-section),
body.is-purple-satin .lobby .__slotGames-section {
    padding-bottom: clamp(42px, 10.7vw, 107px);
}
body.is-purple-satin .lobby .event-token-container { bottom: 20px; }

/* Match the featured-game stage to the other transparent purple/gold podiums. */
body.is-purple-satin .lobby .__foryou-section {
    isolation: isolate;
    padding-bottom: clamp(56px, 14vw, 140px);
}
body.is-purple-satin .lobby .__foryou-section .__liveGames-staging { display: none; }
body.is-purple-satin .lobby .__foryou-section::after {
    content: "";
    position: absolute;
    left: 2%;
    bottom: 8px;
    width: 96%;
    height: min(14vw, 140px);
    background: var(--brand-background-podium) center / 100% 100% no-repeat;
    z-index: -1;
    pointer-events: none;
    transition: none;
}
@media (max-width: 767px) {
    body.is-purple-satin .lobby .__foryou-section { margin-bottom: 0; }
}

/* Desktop gutters retain the original viewport artwork outside the lobby. */
@media (min-width: 1001px) {
    body.is-purple-satin:has(.lobby-page-content) {
        background-image: url('/ui/2024/assets/images/global/viewport_background.webp');
        background-position: center top;
        background-size: cover;
        background-repeat: no-repeat;
        background-attachment: fixed;
        transition: none;
    }
}
