/* 여행 프로토타입 — 모바일 우선(iPhone 세로 390px 기준), 넓은 화면에서는 가운데 컬럼 */
:root {
  --ink: #12202f;
  --ink-2: #2b3a4a;
  --muted: #7b8899;
  --muted-2: #9aa6b4;
  --line: #eef2f6;
  --teal: #0f9e8a;
  --teal-soft: #eef7f4;
  --globe-bg: #071628;
  --card-radius: 18px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* hidden 속성이 항상 이기도록 (display:grid/flex 규칙에 덮이지 않게) */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: radial-gradient(120% 90% at 50% 0%, #12304f 0%, #071324 60%, #04101d 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
    "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { overflow: hidden; }

#app {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--globe-bg);
}

@media (min-width: 720px) {
  body { display: flex; align-items: center; justify-content: center; }
  #app {
    height: min(900px, calc(100dvh - 40px));
    border-radius: 30px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .05);
  }
}

.screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .42s ease;
}
.screen.visible { opacity: 1; }

/* ─────────── ① 지구 화면 ─────────── */
.globe-screen {
  background:
    radial-gradient(90% 60% at 50% 78%, rgba(35, 110, 160, .38) 0%, rgba(7, 22, 40, 0) 70%),
    radial-gradient(120% 90% at 50% 0%, #143553 0%, #071628 55%, #030d19 100%);
  color: #fff;
  overflow: hidden;
}

.globe-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: opacity .5s ease;
}
.globe-canvas canvas { display: block; }

.globe-title {
  position: absolute;
  top: calc(26px + var(--safe-t));
  left: 24px;
  right: 24px;
  z-index: 3;
  transition: opacity .45s ease, transform .45s ease;
}
.eyebrow {
  margin: 0 0 8px;
  font-size: 11.5px;
  letter-spacing: .18em;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(160, 220, 235, .85);
}
.globe-title h1 {
  margin: 0;
  font-size: clamp(24px, 7.4vw, 30px);
  line-height: 1.24;
  letter-spacing: -.02em;
  font-weight: 800;
  color: #f4fbff;
  text-shadow: 0 2px 20px rgba(0, 20, 40, .55);
}

.globe-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 0 20px calc(26px + var(--safe-b));
  text-align: center;
  transition: opacity .45s ease, transform .45s ease;
}
.globe-caption {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: rgba(226, 242, 255, .8);
  text-shadow: 0 1px 12px rgba(0, 20, 40, .6);
}

.globe-screen.zooming .globe-title,
.globe-screen.zooming .globe-bottom {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}
.globe-screen.zooming .globe-canvas { opacity: .96; }

.searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 6px 6px 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 14px 34px rgba(2, 12, 26, .45), 0 0 0 1px rgba(255, 255, 255, .5) inset;
}
.searchbar-icon {
  font-size: 19px;
  color: #8fa4bb;
  line-height: 1;
  transform: translateY(-1px);
}
.searchbar input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px; /* iOS 자동 확대 방지 */
  color: #16273a;
  font-family: inherit;
}
.searchbar input::placeholder { color: #a9b7c7; }
.searchbar input::-webkit-search-cancel-button { display: none; }

.search-submit {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ec4a6, #12a5c9);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(18, 165, 201, .38);
  transition: transform .15s ease;
}
.search-submit:active { transform: scale(.94); }

.globe-hint {
  margin: 12px 0 0;
  font-size: 11.5px;
  color: rgba(198, 220, 240, .55);
  min-height: 15px;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 148px;
  z-index: 1200;
  transform: translate(-50%, 8px);
  max-width: calc(100% - 40px);
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(9, 25, 44, .92);
  border: 1px solid rgba(120, 200, 220, .28);
  color: #eaf6ff;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* 지도 화면에서는 시트에 가리지 않게 위쪽에 */
.toast.top { bottom: auto; top: calc(92px + var(--safe-t)); }

/* 지구 폴백(WebGL/CDN 없을 때) */
.globe-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.fallback-ball {
  width: min(74vw, 330px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 33% 26%, rgba(255, 255, 255, .35) 0%, rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 34% 30%, #74b6f2 0%, #2e6fae 34%, #12395f 68%, #071c33 100%);
  background-size: auto, auto;
  box-shadow: inset -16px -20px 46px rgba(0, 0, 0, .6), 0 0 70px rgba(88, 160, 230, .38);
  position: relative;
  overflow: hidden;
  transition: transform 1.5s cubic-bezier(.4, 0, .2, 1), opacity 1.2s ease;
}
.fallback-ball::after {
  content: "";
  position: absolute;
  inset: -20%;
  background-image: radial-gradient(rgba(180, 220, 255, .5) 1px, transparent 1.4px);
  background-size: 15px 15px;
  opacity: .35;
  animation: dotDrift 24s linear infinite;
}
@keyframes dotDrift {
  from { transform: translateX(0); }
  to { transform: translateX(-15px); }
}
.globe-screen.zooming .fallback-ball { transform: scale(7); opacity: 0; }

/* ─────────── ② 지도 화면 ─────────── */
.map-screen { background: #e9eff5; }

.map-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(10px + var(--safe-t)) 14px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .88) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}
.map-title { flex: 1; min-width: 0; }
.map-title h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
}
.map-title p {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.round-btn {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, .07);
  background: #fff;
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .09);
}
.round-btn:active { transform: scale(.95); }

