/* Passcode gate. While body.gate-locked the app chrome and content are hidden. */
body.gate-locked > header, body.gate-locked > main, body.gate-locked > noscript { display: none !important; }
#gate {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: #1f2933; color: #fff; padding: calc(1.5rem + env(safe-area-inset-top, 0px)) 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  font: 20px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}
#gate .gate-box { width: 100%; max-width: 520px; text-align: center; }
#gate .gate-logo { font-size: 4.5rem; line-height: 1; margin-bottom: .5rem; }
#gate h1 { font-size: 2.4rem; margin: 0 0 .25rem; }
#gate h2 { font-size: 1.6rem; font-weight: 500; margin: 0 0 1.5rem; color: #d5dbe1; }
#gate form { display: flex; flex-direction: column; gap: 1rem; }
#gate input {
  width: 100%; font-size: 2rem; text-align: center; letter-spacing: .15em; padding: 1rem; min-height: 72px;
  border-radius: 16px; border: 3px solid #52606d; background: #fff; color: #1f2933;
}
#gate input:focus { outline: none; border-color: #e8710a; }
#gate button {
  font-size: 1.6rem; font-weight: 700; min-height: 72px; border: 0; border-radius: 16px; background: #e8710a; color: #fff; cursor: pointer;
}
#gate button:disabled { opacity: .55; cursor: not-allowed; }
#gate .gate-msg { min-height: 2.6em; font-size: 1.15rem; color: #ffb4a8; margin: 1rem 0 0; }
#gate .gate-note { font-size: .95rem; color: #9aa5b1; margin-top: 1.5rem; }
