html.gate-locked body {
  overflow: hidden;
}

html.gate-locked body > *:not(#earthside-gate) {
  visibility: hidden;
  pointer-events: none;
}

#earthside-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(6, 6, 10, 0.92);
  font-family: "Segoe UI", system-ui, sans-serif;
}

.gate-card {
  width: min(24rem, 100%);
  background: rgba(12, 10, 22, 0.95);
  border: 1px solid rgba(0, 255, 65, 0.35);
  padding: 2rem 1.75rem;
  box-shadow: 0 0 40px rgba(0, 255, 65, 0.08);
  border-radius: 4px;
}

.gate-brand {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a9aaa;
  margin-bottom: 1.25rem;
}

.gate-brand span {
  color: #00ff41;
  font-weight: 700;
}

.gate-card h1 {
  font-size: 1.35rem;
  font-weight: 400;
  color: #f0f0f0;
  margin-bottom: 0.5rem;
}

.gate-card p {
  font-size: 0.95rem;
  color: #a8b8c8;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.gate-card label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a9aaa;
  margin-bottom: 0.4rem;
}

.gate-card input[type="password"] {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f0f0f0;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.gate-card input[type="password"]:focus {
  outline: 2px solid rgba(0, 255, 65, 0.45);
  border-color: #00ff41;
}

.gate-card button {
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 255, 65, 0.5);
  background: rgba(0, 255, 65, 0.18);
  color: #f0f0f0;
  cursor: pointer;
  border-radius: 4px;
}

.gate-card button:hover {
  background: rgba(0, 255, 65, 0.28);
}

.gate-err {
  font-size: 0.88rem;
  color: #f87171;
  margin-top: 0.75rem;
  min-height: 1.25rem;
}

.gate-note {
  font-size: 0.78rem;
  color: #6b7c8f;
  margin-top: 1.25rem;
  line-height: 1.45;
}