.pill-btn {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--teal-soft);
  color: #0f7a66;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.map {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #e9eff5;
}
.leaflet-container { font-family: inherit; }
.leaflet-control-attribution {
  font-size: 9.5px !important;
  background: rgba(255, 255, 255, .82) !important;
  padding: 1px 5px !important;
}
/* 출처 표기는 시트에 가리지 않게 지도 위쪽에 둔다 (첫 화면 미니 지도에는 적용 안 함) */
#map .leaflet-bottom.leaflet-right {
  top: calc(68px + var(--safe-t));
  bottom: auto;
  left: 8px;
  right: auto;
}
.leaflet-top.leaflet-right { top: calc(58px + var(--safe-t)); right: 6px; }
.leaflet-control-zoom a { font-size: 16px !important; }

/* 마커: 거리 순위 숫자 */
.pin-wrap { background: none; border: none; }
.pin {
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, #35cbb0, #0b917f);
  border: 2px solid #fff;
  box-shadow: 0 6px 14px rgba(8, 60, 52, .38);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease;
}
.pin span {
  transform: rotate(45deg);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.pin-wrap.active .pin {
  transform: rotate(-45deg) scale(1.18);
  background: linear-gradient(135deg, #ff9a6b, #ef6a4a);
  box-shadow: 0 8px 18px rgba(160, 50, 20, .45);
}

.home-pin-wrap { background: none; border: none; }
.home-pin {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #2b6df0;
  color: #2b6df0;
  font-size: 11px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(20, 50, 120, .3);
}

.map-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 24px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  background: #eef3f8;
}

/* 목록 시트 */
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 600;
  height: 48%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 34px rgba(15, 23, 42, .2);
  padding-bottom: var(--safe-b);
  transition: height .34s cubic-bezier(.3, .8, .3, 1);
  overflow: hidden;
}
.sheet.expanded { height: 78%; }
.sheet-grip {
  flex: 0 0 auto;
  height: 22px;
  width: 100%;
  border: 0;
  background: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.sheet-grip span {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #dbe3ec;
}
.sheet-head {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 0 18px 8px;
}
.sheet-head h2 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink);
}
.sheet-head .count { color: var(--teal); font-size: 13px; }
.sheet-note {
  margin: 3px 0 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
.sheet-legend {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  font-size: 10px;
  color: #8b97a8;
  white-space: nowrap;
}
.sheet-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #35cbb0, #0b917f);
}

