html.tahe-recharge-open,
body.tahe-recharge-open {
  overflow: hidden !important;
}

.tahe-recharge-overlay[hidden] {
  display: none !important;
}

.tahe-recharge-overlay {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  padding: 32px 48px;
  padding: clamp(20px, 4.4vh, 42px) clamp(20px, 3vw, 48px);
  place-items: center;
  background: rgba(4, 5, 9, 0.34);
  backdrop-filter: blur(2px) brightness(0.76) saturate(0.82);
  opacity: 0;
  transition: opacity 180ms ease;
}

.tahe-recharge-overlay.is-open {
  opacity: 1;
}

.tahe-recharge-overlay__surface {
  position: relative;
  width: 100%;
  max-width: 1600px;
  height: 100%;
  max-height: 900px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  transform: translateY(10px) scale(0.992);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.tahe-recharge-overlay.is-open .tahe-recharge-overlay__surface {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tahe-recharge-overlay__surface::before {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: #a970ff;
  border-radius: 50%;
  content: '';
  transform: translate(-50%, -50%);
  animation: tahe-recharge-loading 800ms linear infinite;
}

.tahe-recharge-overlay__surface.is-loaded::before {
  display: none;
}

.tahe-recharge-overlay__frame {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color-scheme: dark;
}

@keyframes tahe-recharge-loading {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (max-width: 620px) {
  .tahe-recharge-overlay {
    padding: 8px;
    backdrop-filter: blur(1px) brightness(0.72);
  }

  .tahe-recharge-overlay__surface {
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tahe-recharge-overlay,
  .tahe-recharge-overlay__surface {
    transition-duration: 0.01ms;
  }
}
