.oubo-popup-open,
.oubo-popup-open body {
  overflow: hidden !important;
}

#oubo-site-popup {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(20px, 5vw, 72px);
  color: #f7f9ff;
  background:
    radial-gradient(circle at 50% 20%, #183968 0, #0b1b35 38%, #050b16 78%),
    #050b16;
  opacity: 1;
  isolation: isolate;
}

#oubo-site-popup[hidden] {
  display: none !important;
}

.oubo-popup-panel {
  width: min(760px, 100%);
  padding: clamp(30px, 6vw, 64px);
  text-align: center;
  border: 1px solid rgba(211, 174, 86, .72);
  border-radius: 22px;
  background: #0b1729;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .62);
}

.oubo-popup-title {
  margin: 0 0 22px;
  color: #e7c873;
  font-size: clamp(30px, 6vw, 52px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .04em;
}

.oubo-popup-copy {
  max-width: 650px;
  margin: 0 auto;
  color: #edf2fb;
  font-size: clamp(16px, 2.4vw, 21px);
  line-height: 1.95;
}

.oubo-popup-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(330px, 100%);
  min-height: 56px;
  margin-top: 34px;
  padding: 14px 30px;
  color: #07101d !important;
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 900;
  line-height: 1.3;
  text-decoration: none !important;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f2d27d, #bf8a24);
  box-shadow: 0 10px 30px rgba(210, 165, 57, .28);
}

.oubo-popup-enter:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.oubo-popup-close {
  position: fixed;
  top: max(5px, env(safe-area-inset-top));
  right: max(5px, env(safe-area-inset-right));
  z-index: 2;
  width: 16px;
  height: 16px;
  padding: 0;
  overflow: hidden;
  color: #fff;
  font: 9px/16px Arial, sans-serif;
  text-align: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  opacity: .055;
  filter: blur(1.8px);
}

.oubo-popup-close:hover {
  opacity: .1;
}

.oubo-popup-close:focus-visible {
  width: 24px;
  height: 24px;
  color: #fff;
  outline: 1px solid rgba(255, 255, 255, .7);
  opacity: .72;
  filter: none;
}

@media (max-width: 640px) {
  #oubo-site-popup {
    padding: 18px;
  }

  .oubo-popup-panel {
    padding: 34px 22px;
    border-radius: 16px;
  }

  .oubo-popup-title {
    margin-bottom: 18px;
  }

  .oubo-popup-copy {
    line-height: 1.8;
  }

  .oubo-popup-enter {
    width: 100%;
    min-width: 0;
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oubo-popup-enter {
    transform: none !important;
  }
}
