/* Layar kunci & kode sandi */

/* Layar kunci */
.lock {
  z-index: 30;
  color: #fff;
  display: none;
  touch-action: none;
  cursor: grab;
}
.lock.show {
  display: block;
}
.lock-inner {
  position: absolute;
  inset: 0;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1),
    opacity 0.3s;
}
.lock.up .lock-inner {
  transform: translateY(-110%) !important;
  opacity: 0;
}
.lock-top {
  text-align: center;
  padding-top: 52px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.15);
}
.lock-icon svg {
  width: 22px;
  height: 22px;
  margin: 0 auto 6px;
}
.lock-date {
  font-size: 21px;
  font-weight: 500;
  opacity: 0.92;
}
.lock-time {
  font-size: 92px;
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1;
  margin-top: 2px;
  font-feature-settings: "tnum";
}
.lock-notifs {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 58%;
  overflow-y: auto;
  scrollbar-width: none;
}
.lock-notifs::-webkit-scrollbar {
  display: none;
}
/* Bertumpuk: notifikasi terbaru di depan, 2 lapisan mengintip di bawahnya */
.lock-notifs.stacked {
  display: grid;
  gap: 0;
  overflow: visible;
  cursor: pointer;
}
.lock-notifs.stacked .lock-notif {
  grid-area: 1 / 1;
  align-self: start;
  z-index: calc(10 - var(--i));
  transform: translateY(calc(var(--i) * 9px)) scale(calc(1 - var(--i) * 0.05));
  transform-origin: bottom center;
}
.lock-notifs.stacked .lock-notif:not([style*="--i:0"]) > * {
  opacity: 0;
}
.lock-notifs.stacked .lock-more {
  grid-area: 2 / 1;
  margin-top: 26px;
}
.lock-nhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px 2px;
  color: #fff;
}
.lock-nhead b {
  font-size: 20px;
}
.lock-nhead button {
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.lock-notif {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: pointer;
  animation: pop 0.35s ease-out;
}
.lock-notif .bn-top span {
  color: rgba(255, 255, 255, 0.7);
}
.lock-more {
  text-align: center;
  font-size: 13px;
  opacity: 0.8;
}
.lock-bottom {
  position: absolute;
  /* jarak samping ikut mengecil di layar HP yang sempit */
  left: min(46px, 8vw);
  right: min(46px, 8vw);
  gap: 8px;
  bottom: 46px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lock-round {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform 0.15s,
    background 0.2s;
}
.lock-round svg {
  width: 22px;
  height: 22px;
}
.lock-round:active {
  transform: scale(1.12);
}
.lock-round.on {
  background: #fff;
  color: #000;
}
.lock-hint {
  /* selalu satu baris; ukuran huruf menyesuaikan lebar layar HP */
  font-size: clamp(11px, 3.4vw, 13px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  opacity: 0.75;
  animation: hint 2.4s ease-in-out infinite;
}
@keyframes hint {
  0%,
  100% {
    opacity: 0.45;
    transform: translateY(0);
  }
  50% {
    opacity: 0.9;
    transform: translateY(-4px);
  }
}
@keyframes pop {
  from {
    transform: scale(0.94);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
/* Kode sandi */
.passcode {
  z-index: 31;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 100px;
  background: rgba(10, 10, 20, 0.35);
  backdrop-filter: blur(28px) saturate(1.3);
  -webkit-backdrop-filter: blur(28px) saturate(1.3);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.06);
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.passcode.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.pc-lock svg {
  width: 20px;
  height: 20px;
  margin-bottom: 14px;
}
.pc-title {
  font-size: 20px;
  margin-bottom: 22px;
}
.pc-dots {
  display: flex;
  gap: 24px;
  margin-bottom: 52px;
}
.pc-dots i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  transition: background 0.12s;
}
.pc-dots i.on {
  background: #fff;
}
.pc-dots.shake {
  animation: shake 0.42s;
}
@keyframes shake {
  0%,
  100% {
    transform: none;
  }
  20% {
    transform: translateX(-16px);
  }
  40% {
    transform: translateX(13px);
  }
  60% {
    transform: translateX(-9px);
  }
  80% {
    transform: translateX(5px);
  }
}
.pc-pad {
  display: grid;
  grid-template-columns: repeat(3, 78px);
  gap: 16px 26px;
}
.pc-key {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.17);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}
.pc-key:active {
  background: rgba(255, 255, 255, 0.55);
  transition: none;
}
.pc-key b {
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
}
.pc-foot {
  position: absolute;
  left: 52px;
  right: 52px;
  bottom: 44px;
  display: flex;
  justify-content: space-between;
  font-size: 17px;
}
.lock-notif .bn-sub {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lock-notif .bn-body {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
