/* 01 잠금화면 · 01-2 알림 펼침 */
.lock .deco { position: absolute; pointer-events: none; z-index: 0; }
.lock .deco.burst { width: 61px; top: calc(58px + var(--sat)); right: 14px; filter: drop-shadow(0 0 7px rgba(46,127,240,.35)); }
.lock .deco.bolt { width: 48px; left: 36px; bottom: calc(136px + var(--sab)); filter: drop-shadow(0 0 7px rgba(255,108,138,.35)); }
.lock .deco.sparkle { width: 86px; right: 27px; bottom: calc(136px + var(--sab)); filter: drop-shadow(0 0 10px rgba(232,79,176,.35)); }
.lock > *:not(.deco) { position: relative; z-index: 1; }
@media (max-height: 760px) { .lock .deco.bolt, .lock .deco.sparkle { display: none; } }

.lock-top {
  flex: none; display: flex; flex-direction: column; align-items: center;
  padding-top: 7px;
  transition: max-height var(--dur) var(--ease), opacity 200ms var(--ease), margin var(--dur) var(--ease);
  max-height: 240px; overflow: hidden;
}
.lock-top .lock-badge { position: static; width: 18px; height: 18px; }
.lock-top .date { margin-top: 12px; font-size: 17px; font-weight: 500; line-height: 1.4; letter-spacing: -0.03em; }
.lock-top .clock {
  font-size: min(88px, 22vw, 10.5dvh); font-weight: 600; line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.lock.expanded .lock-top { max-height: 0; opacity: 0; }

.lock-notifs {
  flex: 1; min-height: 0;
  padding: 24px calc(16px + var(--sar)) 12px calc(16px + var(--sal));
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  touch-action: pan-y;
}
.lock-notifs::-webkit-scrollbar { display: none; }
.lock-notifs .notif { flex: none; }
.lock-notifs .notif.more { animation: notif-in 280ms var(--ease) both; }
@keyframes notif-in { from { opacity: 0; transform: translateY(-12px); } }
.lock-notifs .pill-btn { flex: none; margin-top: 0; }

.lock-bottom {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 8px 0 calc(24px + var(--sab));
  touch-action: none;
}
.lock-bottom .ph-note { max-width: 220px; }

/* 위로 쓸어 올려 열기 안내 (알파폰 고유 모양 — 기기 홈 표시줄 흉내 아님) */
.lock { touch-action: none; }
.lock .lock-notifs { touch-action: pan-y; }
.unlock-hint { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 48px; padding: 4px 20px; color: rgba(255,255,255,.85); font-size: 13px; font-weight: 500; }
.unlock-hint .chev { width: 22px; height: 22px; color: var(--point-pink-bright); animation: chev-up 1.6s var(--ease) infinite; }
@keyframes chev-up { 0%, 100% { transform: translateY(4px); opacity: .5; } 50% { transform: translateY(-3px); opacity: 1; } }
.no-notif { margin-top: 24px; font-size: 14px; color: rgba(255,255,255,.7); }

/* 알림 목록 위·아래 가장자리: 딱 잘리지 않고 흐려지며 사라지게 */
.lock-notifs {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22px, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 22px, #000 calc(100% - 28px), transparent 100%);
}
/* 알림을 펼치면 배경화면을 흐리게 (알림에 집중) */
.lock .lock-blur { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: rgba(16,12,51,.25); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); opacity: 0; transition: opacity 300ms var(--ease); }
.lock.expanded .lock-blur { opacity: 1; z-index: 1; }

/* 밀어서 열기 (이전 방식 — 사용 안 함) */
.slider {
  position: relative; width: 220px; height: 48px; border-radius: 24px;
  background: rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center;
  touch-action: none;
}
.slider .label { font-size: 13px; font-weight: 500; color: var(--white); padding-left: 28px; transition: opacity 150ms; }
.slider .label .shine {
  background: linear-gradient(90deg, rgba(255,255,255,.55) 0%, #fff 45%, rgba(255,255,255,.55) 90%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 2.4s linear infinite;
}
@keyframes shine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.slider .knob {
  position: absolute; left: 4px; top: 4px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); display: grid; place-items: center;
  font-size: 18px; font-weight: 800; color: var(--point-pink);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  cursor: grab;
}
.slider.dragging .knob { cursor: grabbing; }
.slider .knob::after { content: ""; position: absolute; inset: -6px; }

/* 01-3 비밀번호 입력 (잠금화면 위에 겹침 — 알파폰 고유 모양, 기기 잠금 화면 흉내 아님)
   배치·크기 비율: 아이폰 암호 화면 기준(924×2000 캡처를 화면 비율로 환산)
   - 제목 중심 19.6% · 점 중심 23.9%(점 간격 너비 8.7%) · 키패드 첫 줄 위 35.3%
   - 키 지름 너비 20.6% · 열 중심 간격 너비 26.2% · 행 중심 간격 높이 11.65%
   - [취소]·[지우기] 중심: 3열 중심, 높이 92.5%
   화면(틀) 크기 기준 단위(cqw·cqh)를 써서 휴대폰·PC 틀 모두 같은 비율 */
