/* EXP Tube home-map background tiles.
   Add this file at: /public/css/home-map-tiles.css
*/

/* Tile background layer created by js/home-map-tiles.js */
.exp-home-map-bg {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  background-image: url("../assets/home-map/exptube-home-map-preview.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 180ms ease;
}

.exp-home-map-bg.is-ready { opacity: 1; }

.exp-home-map-bg__track {
  position: absolute;
  top: 0;
  height: 100%;
  display: flex;
  will-change: transform;
}

.exp-home-map-bg__slot,
.exp-home-map-bg__tile {
  height: 100%;
  flex: 0 0 auto;
}

.exp-home-map-bg__tile {
  display: block;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

/* Only use the big tiled theme-park map on the main/home map. */
body:not(.exp-map-home-hq) .exp-home-map-bg {
  display: none !important;
}

body.exp-map-home-hq #hqBgImage {
  opacity: 0 !important;
  background-image: none !important;
}

body.exp-map-home-hq .hq-bg-layer--shade {
  z-index: 3;
  background:
    linear-gradient(to top, rgba(4,8,15,0.45) 0%, rgba(4,8,15,0.18) 42%, rgba(4,8,15,0.04) 100%),
    radial-gradient(circle at top center, rgba(255,255,255,0.03), transparent 42%) !important;
}
