/* IQM Games launcher */
.iqm-games-launcher{
  width:100%;
  max-width:100%;
  margin:0;
}

.iqm-games-anchor{
  position:relative;
  width:100%;
  height:1px;
  margin:0;
  padding:0;
  pointer-events:none;
}

.iqm-games-floating-launcher{
  position:fixed;
  left:50%;
  bottom:20px;
  z-index:99990;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  width:min(100vw - 24px, 420px);
  padding:14px;
  box-sizing:border-box;
  border:1px solid #d6e2ec;
  border-radius:20px;
  background:rgba(255,255,255,.96);
  box-shadow:0 16px 40px rgba(17, 39, 64, .16);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.iqm-games-floating-launcher__button,
.iqm-games-prestart__button,
.iqm-games-overlay__close{
  -webkit-appearance:none;
  appearance:none;
  border:0;
}

.iqm-games-floating-launcher__button,
.iqm-games-prestart__button{
  min-width:180px;
  padding:14px 28px;
  border-radius:999px;
  background:#337ab7;
  color:#fff;
  font-size:22px;
  font-weight:700;
  line-height:1.2;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(51,122,183,.28);
  transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.iqm-games-floating-launcher__button:hover,
.iqm-games-floating-launcher__button:focus-visible,
.iqm-games-prestart__button:hover,
.iqm-games-prestart__button:focus-visible{
  transform:translateY(-1px);
  box-shadow:0 14px 28px rgba(51,122,183,.34);
}

.iqm-games-prestart__button[disabled]{
  cursor:wait;
  opacity:.65;
  transform:none;
  box-shadow:0 10px 22px rgba(51,122,183,.18);
}

.iqm-games-overlay{
  position:fixed;
  inset:0;
  z-index:999999;
}

.iqm-games-overlay[hidden],
.iqm-games-prestart[hidden],
.iqm-games-floating-launcher[hidden]{
  display:none !important;
}

.iqm-games-overlay__backdrop{
  position:absolute;
  inset:0;
  background:#fff;
}

.iqm-games-overlay__dialog{
  position:relative;
  z-index:1;
  width:100vw;
  height:100dvh;
  margin:0 auto;
  padding:20px;
  box-sizing:border-box;
  background:#fff;
}

.iqm-games-overlay__close{
  position:absolute;
  top:18px;
  right:18px;
  z-index:4;
  width:52px;
  height:52px;
  border-radius:999px;
  background:#fff;
  color:#111;
  font-size:34px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 12px 28px rgba(0,0,0,.16);
  border:1px solid #cfdbe6;
}

.iqm-games-overlay__close:hover,
.iqm-games-overlay__close:focus-visible{
  transform:scale(1.03);
}

.iqm-games-overlay__stage-wrap{
  position:relative;
  width:100%;
  height:100%;
}

.iqm-games-overlay__stage{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  overflow:auto;
  padding:48px 0 24px;
  box-sizing:border-box;
}

.iqm-games-overlay__stage > .iqm-game{
  width:100%;
  margin:auto;
}

.iqm-games-prestart{
  position:absolute;
  inset:0;
  z-index:3;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:auto;
}

.iqm-games-prestart__backdrop{
  position:absolute;
  inset:0;
  background:rgba(255,255,255,.78);
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
}

.iqm-games-prestart__controls{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  width:min(100%, 460px);
  padding:20px 16px;
  box-sizing:border-box;
}

body.iqm-games-lock-scroll{
  overflow:hidden;
}

@media (max-width: 767px){
  .iqm-games-floating-launcher{
    bottom:12px;
    width:calc(100vw - 16px);
    padding:10px;
    border-radius:18px;
  }

  .iqm-games-floating-launcher__button,
  .iqm-games-prestart__button{
    min-width:160px;
    font-size:20px;
  }

  .iqm-games-overlay__dialog{
    width:100vw;
    padding:12px;
  }

  .iqm-games-overlay__close{
    top:12px;
    right:12px;
    width:46px;
    height:46px;
    font-size:30px;
  }

  .iqm-games-overlay__stage{
    padding:44px 0 16px;
  }

  .iqm-games-prestart__controls{
    width:100%;
    padding:16px 8px;
  }
}
