:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  background: #12130f;
  color: #f6f4ea;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 10%, rgba(215, 241, 80, 0.1), transparent 38%),
    #12130f;
}

button { font: inherit; }

.lock-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
}

.lock-card {
  width: min(100%, 380px);
  text-align: center;
}

.brand-mark {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 20px;
  place-items: center;
  border: 1px solid rgba(215, 241, 80, 0.5);
  border-radius: 14px;
  background: #d7f150;
  color: #12130f;
  font-size: 27px;
  font-weight: 850;
  letter-spacing: -0.06em;
}

.eyebrow {
  margin: 0 0 10px;
  color: #d7f150;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0;
  font-size: clamp(27px, 8vw, 36px);
  letter-spacing: -0.035em;
}

.hint {
  max-width: 300px;
  margin: 12px auto 0;
  color: #a6a79f;
  font-size: 14px;
  line-height: 1.55;
}

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 30px 0 8px;
}

.pin-dots i {
  width: 11px;
  height: 11px;
  border: 1.5px solid #74766d;
  border-radius: 50%;
  transition: 150ms ease;
}

.pin-dots i.filled {
  border-color: #f6f4ea;
  background: #f6f4ea;
  transform: scale(1.05);
}

.pin-dots.shake { animation: shake 360ms ease; }

.message {
  min-height: 20px;
  margin: 0 0 8px;
  color: #ff8d80;
  font-size: 13px;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 74px);
  justify-content: center;
  gap: 14px 22px;
}

.keypad button {
  display: grid;
  width: 74px;
  height: 74px;
  padding: 7px 0;
  place-content: center;
  border: 0;
  border-radius: 50%;
  background: #2b2d27;
  color: #f6f4ea;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 100ms ease, transform 100ms ease;
}

.keypad button:hover { background: #3a3c35; }
.keypad button:active { background: #54564e; transform: scale(0.94); }
.keypad button:focus-visible { outline: 3px solid #d7f150; outline-offset: 3px; }
.keypad strong { font-size: 30px; font-weight: 430; line-height: 1; }
.keypad span { font-size: 8px; font-weight: 700; letter-spacing: 0.18em; }
.keypad .delete-key { background: transparent; font-size: 25px; }
.keypad button:disabled { cursor: wait; opacity: 0.45; }

@keyframes shake {
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}

@media (max-height: 690px) {
  .lock-shell { padding-block: 16px; }
  .brand-mark { width: 44px; height: 44px; margin-bottom: 12px; }
  .hint { margin-top: 7px; }
  .pin-dots { margin-top: 18px; }
  .keypad { grid-template-columns: repeat(3, 64px); gap: 10px 20px; }
  .keypad button { width: 64px; height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
