/* ─────────────────────────────────────────────
   온보딩 · 번호 등록 · 알림 설정
   ───────────────────────────────────────────── */

#view-onboard, #view-add, #view-noti { justify-content: flex-start; gap: 16px; }
#view-onboard { justify-content: center; }

/* ── 온보딩 ────────────────────────────────── */
.ob-track { width: 100%; position: relative; min-height: 400px; }

.ob-slide {
  position: absolute; inset: 0;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; text-align: center;
}
.ob-slide.is-on { display: flex; animation: obIn .45s cubic-bezier(.2,.9,.25,1) both; }
@keyframes obIn { from { opacity: 0; transform: translateX(22px); } }

.ob-art { position: relative; display: grid; place-items: center; width: 168px; height: 168px; }
.ob-emoji { font-size: 66px; filter: drop-shadow(0 0 22px rgba(255,61,129,.55)); }

.ob-bubble {
  position: absolute;
  font-size: 11.5px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid var(--card-line);
  backdrop-filter: blur(8px);
  animation: floaty 3.6s ease-in-out infinite;
}
.b-a { top: 8px; left: -14px; }
.b-b { bottom: 14px; right: -18px; animation-delay: -1.8s; }

/* 신 소개 슬라이드 */
.ob-art.is-god { width: 228px; height: 236px; }

.god-img {
  position: relative; z-index: 1;
  width: 100%; height: auto;
  filter: drop-shadow(0 14px 26px rgba(0,0,0,.45));
  animation: floaty 4.2s ease-in-out infinite;
}
.god-halo {
  position: absolute; width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,209,102,.32), transparent 68%);
  filter: blur(16px);
  animation: glowPulse 3.2s ease-in-out infinite;
}
.god-spark { position: absolute; z-index: 2; font-size: 19px; animation: floaty 3.4s ease-in-out infinite; }
.s1 { top: 6px; right: 6px; }
.s2 { bottom: 40px; left: 2px; animation-delay: -1.7s; }

