html, body {
  margin: 0;
  height: 100%;
  background: #000;
  font-family: "Roboto", "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Hebrew", "Noto Sans Arabic", sans-serif;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.lock-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(22px) brightness(0.85);
  transform: scale(1.15);
  z-index: 0;
  background: #111;
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
.lock-shade {
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.18), rgba(0,0,0,0.32));
  z-index: 1;
  pointer-events: none;
}

.lock-root {
  position: relative;
  z-index: 2;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.lock-icon {
  margin-top: 56px;
  width: 24px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lock-icon svg { width: 100%; height: 100%; fill: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4)); }

.spacer-top { flex: 1; }
.spacer-bot { display: none; }

.pin-dots {
  display: flex;
  gap: 14px;
  height: 14px;
  margin-bottom: 16px;
}
.pin-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 120ms ease, transform 120ms ease;
}
.pin-dots .dot.on { opacity: 1; transform: scale(1); }

.prompt {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.1px;
  color: #fff;
  margin: 0 0 5px;
  text-align: center;
  padding: 0 24px;
}
.subprompt {
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  margin: 0 0 22px;
  text-align: center;
  padding: 0 24px;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 68px);
  grid-gap: 13px 26px;
  margin-bottom: 24px;
  direction: ltr;
}

.key {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  touch-action: manipulation;
  transition: background 60ms ease-out, transform 60ms ease-out;
}
.key:active { background: rgba(255, 255, 255, 0.32); transform: scale(0.96); }

.key .digit {
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  margin-top: 2px;
}
.key .letters {
  font-size: 8.5px;
  letter-spacing: 1.25px;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.78);
}

.key.action { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.key.action:active { background: rgba(255, 255, 255, 0.16); }

.key.ok {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}
.key.ok.enabled { color: #fff; }

.key svg { width: 23px; height: 23px; fill: #fff; }

.emergency {
  margin-bottom: 60px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13px;
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.emergency:active { background: rgba(255, 255, 255, 0.32); }
