.gp-webgl-shortcode {
  position: relative;
  width: 100%;
  margin-bottom: 0 !important;
}

html.gp-mobile-game-active,
body.gp-mobile-game-active {
  overflow: hidden !important;
  overscroll-behavior: none;
  width: var(--gp-mobile-viewport-width, 100%) !important;
  height: var(--gp-mobile-viewport-height, 100%) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: var(--gp-mobile-viewport-width, 100%) !important;
  max-height: var(--gp-mobile-viewport-height, 100%) !important;
}

body.gp-mobile-game-active {
  margin: 0 !important;
  background: #000;
}

html.gp-mobile-game-active:fullscreen,
body.gp-mobile-game-active:fullscreen,
html.gp-mobile-game-active:-webkit-full-screen,
body.gp-mobile-game-active:-webkit-full-screen {
  position: fixed !important;
  inset: 0 !important;
  width: var(--gp-mobile-viewport-width, 100vw) !important;
  height: var(--gp-mobile-viewport-height, 100dvh) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: var(--gp-mobile-viewport-width, 100vw) !important;
  max-height: var(--gp-mobile-viewport-height, 100dvh) !important;
  margin: 0 !important;
  overflow: hidden !important;
  touch-action: none;
  transform: none !important;
}

.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;
  padding: 28px 20px;
}

.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 .gp-preloader-progress {
  width: min(420px, calc(100% - 32px));
  margin-top: 18px;
  padding: 14px 16px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(27, 31, 48, 0.96) 0%, rgba(19, 22, 36, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
}

.gp-webgl-shortcode .gp-preloader-progress-track {
  position: relative;
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.32);
}

.gp-webgl-shortcode .gp-preloader-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(88, 220, 153, 0.96) 0%, rgba(110, 156, 255, 0.98) 100%);
  box-shadow: 0 0 16px rgba(110, 156, 255, 0.28);
  transition: width 0.24s ease;
}

.gp-webgl-shortcode .gp-preloader-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.85rem;
  line-height: 1.2;
}

.gp-webgl-shortcode .gp-preloader-progress-percent {
  color: #f4f6ff;
  font-weight: 800;
}

.gp-webgl-shortcode .gp-preloader-progress-eta {
  color: rgba(233, 237, 255, 0.82);
  text-align: right;
}

.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 .pregame-clicky .load-game-btn {
  background-color: rgb(78, 46, 205);
}

.gp-webgl-shortcode .pregame-clicky .load-game-btn:hover,
.gp-webgl-shortcode .pregame-clicky .load-game-btn:focus {
  background-color: rgb(66, 38, 176);
}

.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.gp-mobile-fill-active {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  bottom: auto !important;
  width: var(--gp-mobile-viewport-width, 100vw) !important;
  height: var(--gp-mobile-viewport-height, 100dvh) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-height: none;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  background: #000;
  overflow: hidden;
  z-index: 100000;
}

.gp-webgl-shortcode.gp-mobile-fill-active .game-container {
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  bottom: auto;
  width: var(--gp-mobile-viewport-width, 100vw) !important;
  height: var(--gp-mobile-viewport-height, 100dvh) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  box-sizing: border-box;
  background: #000;
  overflow: hidden;
}

.gp-webgl-shortcode.gp-mobile-fill-active #unity-canvas,
.gp-webgl-shortcode.gp-mobile-fill-active #preloader {
  width: var(--gp-mobile-viewport-width, 100vw) !important;
  height: var(--gp-mobile-viewport-height, 100dvh) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
}

.gp-webgl-shortcode.gp-mobile-fill-active .gp-custom-bar {
  display: none !important;
}

.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 .configuration-controls.gp-floating-home {
  position: fixed !important;
  left: 0 !important;
  right: auto !important;
  top: 16px !important;
  bottom: auto !important;
  margin-top: 0 !important;
  z-index: 100100;
  cursor: grab;
  touch-action: none;
}

.gp-webgl-shortcode .configuration-controls.gp-floating-home.gp-dragging {
  cursor: grabbing;
}

.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: 100100;
  border-radius: 10px;
}

body.gp-mobile-game-active .gp-ad-overlay,
body.gp-mobile-game-active .jbf-ad-overlay,
body.gp-mobile-game-active [data-gp-ad-overlay],
body.gp-mobile-game-active [data-jbf-ad-overlay],
body.gp-mobile-game-active [data-ad-overlay],
body.gp-mobile-game-active [id*="google_ads_iframe"],
body.gp-mobile-game-active [id*="div-gpt-ad"],
body.gp-mobile-game-active [id*="gpt_unit"],
body.gp-mobile-game-active [id*="interstitial"],
body.gp-mobile-game-active [id*="rewarded"],
body.gp-mobile-game-active [id*="reward"],
body.gp-mobile-game-active [id*="jbftag"],
body.gp-mobile-game-active [class*="interstitial"],
body.gp-mobile-game-active [class*="rewarded"],
body.gp-mobile-game-active [class*="reward"],
body.gp-mobile-game-active [class*="jbftag"] {
  z-index: 2147483647 !important;
  pointer-events: auto !important;
}

.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;
}

.GameInfo_roundedCornersContainer__D5D_p {
  margin-top: 16px !important;
}

@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: 100100 !important;
  }

  .gp-webgl-shortcode #modal-config {
    position: fixed !important;
    bottom: 10% !important;
  }
}

@media only screen and (max-width: 600px) {
  .gp-webgl-shortcode #pregame-padding {
    aspect-ratio: 1 / 1;
    border-radius: 18px;
  }

  .gp-webgl-shortcode .preloader-text {
    color: #fff !important;
  }

  .gp-webgl-shortcode .gp-preloader-progress {
    width: min(360px, calc(100% - 20px));
    margin-top: 14px;
    padding: 12px 12px 10px;
    border-radius: 12px;
  }

  .gp-webgl-shortcode .gp-preloader-progress-track {
    height: 10px;
  }

  .gp-webgl-shortcode .gp-preloader-progress-meta {
    font-size: 0.78rem;
    margin-top: 8px;
  }

  .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;
  }
}
