.pin-screen {
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  gap: 0.75rem;
}
.pin-card {
  width: min(360px, 100%);
  padding: 2rem 1.5rem 1.6rem;
  border-radius: 28px;
  background: rgba(255, 252, 247, 0.94);
  box-shadow: 0 18px 50px rgba(20, 33, 43, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.7);
  text-align: center;
  animation: pin-rise 0.45s ease;
}
.pin-logo {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f6e63, #1ea896);
  color: #fff;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 20px rgba(15, 110, 99, 0.28);
}
.pin-card h1 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}
.pin-card .pin-sub {
  margin: 0.45rem 0 1.4rem;
  color: #516170;
  font-size: 0.92rem;
  line-height: 1.45;
}
.pin-dots {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(20, 33, 43, 0.28);
  background: transparent;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}
.pin-dot.filled {
  background: #14212b;
  border-color: #14212b;
  transform: scale(1.05);
}
.pin-dot.shake {
  animation: pin-shake 0.35s ease;
}
.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}
.pin-key {
  appearance: none;
  border: 0;
  border-radius: 14px;
  background: #ece8df;
  color: #14212b;
  font-size: 1.35rem;
  font-weight: 600;
  min-height: 58px;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.08s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.pin-key:active {
  transform: scale(0.96);
  background: #ddd7cb;
}
.pin-key.blank {
  background: transparent;
  pointer-events: none;
}
.pin-key.clear {
  font-size: 0.95rem;
  font-weight: 650;
  color: #516170;
}
.pin-error {
  min-height: 1.3rem;
  margin: 0.9rem 0 0;
  color: #b42318;
  font-size: 0.9rem;
}
.pin-error:empty {
  visibility: hidden;
}
.pin-screen .desk-link {
  color: #516170;
  font-size: 0.9rem;
  text-decoration: none;
}

@keyframes pin-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes pin-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
