html.auth-pending body {
  overflow: hidden;
}

html.auth-pending body > *:not(#password-gate-overlay) {
  visibility: hidden !important;
}

#password-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 12%, rgba(191, 48, 61, 0.2), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(216, 165, 142, 0.16), transparent 24%),
    linear-gradient(135deg, #1f0508 0%, #3b0a12 48%, #120506 100%);
  color: #fff7ef;
  visibility: visible !important;
}

.password-gate-card {
  width: min(100%, 420px);
  padding: clamp(28px, 6vw, 44px);
  border: 1px solid rgba(255, 247, 239, 0.22);
  border-radius: 24px;
  background: rgba(20, 5, 8, 0.74);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
  text-align: center;
}

.password-gate-kicker {
  margin: 0 0 14px;
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #d8a58e;
}

.password-gate-card h1 {
  margin: 0;
  font-family: var(--serif, Georgia, serif);
  font-weight: 300;
  font-size: clamp(42px, 10vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.password-gate-copy {
  margin: 18px auto 26px;
  max-width: 30ch;
  color: rgba(255, 247, 239, 0.74);
  font-size: 14px;
  line-height: 1.65;
}

.password-gate-form {
  display: grid;
  gap: 12px;
}

.password-gate-form input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 247, 239, 0.26);
  border-radius: 999px;
  padding: 15px 18px;
  background: rgba(255, 247, 239, 0.08);
  color: #fff7ef;
  font: inherit;
  text-align: center;
  outline: none;
}

.password-gate-form input:focus {
  border-color: #d8a58e;
  box-shadow: 0 0 0 4px rgba(216, 165, 142, 0.12);
}

.password-gate-form button {
  border: 0;
  border-radius: 999px;
  padding: 15px 18px;
  background: #d8a58e;
  color: #25070b;
  font-family: var(--mono, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}

.password-gate-error {
  min-height: 20px;
  margin: 2px 0 0;
  color: #ffb7b7;
  font-size: 13px;
}
