.gp-webgl-shortcode {
  position: relative;
  width: 100%;
}

.gp-webgl-shortcode #preloader {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 12;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: #1a2236;
  box-sizing: border-box;
}

.gp-webgl-shortcode #preloader img {
  width: 100px;
  height: auto;
}

.gp-webgl-shortcode .preloader-text {
  margin-top: 18px;
  color: #fff;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
}

.gp-webgl-shortcode .overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: #000;
  z-index: 1001;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.gp-webgl-shortcode .overlay img {
  width: 200px;
  height: auto;
}

.gp-webgl-shortcode .overlay-bottom-image {
  position: absolute;
  bottom: 10px;
  width: 90px !important;
  height: auto;
}

.gp-webgl-shortcode #pregame-padding {
  position: relative;
  width: 100%;
  max-width: 1080px;
  aspect-ratio: 1080 / 520;
  min-height: 0;
  margin: 0 auto 10px;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 20px;
}

.gp-webgl-shortcode .gp-webgl-blur-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(10px);
  z-index: 1;
  opacity: 0.7;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
}

.gp-webgl-shortcode .gp-webgl-pregame-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 78px;
  box-sizing: border-box;
  text-align: center;
}

.gp-webgl-shortcode .gp-webgl-pregame-inner img,
.gp-webgl-shortcode .gp-webgl-pregame-inner video {
  width: min(180px, 32vw);
  height: min(180px, 32vw);
  max-width: 180px;
  max-height: 180px;
  object-fit: cover;
  display: block;
}

.gp-webgl-shortcode .game-container {
  display: none;
  text-align: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.gp-webgl-shortcode #unity-canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  background: #000;
}

.gp-webgl-shortcode .game-container.is-loading #unity-canvas {
  opacity: 0;
  visibility: hidden;
}

.gp-webgl-shortcode .game-container.is-loading {
  background: transparent;
}

.gp-webgl-shortcode .game-container.is-loading .configuration-controls,
.gp-webgl-shortcode .game-container.is-loading #modal-config {
  display: none !important;
}

.gp-webgl-shortcode .configuration-controls {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 35px;
  border-radius: 0 20px 20px 0;
  background-color: #fff;
  align-items: center;
  justify-content: space-evenly;
  margin-top: 65px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  align-content: center;
  flex-wrap: nowrap;
  padding-top: 7px;
  padding-right: 5px;
  z-index: 1000;
}

.gp-webgl-shortcode .gp-webgl-config-home {
  display: flex;
  align-items: center;
}

.gp-webgl-shortcode #modal-config {
  display: none;
  position: absolute;
  right: 6%;
  bottom: 4%;
  background-color: #000;
  padding: 10px;
  z-index: 9999;
  border-radius: 10px;
}

.gp-webgl-shortcode .gp-webgl-modal-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gp-webgl-shortcode .gp-webgl-modal-actions {
  display: flex;
  gap: 10px;
}

.gp-webgl-shortcode .fullscreen-btn- {
  width: 36px;
  height: 36px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
}

@media (max-width: 962px) {
  .gp-webgl-shortcode #pregame-padding {
    max-width: 100%;
  }

  .gp-webgl-shortcode .gp-webgl-pregame-inner {
    padding: 28px 18px 64px;
  }

  .gp-webgl-shortcode #configuration-controls {
    position: fixed !important;
    top: auto;
    bottom: 10% !important;
    z-index: 999 !important;
  }

  .gp-webgl-shortcode #modal-config {
    position: fixed !important;
    bottom: 10% !important;
  }
}

@media only screen and (max-width: 600px) {
  .gp-webgl-shortcode .preloader-text {
    color: #fff !important;
  }

  .gp-webgl-shortcode .gp-webgl-pregame-inner {
    padding: 20px 16px 56px;
  }

  .gp-webgl-shortcode .gp-webgl-pregame-inner img,
  .gp-webgl-shortcode .gp-webgl-pregame-inner video {
    width: min(140px, 38vw);
    height: min(140px, 38vw);
    max-width: 140px;
    max-height: 140px;
  }

  .gp-webgl-shortcode #preloader {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin-top: 0;
    z-index: 12;
    overflow: hidden !important;
  }

  body.preloader-active,
  .jbf-container.preloader-active {
    overflow: hidden !important;
  }

  .jbf-container.preloader-active {
    pointer-events: none !important;
  }

  .gp-webgl-shortcode .fullscreen-btn- {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}