.lock-pass {
  position: absolute !important; inset: 0; z-index: 4 !important;
  container-type: size;
  opacity: 0; pointer-events: none; transform: translateY(24px);
  transition: opacity 260ms var(--ease), transform 300ms var(--ease);
  touch-action: manipulation;
}
.lock.pass-on .lock-pass { opacity: 1; pointer-events: auto; transform: none; }
.lock.pass-on .lock-blur { opacity: 1; z-index: 2; background: rgba(16,12,51,.45); }
.lock > .lock-top, .lock > .lock-notifs, .lock > .lock-bottom, .lock > .deco { transition: opacity 240ms var(--ease), transform 300ms var(--ease), max-height var(--dur) var(--ease), margin var(--dur) var(--ease); }
.lock.pass-on > .lock-top, .lock.pass-on > .lock-notifs, .lock.pass-on > .lock-bottom, .lock.pass-on > .deco { opacity: 0; transform: translateY(-48px); pointer-events: none; }

.pass-head { position: absolute; inset: 0; pointer-events: none; }
.pass-head > * { pointer-events: auto; }
.pass-head .lock-badge { display: none; }
.pass-head h2 { position: absolute; left: 0; right: 0; top: calc(19.6cqh - 0.6em); text-align: center; font-size: clamp(18px, 5cqw, 21px); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.pass-dots { position: absolute; left: 50%; top: 23.9cqh; transform: translate(-50%, -50%); display: flex; gap: calc(8.7cqw - min(3cqw, 13px)); }
.pass-dots i { flex: none; width: min(3cqw, 13px); height: min(3cqw, 13px); border-radius: 50%; border: 1.5px solid rgba(255,255,255,.92); transition: background 120ms, border-color 120ms, transform 120ms; }
.pass-dots i.on { background: var(--white); border-color: var(--white); }
.pass-dots.ok i { background: var(--point-lime); border-color: var(--point-lime); }
.pass-dots.shake { animation: pass-shake 420ms cubic-bezier(.36,.07,.19,.97); }
@keyframes pass-shake { 15%, 85% { transform: translate(calc(-50% - 3px), -50%); } 30%, 70% { transform: translate(calc(-50% + 7px), -50%); } 45% { transform: translate(calc(-50% - 9px), -50%); } 55% { transform: translate(calc(-50% + 9px), -50%); } }
/* 안내 문구·힌트: 점과 키패드 사이 빈 자리 */
.pass-info { position: absolute; left: 0; right: 0; top: calc(23.9cqh + 22px); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pass-msg { min-height: 18px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.8); text-align: center; }
.pass-hint { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 13px; font-weight: 600; }
.pass-hint[hidden] { display: none; }
/* 낮은 화면(안드로이드 640 등): 힌트가 키패드 첫 줄에 닿지 않게 간격을 줄임 */
@container (max-height: 720px) {
  .pass-info { top: calc(23.9cqh + 14px); gap: 4px; }
  .pass-hint { padding: 4px 10px 4px 4px; font-size: 12px; }
}
.pass-hint span { padding: 3px 8px; border-radius: 999px; background: var(--point-pink-bright); color: var(--surface-navy); font-size: 11px; font-weight: 800; }

.pass-pad {
  --pk: min(20.6cqw, 9.6cqh, 86px);
  position: absolute; left: 50%; top: 35.3cqh; transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(3, var(--pk));
  column-gap: calc(26.2cqw - var(--pk)); row-gap: calc(11.65cqh - var(--pk));
}
.pkey { width: var(--pk); height: var(--pk); border-radius: 50%; display: grid; place-items: center; color: var(--white); font-size: calc(var(--pk) * .44); font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.14); transition: background 100ms, transform 100ms; -webkit-tap-highlight-color: transparent; }
.pkey:active { background: rgba(255,255,255,.42); transform: scale(.95); }
.pass-foot { position: absolute; inset: 0; pointer-events: none; }
.pass-foot-btn { pointer-events: auto; position: absolute; left: calc(50% + 26.2cqw); top: 92.5cqh; transform: translate(-50%, -50%); min-width: 64px; min-height: 44px; padding: 0 12px; font-size: clamp(15px, 4.2cqw, 17px); font-weight: 500; color: rgba(255,255,255,.95); border-radius: 22px; }
.pass-foot-btn:active { background: rgba(255,255,255,.12); }

/* 잠금 해제 애니메이션 */
.lock.leaving { transition: transform 360ms var(--ease), opacity 360ms var(--ease); transform: translateY(-8%); opacity: 0; }
