.book { visibility: hidden; }
body.password-gate-unlocked .book { visibility: visible; }

.password-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.password-gate-form {
  background: #2a2a2a;
  padding: 32px 40px;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  width: 320px;
  max-width: calc(100vw - 40px);
  color: #e8e8e8;
}

.password-gate-form h2 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
}

.password-gate-form p {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: #a8a8a8;
}

.password-gate-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 15px;
  background: #1a1a1a;
  color: #e8e8e8;
  border: 1px solid #444;
  border-radius: 4px;
  outline: none;
  margin-bottom: 12px;
}

.password-gate-input:focus {
  border-color: #4a9eff;
}

.password-gate-button {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  font-weight: 500;
  background: #4a9eff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.password-gate-button:hover {
  background: #3a8eef;
}

.password-gate-error {
  margin: 12px 0 0 0;
  color: #ff6b6b;
  font-size: 13px;
}
