/* Plain black canvas beneath the document-attached snow. */
html {
  background: #000 !important;
  background-image: none !important;
}

body {
  background-color: #000 !important;
  background-image: none !important;
  background-position: center top !important;
  background-repeat: repeat-y !important;
  background-size: 100% auto !important;
  background-attachment: scroll !important;
}

/* The wallpaper starts with empty space. Align its first graphite shape with
   the bottom of the header on order and order-detail pages, without stretching it. */
@media (min-width: 768px) {
  body:has(.lol-order-theme),
  body:has(.order-workspace),
  html.ebz-order-create-route body,
  html.ebz-order-detail-route body {
    background-position: center calc(64px - 9.9vw) !important;
  }

  /* Keep the back/login controls in the top corners without letting the
     login notice reserve an empty row above the order heading. */
  .lol-order-theme:not(.order-shell-mobile) > div.relative.z-10 {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }
  .lol-order-theme:not(.order-shell-mobile) > div.lol-checkout-shell.relative.z-10 {
    padding-top: 0 !important;
  }


  .lol-order-theme:not(.order-shell-mobile) > div.relative.z-10 > div.mb-3.ml-auto {
    position: absolute !important;
    top: 24px !important;
    right: 24px !important;
    z-index: 20 !important;
    margin-bottom: 0 !important;
  }

  .lol-order-theme:not(.order-shell-mobile) .max-w-5xl:has(> h1) {
    margin-bottom: 20px !important;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }
}

body::before,
body::after {
  content: none !important;
  display: none !important;
}

@media (max-width: 767px) {
  body {
    background-image: none !important;
  }

  body:has(.order-workspace),
  html.ebz-order-detail-route body {
    background-position: center calc(64px - 20.5vw) !important;
  }

  body:has(.order-workspace) .app-mobile-shell > main,
  html.ebz-order-detail-route body .app-mobile-shell > main {
    background: transparent !important;
  }
}

#root {
  position: relative;
  z-index: 1;
}

#root,
.app-mobile-shell,
.home-lava-stage,
.home-section-with-bg,
.lol-order-theme,
.ebz-auth-page {
  background: transparent !important;
  background-image: none !important;
}

/* Order pages used to paint an opaque gradient over the shared canvas. */
.lol-order-theme > [aria-hidden="true"].pointer-events-none {
  background: transparent !important;
}

.lol-order-theme > [aria-hidden="true"].pointer-events-none > div {
  display: none !important;
}

body,
.home-lava-stage {
  animation: none !important;
}

.home-lava-stage::before,
.home-lava-stage::after {
  content: none !important;
  display: none !important;
}

/* A legacy compiled rule still paints four animated colored glows on the first home section. */
.home-section-with-bg::before {
  content: none !important;
  display: none !important;
  background: none !important;
  animation: none !important;
}

/* Section-image dimmers should not interrupt the site-wide graphite pattern. */
.home-section-with-bg > .pointer-events-none.absolute.inset-0.bg-black {
  display: none !important;
}

.site-bg-layer,
.site-effects-layer,
.home-lava-background,
.home-shooting-stars,
.home-section-bg {
  display: none !important;
}

#ebz-home-games {
  background: transparent !important;
}

/* Fade the hero into the shared graphite canvas. */
.home-hero-block > .bg-gradient-to-b {
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .7) 55%, #000) !important;
}

/* Remove the pulsing gold halo and square-grid ornament behind the hero chat. */
.home-hero-content > div.pointer-events-none.absolute.inset-0,
.home-hero-content .ebz-hero-glow,
.home-hero-content .ebz-hero-ring-a {
  display: none !important;
  animation: none !important;
}

/* Join the game cards and process section without the old blurred transition. */
.why-us-process {
  padding-top: 56px !important;
}

/* Bring the process heading closer to the illustration and steps. */
.why-us-process > div > div:first-child {
  margin-bottom: 16px !important;
}

@media (min-width: 640px) {
  .why-us-process {
    padding-top: 84px !important;
  }
  .why-us-process > div > div:first-child {
    margin-bottom: 28px !important;
  }
}

.why-us-process > .pointer-events-none.absolute.top-0 {
  display: none !important;
}

.why-us-process .ebz-space-planet,
.why-us-process .ebz-space-ready {
  animation: none !important;
  transition: none !important;
}

@media (max-width: 767px) {
  #root .home-mobile-rework,
  #root .home-mobile-rework .home-lava-stage,
  #root .home-mobile-rework .home-section-with-bg {
    background: transparent !important;
    background-image: none !important;
  }

  #root .home-mobile-rework .why-us-process {
    padding-top: 56px !important;
  }
  .why-us-process > div > div:first-child {
    margin-bottom: 16px !important;
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  #root .home-mobile-rework .why-us-process {
    padding-top: 76px !important;
  }
}

/* Service checkout pages use a plain black canvas on desktop and mobile. */
html.ebz-order-create-route body,
body:has(.lol-order-theme) {
  background: #000 !important;
}
.lol-order-theme,
.lol-order-theme > [aria-hidden="true"].pointer-events-none {
  background: #000 !important;
}