.god-hello { font-size: 14.5px; color: var(--ink-faint); font-weight: 600; }
.god-name {
  background: linear-gradient(100deg, #ffd166, #ff3d81 60%, #a855f7);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ob-badge.is-soft {
  color: var(--ink-dim);
  background: rgba(255,255,255,.06);
  border-color: var(--card-line);
}
.ob-sign {
  font-size: 13px; font-weight: 700; color: var(--ink-faint);
  letter-spacing: -.01em; margin-top: 2px;
}

.ob-clock { font-size: 68px; animation: floaty 4s ease-in-out infinite; }
.ob-ring {
  position: absolute; width: 118px; height: 118px; border-radius: 50%;
  border: 1.5px solid rgba(255,61,129,.42);
  animation: ripple 2.9s cubic-bezier(.2,.7,.3,1) infinite;
}
.ob-lock { font-size: 68px; animation: floaty 4.4s ease-in-out infinite; }

.ob-title { font-size: 29px; font-weight: 800; letter-spacing: -.04em; line-height: 1.25; }
.ob-desc { font-size: 15px; color: var(--ink-dim); line-height: 1.7; }
.ob-desc b { color: var(--ink); font-weight: 700; }

.ob-badge {
  font-size: 12.5px; font-weight: 700; color: var(--cyan);
  padding: 9px 16px; border-radius: 999px;
  background: rgba(34,211,238,.10);
  border: 1px solid rgba(34,211,238,.32);
}

.ob-dots { display: flex; gap: 8px; }
.dot {
  width: 7px; height: 7px; border-radius: 99px; padding: 0;
  border: 0; background: rgba(255,255,255,.22); cursor: pointer;
  transition: width .3s cubic-bezier(.2,.9,.25,1), background .3s ease;
}
.dot.is-on { width: 22px; background: var(--grad); }

.ob-skip {
  border: 0; background: transparent;
  color: var(--ink-faint); font: inherit; font-size: 14px; font-weight: 600;
  padding: 10px 18px; cursor: pointer;
}

/* ── 번호 등록 ─────────────────────────────── */
.add-slots {
  width: 100%;
  display: flex; align-items: center; gap: 7px;
  padding: 13px 15px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--card-line);
}
.as-pill {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
  background: rgba(255,255,255,.06);
  border: 1.5px dashed var(--card-line);
  color: var(--ink-faint);
  flex: 0 0 auto;
}
.as-pill.is-filled { background: var(--grad); border: 0; color: #fff; }
.as-pill.is-now {
  border: 1.5px solid var(--pink); color: var(--pink); background: rgba(255,61,129,.12);
  animation: nowPulse 1.9s ease-in-out infinite;
}
@keyframes nowPulse { 50% { box-shadow: 0 0 0 5px rgba(255,61,129,.14); } }
.as-text { font-size: 13px; color: var(--ink-dim); margin-left: 5px; }
.as-text b { color: var(--ink); font-weight: 700; }

.add-input { font-size: 29px; }
.add-input.is-bad { color: #ff8fb0; }

/* 입력 상태 메시지 — 항상 자리를 차지해 화면이 튀지 않게 */
.a-msg {
  min-height: 40px;
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; line-height: 1.5;
  text-align: left;
}
.a-msg b { font-weight: 800; }
.a-msg.is-none { color: transparent; }
.a-msg.is-hint { color: var(--ink-faint); }
.a-msg.is-ok   { color: var(--cyan); }
.a-msg.is-warn { color: #ffd166; }
.a-msg.is-bad  { color: #ff6b8b; }

.a-msg.is-ok::before   { content: "✓"; font-weight: 800; }
.a-msg.is-warn::before { content: "⚠"; }
.a-msg.is-bad::before  { content: "✕"; font-weight: 800; }

.add-tip, .ios-warn, .and-ok {
  width: 100%;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 15px;
  border-radius: var(--r-md);
  text-align: left;
}
.add-tip {
  background: rgba(34,211,238,.08);
  border: 1px solid rgba(34,211,238,.24);
}
.add-tip p, .ios-warn p, .and-ok p { font-size: 12.5px; line-height: 1.6; color: var(--ink-dim); }
.add-tip b, .ios-warn b, .and-ok b { color: var(--ink); font-weight: 700; }

.add-help { width: 100%; text-align: left; }
.add-help summary {
  font-size: 13px; font-weight: 600; color: var(--ink-faint);
  padding: 12px 2px; cursor: pointer;
}
.add-help summary::marker { color: var(--ink-faint); }
.help-list { list-style: none; display: flex; flex-direction: column; gap: 7px; padding-top: 4px; }
.help-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--r-md);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--card-line);
}
.help-list b { font-size: 14px; font-variant-numeric: tabular-nums; }
.help-list span { font-size: 11.5px; color: var(--ink-faint); }

/* ── 알림 설정 ─────────────────────────────── */
.noti-mark { position: relative; display: grid; place-items: center; width: 130px; height: 130px; }
.nm-bell { font-size: 56px; animation: ring 3.4s ease-in-out infinite; transform-origin: 50% 12%; }
@keyframes ring {
  0%, 62%, 100% { transform: rotate(0); }
  66% { transform: rotate(13deg); } 72% { transform: rotate(-11deg); }
  78% { transform: rotate(8deg); }  84% { transform: rotate(-5deg); }
}
.nm-wave {
  position: absolute; width: 84px; height: 84px; border-radius: 50%;
  border: 1.5px solid rgba(255,61,129,.42);
  animation: ripple 2.8s cubic-bezier(.2,.7,.3,1) infinite;
}
.w2 { animation-delay: 1.4s; }

.dev-switch {
  display: flex; gap: 5px; padding: 5px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--card-line);
  border-radius: 999px;
}
.dev-btn {
  padding: 10px 22px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-faint);
  font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.dev-btn.is-on { background: var(--grad); color: #fff; }

.noti-pane { display: none; width: 100%; flex-direction: column; align-items: center; gap: 14px; }
.noti-pane.is-on { display: flex; animation: obIn .4s cubic-bezier(.2,.9,.25,1) both; }

.ios-warn { background: rgba(255,209,102,.09); border: 1px solid rgba(255,209,102,.3); }
.and-ok   { background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.24); }

/* 아이폰 단계 안내 */
.ios-steps { list-style: none; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.ios-steps li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 15px 15px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.045);
  border: 1px solid var(--card-line);
  text-align: left;
}
.is-num {
  flex: 0 0 auto;
  width: 25px; height: 25px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad); color: #fff;
  font-size: 12.5px; font-weight: 800;
}
.is-body { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.5; }
.is-body b { font-weight: 700; }
.is-body small { font-size: 11.5px; color: var(--ink-faint); line-height: 1.55; }
.is-body small b { color: var(--ink-dim); }
.ico { display: inline-block; }

/* 사파리 하단 바 목업 */
.ios-mock {
  width: 100%; padding: 14px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.035);
  border: 1px dashed var(--card-line);
}
.im-bar {
  display: flex; align-items: center; justify-content: space-around;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,.09);
}
.im-dot { width: 15px; height: 15px; border-radius: 4px; background: rgba(255,255,255,.16); }
.im-share {
  font-size: 19px;
  animation: pointAt 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255,61,129,.9));
}
@keyframes pointAt { 50% { transform: translateY(-5px) scale(1.16); } }
.im-cap { font-size: 11.5px; color: var(--ink-faint); text-align: center; margin-top: 9px; }
.im-cap b { color: var(--pink); }

@media (prefers-reduced-motion: reduce) {
  .im-share, .nm-bell, .as-pill.is-now { animation: none; }
}

/* ── 등록 완료 → 초대 ──────────────────────── */
#view-done, #view-land { justify-content: flex-start; gap: 15px; }

