html.popup-lock,
body.popup-lock {
  height: 100%;
  overflow: hidden !important;
  overscroll-behavior: none;
}

body.popup-lock {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

.popup-info-row {
  display: flex;
  transition: background 0.3s;
}

.popup-info-row:hover {
  background: #0f2747;
}

.popup-info-row--border {
  border-bottom: 1px solid #1a4369;
}

.popup-close-button:hover {
  background: #f5c451;
}

#popup-site-info {
  position: fixed;
  z-index: 9999;
  inset: 0;
  width: auto;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.popup-site-card {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 440px;
  max-height: calc(100dvh - 40px);
  flex-direction: column;
  align-items: center;
  border-radius: 16px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.94);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.popup-close-button {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 2px solid #f5c451;
  border-radius: 50%;
  background: #ff9429;
  box-shadow: 0 0 12px rgba(255, 148, 41, 0.55);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transition: 0.2s;
}

.popup-site-image {
  width: 100%;
  margin-bottom: 20px;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.popup-site-actions {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.popup-site-action {
  flex: 1;
  height: 48px;
  border: 2px solid #00e5ff;
  border-radius: 12px;
  background: linear-gradient(to bottom, #0f2747 0, #1f7bff 100%);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.18);
  color: #fff;
  font-family: "ital", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 48px;
  text-align: center;
  text-decoration: none !important;
}

.popup-site-table {
  width: 100%;
  overflow: hidden;
  border: 1px solid #1f7bff;
  border-radius: 12px;
  background: linear-gradient(145deg, #071a2f, #0f2747);
  box-shadow: inset 0 0 18px rgba(0, 229, 255, 0.22);
  font-family: "ital", Arial, sans-serif;
  font-size: 14px;
}

.popup-info-label {
  width: 42%;
  padding: 12px;
  color: #f5c451;
  font-weight: 700;
}

.popup-info-value {
  width: 58%;
  padding: 12px;
  color: #fff;
}

.popup-site-copy {
  margin-top: 20px;
  color: #aaa;
  font-family: "ital", Arial, sans-serif;
  font-size: 12px;
  text-align: center;
}

.popup-site-copy span {
  color: #fff;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.45);
}

#bat-rain {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9500;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
}

.bat-drop {
  position: absolute;
  top: -18vh;
  left: 0;
  width: var(--bat-size, 36px);
  opacity: 0;
  will-change: transform, opacity;
  animation: bat-fall var(--fall-duration, 12s) linear var(--fall-delay, 0s) infinite;
}

.bat-float {
  width: 100%;
  animation: bat-sway var(--sway-duration, 2.4s) ease-in-out infinite alternate;
}

.bat-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 8px rgba(255, 64, 90, 0.16)) drop-shadow(0 0 18px rgba(84, 8, 28, 0.36));
}

.bat-wing,
.bat-core {
  transform-box: fill-box;
}

.bat-core {
  transform-origin: 50% 55%;
  animation: bat-body-pulse 1.8s ease-in-out infinite alternate;
}

.bat-wing-left {
  transform-origin: 100% 48%;
  animation: bat-wing-left var(--flap-duration, 0.32s) cubic-bezier(0.48, 0.05, 0.52, 0.95) infinite alternate;
}

.bat-wing-right {
  transform-origin: 0% 48%;
  animation: bat-wing-right var(--flap-duration, 0.32s) cubic-bezier(0.48, 0.05, 0.52, 0.95) infinite alternate;
}

.bat-silhouette {
  fill: rgba(8, 8, 18, 0.98);
  stroke: rgba(119, 26, 52, 0.55);
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.bat-membrane {
  fill: rgba(36, 18, 44, 0.72);
  stroke: rgba(155, 54, 85, 0.32);
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.bat-vein {
  fill: none;
  stroke: rgba(173, 72, 104, 0.42);
  stroke-width: 1.2;
  stroke-linecap: round;
}

.bat-body {
  fill: rgba(15, 8, 21, 0.98);
  stroke: rgba(173, 44, 77, 0.48);
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.bat-eye {
  fill: #ff3b54;
  filter: drop-shadow(0 0 4px rgba(255, 59, 84, 0.85));
  animation: bat-eye-glow 0.9s ease-in-out infinite alternate;
}

.bat-fang {
  fill: #f6e7e7;
}

@keyframes bat-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -20vh, 0) scale(var(--bat-scale, 1)) rotate(var(--bat-tilt, 0deg));
  }

  8% {
    opacity: 0.95;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--bat-drift, 0px), 118vh, 0) scale(var(--bat-scale, 1)) rotate(calc(var(--bat-tilt, 0deg) + 10deg));
  }
}

@keyframes bat-sway {
  from {
    transform: translateX(-16px) rotate(-10deg);
  }

  to {
    transform: translateX(16px) rotate(10deg);
  }
}

@keyframes bat-wing-left {
  from {
    transform: rotate(22deg) skewY(4deg);
  }

  to {
    transform: rotate(-48deg) skewY(-6deg);
  }
}

@keyframes bat-wing-right {
  from {
    transform: rotate(-22deg) skewY(-4deg);
  }

  to {
    transform: rotate(48deg) skewY(6deg);
  }
}

@keyframes bat-body-pulse {
  from {
    transform: translateY(0) scale(1);
  }

  to {
    transform: translateY(-1px) scale(1.05);
  }
}

@keyframes bat-eye-glow {
  from {
    opacity: 0.55;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 575px) {
  #popup-site-info {
    padding: 14px;
  }

  .popup-site-card {
    padding: 16px;
    max-height: calc(100dvh - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #bat-rain {
    display: none;
  }
}
