#njbbl-gate {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  background: #06080c;
  overflow: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#njbbl-gate.njbbl-gate-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#njbbl-gate .gate-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(88, 166, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 85%, rgba(63, 185, 80, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(171, 71, 188, 0.08), transparent 60%),
    linear-gradient(160deg, #06080c 0%, #0a0e14 40%, #0d1117 100%);
}

#njbbl-gate .gate-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(88, 166, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 166, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 75%);
  animation: gateGridDrift 20s linear infinite;
}

@keyframes gateGridDrift {
  from { background-position: 0 0; }
  to { background-position: 48px 48px; }
}

#njbbl-gate .gate-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: gateOrbFloat 8s ease-in-out infinite;
}

#njbbl-gate .gate-orb-a {
  width: 280px;
  height: 280px;
  background: rgba(88, 166, 255, 0.35);
  top: 10%;
  left: 15%;
}

#njbbl-gate .gate-orb-b {
  width: 220px;
  height: 220px;
  background: rgba(63, 185, 80, 0.25);
  bottom: 15%;
  right: 12%;
  animation-delay: -3s;
}

@keyframes gateOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -15px) scale(1.08); }
}

#njbbl-gate .gate-card {
  position: relative;
  width: min(420px, 92vw);
  padding: 40px 36px 32px;
  border-radius: 20px;
  background: rgba(18, 24, 32, 0.72);
  border: 1px solid rgba(88, 166, 255, 0.25);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(88, 166, 255, 0.08);
  backdrop-filter: blur(20px);
  animation: gateCardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes gateCardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

#njbbl-gate .gate-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.2), rgba(63, 185, 80, 0.15));
  border: 1px solid rgba(88, 166, 255, 0.35);
  box-shadow: 0 8px 32px rgba(88, 166, 255, 0.15);
}

#njbbl-gate .gate-icon svg {
  width: 28px;
  height: 28px;
  stroke: #79c0ff;
}

#njbbl-gate .gate-title {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #e8eef4;
  margin-bottom: 6px;
}

#njbbl-gate .gate-sub {
  text-align: center;
  font-size: 0.82rem;
  color: #8b9cb3;
  margin-bottom: 28px;
  line-height: 1.5;
}

#njbbl-gate .gate-field {
  position: relative;
  margin-bottom: 16px;
}

#njbbl-gate .gate-field input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border-radius: 12px;
  border: 1px solid rgba(42, 52, 65, 0.9);
  background: rgba(10, 14, 20, 0.85);
  color: #e8eef4;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#njbbl-gate .gate-field input:focus {
  border-color: rgba(88, 166, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.12);
}

#njbbl-gate .gate-field input.gate-shake {
  animation: gateShake 0.45s ease;
  border-color: #f85149;
}

@keyframes gateShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

#njbbl-gate .gate-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #6e7681;
  pointer-events: none;
}

#njbbl-gate .gate-btn {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #388bfd 0%, #58a6ff 50%, #3fb950 100%);
  background-size: 200% 200%;
  box-shadow: 0 4px 24px rgba(88, 166, 255, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

#njbbl-gate .gate-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(88, 166, 255, 0.45);
}

#njbbl-gate .gate-btn:active {
  transform: translateY(0);
}

#njbbl-gate .gate-err {
  min-height: 20px;
  margin-top: 12px;
  text-align: center;
  font-size: 0.78rem;
  color: #f85149;
}

#njbbl-gate .gate-foot {
  margin-top: 24px;
  text-align: center;
  font-size: 0.72rem;
  color: #484f58;
  letter-spacing: 0.04em;
}

html.njbbl-gate-active,
html.njbbl-gate-active body {
  overflow: hidden !important;
}
