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

html.pin-locked body > :not(.pin-gate-overlay) {
  visibility: hidden !important;
}

.pin-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 18% 0%, rgba(207, 49, 91, 0.2), transparent 34%),
    linear-gradient(145deg, #f8fafc 0%, #e9f0f7 55%, #dfe9f4 100%);
  color: #10263d;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.pin-gate-card {
  width: min(100%, 390px);
  border: 1px solid rgba(216, 225, 236, 0.95);
  border-radius: 12px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(16, 38, 61, 0.18);
}

.pin-gate-mark {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  background: #10263d;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.pin-gate-card h1 {
  margin: 0 0 8px;
  color: #10263d;
  font-size: 30px;
  line-height: 1.05;
}

.pin-gate-card p {
  margin: 0 0 20px;
  color: #65717f;
  font-size: 15px;
  line-height: 1.5;
}

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

.pin-gate-input {
  width: 100%;
  border: 1px solid #d8e1ec;
  border-radius: 8px;
  padding: 15px 16px;
  background: #f8fafc;
  color: #10263d;
  font: inherit;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.38em;
  text-align: center;
}

.pin-gate-input:focus {
  border-color: #10263d;
  outline: 3px solid rgba(16, 38, 61, 0.14);
}

.pin-gate-submit {
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: #10263d;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
}

.pin-gate-error {
  min-height: 20px;
  margin: 2px 0 0;
  color: #cf315b;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 480px) {
  .pin-gate-card {
    padding: 22px;
  }

  .pin-gate-card h1 {
    font-size: 26px;
  }
}
