/* 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;
    }
}

/* The lobby artwork is a screen-sized layer pinned behind the content column. It fills the screen
   however long the lobby grows (a page-sized canvas ran out on long lobbies) and never rescales
   while lazy images change the page height. position: fixed rather than background-attachment:
   fixed, which iOS Safari ignores. */
body.is-purple-satin:has(.lobby-page-content) {
    background-image: none;
}
body.is-purple-satin #app > .container:has(> .lobby-page-content) {
    background: transparent;
}
body.is-purple-satin #app > .container:has(> .lobby-page-content)::before {
    content: "";
    position: fixed;
    top: 0;
    left: 50%;
    z-index: -1;
    width: 100%;
    max-width: 1000px;
    height: 100vh;
    /* The largest viewport, so the layer does not resize when the mobile toolbar collapses. */
    height: 100lvh;
    transform: translateX(-50%);
    background: #1b0533 var(--brand-background-amethyst) center top / cover no-repeat;
    pointer-events: none;
}

/* 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;
    }
}
