/* ==========================================================================
   ALPHA GATE · 云端整页登录门禁（方案 A：整页阻断）
   规范：全站 0 破折号
   ========================================================================== */

html.alpha-gate-locked,
html.alpha-gate-locked body {
  overflow: hidden !important;
}

.alpha-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(255, 255, 255, 0.055), transparent 70%),
    #000000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.alpha-gate.active {
  opacity: 1;
  pointer-events: auto;
}

.alpha-gate-card {
  width: 100%;
  max-width: 420px;
  padding: 34px 30px 28px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
}

.alpha-gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #e5e5e5;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.alpha-gate-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
}

.alpha-gate-card h1 {
  margin: 18px 0 8px;
  font-family: 'Noto Serif SC', Cinzel, serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.alpha-gate-card p {
  margin: 0 0 22px;
  font-size: 12px;
  line-height: 1.75;
  color: #9a9a9a;
}

.alpha-gate-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #ffffff;
  border-radius: 12px;
  background: #ffffff;
  color: #000000;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.alpha-gate-submit:hover {
  background: #e5e5e5;
}

.alpha-gate-submit:active {
  transform: scale(0.975);
}

.alpha-gate-note {
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  line-height: 1.7;
  color: #5f5f5f;
}

.alpha-gate-home {
  display: inline-block;
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #7a7a7a;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 1px;
}

.alpha-gate-home:hover {
  color: #ffffff;
}

/* 云端未登录时裸露的登录弹窗不显示关闭按钮，避免绕过门禁 */
body.alpha-gate-locked #authCloseBtn,
body.alpha-gate-locked #authBackdrop {
  display: none !important;
}

@media (max-width: 480px) {
  .alpha-gate-card {
    padding: 28px 22px 24px;
  }
  .alpha-gate-card h1 {
    font-size: 19px;
  }
}
