
.unlock-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: calc(var(--safe-top, 0px) + 20px) 18px calc(var(--safe-bottom, 0px) + 20px);
  background: #fff7dd;
  background-image: radial-gradient(rgb(73 59 81 / 10%) 1px, transparent 1.4px);
  background-size: 18px 18px;
}

.unlock-overlay[hidden] {
  display: none;
}

.unlock-panel {
  width: min(100%, 380px);
  padding: 24px 20px;
  border: 3px solid #493b51;
  border-radius: 12px;
  background: #fffdf5;
  box-shadow: 6px 6px 0 #493b51;
  color: #493b51;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
}

.unlock-kicker {
  margin: 0;
  color: #e65c83;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.unlock-title {
  margin: 4px 0 6px;
  font-size: 26px;
  letter-spacing: 0.08em;
}

.unlock-sub {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #6e5f76;
}

.unlock-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
}

.unlock-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 2.5px solid #493b51;
  border-radius: 8px;
  background: #fff;
  color: #493b51;
  font-size: 17px;
}

.unlock-button {
  width: 100%;
  min-height: 50px;
  margin-top: 12px;
  border: 3px solid #493b51;
  border-radius: 8px;
  background: #e65c83;
  box-shadow: 3px 3px 0 #493b51;
  color: #fffdf5;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.unlock-button:active {
  box-shadow: none;
  transform: translate(2px, 2px);
}

.unlock-status {
  min-height: 22px;
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #6e5f76;
}

.unlock-status[data-kind="error"] {
  color: #b3264a;
}

.unlock-status[data-kind="ok"] {
  color: #2f6b57;
}

.unlock-note {
  margin: 10px 0 0;
  color: #9a8fa1;
  font-size: 12px;
  line-height: 1.6;
}

html:not([data-unlocked="true"]) .topbar,
html:not([data-unlocked="true"]) .view-host,
html:not([data-unlocked="true"]) .menu,
html:not([data-unlocked="true"]) .noscript {
  visibility: hidden;
}