.place-list {
  flex: 1 1 auto;
  min-height: 0;
  list-style: none;
  margin: 0;
  padding: 0 8px 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.place-card {
  display: grid;
  grid-template-columns: 66px 1fr 14px;
  align-items: center;
  gap: 12px;
  padding: 9px 8px;
  border-radius: 16px;
  cursor: pointer;
  transition: background .15s ease;
}
.place-card + .place-card { border-top: 1px solid #f3f6f9; }
.place-card:active { background: #f4f8fa; }

.thumb {
  width: 66px;
  height: 66px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 27px;
  position: relative;
  overflow: hidden;
}
.thumb::after {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .45), transparent 60%);
}

.card-body { min-width: 0; }
.card-top { display: flex; align-items: center; gap: 7px; }
.rank-badge {
  flex: 0 0 auto;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #35cbb0, #0b917f);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}
.card-body h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meta {
  margin: 3px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meta .star { color: #f0ab1e; }
.chev { color: #c3cdd9; font-size: 19px; }

/* ─────────── ③ 상세 화면 ─────────── */
.detail {
  position: absolute;
  inset: 0;
  z-index: 900;
  background: #fff;
  transform: translateY(100%);
  visibility: hidden;
  transition: transform .34s cubic-bezier(.3, .8, .3, 1), visibility .34s;
}
.detail.open { transform: none; visibility: visible; }
.detail-scroll {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.detail-hero {
  position: relative;
  height: 178px;
  display: grid;
  place-items: center;
  border-radius: 0 0 26px 26px;
  background: linear-gradient(140deg, #7fd6c4, #2f9fc4);
}
.hero-icon {
  font-size: 74px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .18));
}
.round-btn.on-hero {
  position: absolute;
  top: calc(12px + var(--safe-t));
  left: 14px;
  background: rgba(255, 255, 255, .94);
  border: none;
}

.detail-body { padding: 18px 20px calc(42px + var(--safe-b)); }
.detail-body h1 {
  margin: 0 0 9px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 11.5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f1f5f8;
  color: #4a5a6e;
  font-weight: 600;
}
.chip.rank { background: #e6f7f2; color: #0f7a66; font-weight: 700; }
.chip.warn { background: #fff4e2; color: #a86b12; }
.rating {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: #5d6c7e;
}
.rating .star { color: #f0ab1e; }
.addr {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.summary {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.68;
  color: var(--ink-2);
}

.sec { margin-top: 26px; }
.sec h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 7px;
}
.sec h3 .sec-ico {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--teal-soft);
  display: grid;
  place-items: center;
  font-size: 12px;
}
.sec h3 .sec-ico.amber { background: #fff4e2; }
.sec ul { list-style: none; margin: 6px 0 0; padding: 0; }
.sec li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.sec li:last-child { border-bottom: 0; }
.li-ico {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 7px;
  background: var(--teal-soft);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.li-ico.amber { background: #fff4e2; color: #c07d16; }

.info-list { margin: 8px 0 0; }
.info-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.info-row:last-child { border-bottom: 0; }
.info-row dt { color: var(--muted-2); font-size: 12px; }
.info-row dd { margin: 0; color: var(--ink-2); line-height: 1.5; }

.sources a {
  display: block;
  font-size: 11.5px;
  color: #4f7fb8;
  text-decoration: none;
  margin-top: 6px;
  line-height: 1.5;
  word-break: break-all;
}
.sources a:active { text-decoration: underline; }

.detail-foot {
  margin-top: 22px;
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted-2);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

/* ─────────── ④ 첫 실행 모달 ─────────── */
.modal {
  position: absolute;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(6, 16, 30, .62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow-y: auto;
}
.modal-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 22px;
  padding: 22px 20px 20px;
  box-shadow: 0 24px 60px rgba(2, 10, 22, .45);
}
.modal-card .eyebrow { color: var(--teal); }
.modal-card h2 {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.modal-lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.modal-lead b { color: var(--ink-2); }

.field { display: block; margin-top: 14px; }
.field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #6b7a90;
}
.field input,
.field .select {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid #dde5ee;
  border-radius: 12px;
  background: #fbfcfe;
  font-size: 15px; /* iOS 자동 확대 방지 */
  font-family: inherit;
  color: var(--ink);
  outline: none;
}
.field input:focus, .field .select:focus { border-color: #2ec4a6; background: #fff; }
.field .select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8fa4bb 50%), linear-gradient(135deg, #8fa4bb 50%, transparent 50%); background-position: calc(100% - 17px) 20px, calc(100% - 12px) 20px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

.ob-loc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.coord { font-size: 11.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.ghost-btn {
  border: 0;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: #0f7a66;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.ob-map {
  height: 180px;
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e6edf4;
}
.ob-map .tiny { margin: 6px 8px; }
.tiny { font-size: 11px; color: var(--muted-2); line-height: 1.5; }

.privacy-line {
  margin: 14px 0 0;
  padding: 9px 11px;
  border-radius: 10px;
  background: #f0faf6;
  color: #0f7a66;
  font-size: 11.5px;
  line-height: 1.45;
}

.primary-btn {
  width: 100%;
  height: 50px;
  margin-top: 14px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #22c3a6, #12a5c9);
  color: #fff;
  font-size: 15.5px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(18, 165, 201, .3);
}
.primary-btn:active { transform: translateY(1px); }

/* 아주 작은 화면 보정 */
@media (max-width: 350px) {
  .globe-title h1 { font-size: 22px; }
  .place-card { grid-template-columns: 58px 1fr 12px; gap: 10px; }
  .thumb { width: 58px; height: 58px; font-size: 24px; }
}

/* ─────────── ⓪ 잠금 화면 ─────────── */
body.locked { overflow: hidden; }
body.locked #app { visibility: hidden; }

.lock-screen { display: none; }
body.locked .lock-screen {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: calc(18px + var(--safe-t)) 20px calc(18px + var(--safe-b));
  background:
    radial-gradient(80% 55% at 50% 78%, rgba(35, 110, 160, .40) 0%, rgba(7, 22, 40, 0) 72%),
    radial-gradient(120% 90% at 50% 0%, #143553 0%, #071628 55%, #030d19 100%);
  color: #fff;
}

.lock-card {
  width: 100%;
  max-width: 352px;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: 22px 20px 16px;
  text-align: center;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(165deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04));
  box-shadow: 0 22px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lock-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
  border-radius: 20px;
  color: #bff3e8;
  background: linear-gradient(150deg, rgba(34, 195, 166, .34), rgba(18, 165, 201, .22));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.lock-eyebrow {
  margin: 0;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7fdccb;
}
.lock-title {
  margin: 6px 0 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.3;
}
.lock-sub {
  margin: 6px 0 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #9fb6cf;
}

.lock-dots { display: flex; justify-content: center; gap: 14px; margin: 0 0 10px; }
.lock-dots i {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .06);
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
.lock-dots i.on {
  background: linear-gradient(150deg, #3fd9c0, #17a9cd);
  border-color: transparent;
  transform: scale(1.1);
}
.lock-dots.shake { animation: lockShake .4s ease; }
@keyframes lockShake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-9px); }
  35% { transform: translateX(8px); }
  55% { transform: translateX(-6px); }
  75% { transform: translateX(4px); }
}

.lock-msg {
  min-height: 19px;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #ffb3bd;
}

.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.key {
  height: 58px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 18px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font-family: inherit;
  font-size: 23px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  cursor: pointer;
  transition: background .12s ease, transform .08s ease;
}
.key:active {
  transform: translateY(1px);
  background: linear-gradient(150deg, rgba(63, 217, 192, .38), rgba(23, 169, 205, .30));
}
.key.del { color: #d7e3f0; }
.key.del svg { display: block; margin: 0 auto; }
.key-gap { display: block; }

.lock-note {
  margin: 14px 0 0;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
  color: #8497ad;
}

@media (max-height: 640px) {
  .lock-card { padding: 16px 18px 12px; }
  .lock-ic { width: 46px; height: 46px; margin-bottom: 6px; border-radius: 16px; }
  .lock-title { font-size: 19px; }
  .lock-sub { margin-bottom: 10px; }
  .key { height: 50px; font-size: 21px; }
  .lock-note { margin-top: 10px; }
}
@media (max-width: 340px) {
  .lock-screen { padding-left: 14px; padding-right: 14px; }
  .lock-card { padding: 18px 14px 12px; }
  .key { height: 52px; font-size: 21px; }
}