.done-mark { position: relative; display: grid; place-items: center; width: 110px; height: 110px; }
.done-check {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad); color: #fff;
  font-size: 34px; font-weight: 800;
  animation: popIn .6s cubic-bezier(.2,1.5,.4,1) both;
  box-shadow: 0 10px 30px -8px rgba(255,61,129,.8);
}
.done-ring {
  position: absolute; width: 88px; height: 88px; border-radius: 50%;
  border: 2px solid rgba(255,61,129,.5);
  animation: ripple 2.4s cubic-bezier(.2,.7,.3,1) infinite;
}

/* 3단계 — 아직 끝나지 않았다는 걸 보여줍니다 */
.steps3 {
  width: 100%;
  display: flex; align-items: flex-start; justify-content: center; gap: 4px;
  padding: 16px 10px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.045);
  border: 1px solid var(--card-line);
}
.s3 { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.s3-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 800;
  background: rgba(255,255,255,.07);
  border: 1.5px solid var(--card-line);
  color: var(--ink-faint);
}
.s3.is-done .s3-dot { background: var(--grad); border-color: transparent; color: #fff; }
.s3.is-now .s3-dot {
  border-color: var(--pink); color: var(--pink); background: rgba(255,61,129,.14);
  animation: nowPulse 1.8s ease-in-out infinite;
}
.s3 b { font-size: 11.5px; font-weight: 700; color: var(--ink-dim); letter-spacing: -.02em; }
.s3.is-now b { color: var(--ink); }
.s3 small { font-size: 10px; color: var(--ink-faint); }
.s3.is-now small { color: var(--pink); font-weight: 700; }
.s3-line { flex: 0 0 14px; height: 1.5px; background: var(--card-line); margin-top: 13px; }

.done-key {
  width: 100%; padding: 15px 16px;
  border-radius: var(--r-md);
  background: linear-gradient(140deg, rgba(255,61,129,.16), rgba(168,85,247,.10));
  border: 1px solid rgba(255,61,129,.28);
  text-align: left;
}
.done-key p { font-size: 13.5px; line-height: 1.65; color: var(--ink-dim); }
.done-key b { color: var(--ink); }

.safe-note {
  width: 100%;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 15px;
  border-radius: var(--r-md);
  background: rgba(34,211,238,.08);
  border: 1px solid rgba(34,211,238,.24);
  text-align: left;
}
.safe-note p { font-size: 12.5px; line-height: 1.6; color: var(--ink-dim); }
.safe-note b { color: var(--ink); font-weight: 700; }

/* 문구 고르기 — 뭐라고 쓸지 고민하는 마찰을 없앱니다 */
.pick-label { width: 100%; text-align: left; font-size: 12.5px; font-weight: 700; color: var(--ink-dim); }
.pick-list { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.pick {
  width: 100%;
  display: flex; align-items: center; gap: 11px;
  padding: 13px 14px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.04);
  border: 1.5px solid var(--card-line);
  color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .16s ease;
}
.pick:active { transform: scale(.985); }
.pick.is-on { border-color: rgba(255,61,129,.65); background: rgba(255,61,129,.09); }
.pick-tag {
  flex: 0 0 auto;
  font-size: 10px; font-weight: 800;
  padding: 4px 8px; border-radius: 6px;
  background: rgba(255,255,255,.09); color: var(--ink-faint);
}
.pick.is-on .pick-tag { background: var(--grad); color: #fff; }
.pick-text { font-size: 13.5px; font-weight: 600; line-height: 1.45; }

.hint-under { font-size: 11.5px; color: var(--ink-faint); text-align: center; margin-top: -4px; }
.hint-under b { color: var(--ink-dim); font-weight: 700; }

.bonus {
  width: 100%;
  display: flex; align-items: center; gap: 11px;
  padding: 14px 15px;
  border-radius: var(--r-md);
  background: rgba(255,209,102,.08);
  border: 1px solid rgba(255,209,102,.26);
  text-align: left;
}
.bonus p { font-size: 12.5px; line-height: 1.6; color: var(--ink-dim); }
.bonus b { color: #ffd166; font-weight: 700; }

.skip-link {
  border: 0; background: transparent;
  color: var(--ink-faint); font: inherit; font-size: 13.5px; font-weight: 600;
  padding: 8px 16px; cursor: pointer;
}

/* ── 초대 랜딩 ─────────────────────────────── */
.land-from {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--card-line);
}
.lf-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad); color: #fff;
  font-size: 13px; font-weight: 800;
}
.land-from p { font-size: 13px; color: var(--ink-dim); }
.land-from b { color: var(--ink); font-weight: 800; }

.land-facts { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.lfact {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 15px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--card-line);
  text-align: left;
}
.lfact span { font-size: 19px; flex: 0 0 auto; }
.lfact p { font-size: 13.5px; color: var(--ink-dim); }
.lfact b { color: var(--ink); font-weight: 700; }
