html.bili-open-mask-lock,
html.bili-open-mask-lock body {
  overflow: hidden;
  height: 100%;
}

.bili-open-mask {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}

.bili-open-mask-guide {
  position: absolute;
  top: 4px;
  right: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: min(220px, calc(100vw - 24px));
  padding-top: env(safe-area-inset-top, 0px);
}

.bili-open-mask-dots {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 2px 10px 0 0;
  animation: biliOpenPulse 1.2s ease-in-out infinite;
}

.bili-open-mask-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.bili-open-mask-arrow {
  width: 72px;
  height: 88px;
  margin: -4px 2px 0 0;
  animation: biliOpenBounce 1.2s ease-in-out infinite;
}

.bili-open-mask-panel {
  margin-top: 4px;
  width: 148px;
  padding: 16px 12px 14px;
  border-radius: 16px;
  background: #f3f3f3;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.bili-open-mask-panel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.bili-open-mask-text {
  width: 100%;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.bili-open-mask-text b {
  font-size: 18px;
  letter-spacing: 2px;
}

@keyframes biliOpenBounce {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(4px, -8px);
  }
}

@keyframes biliOpenPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.08);
  }
}
