/* ===== 설치 안내 (웹 전용, js/install-guide.js) ===== */
html.ig-open, html.ig-open body { overflow: hidden; }

.ig {
  position: fixed; inset: 0; z-index: 90;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--c-primary);
  color: #fff;
  padding: calc(20px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right))
           calc(28px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
}
.ig__inner { max-width: 520px; margin: 0 auto; }

.ig-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ig-head img { border-radius: 14px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.ig-head h1 { margin: 0; font-size: 22px; font-weight: 700; }

.ig-lead { margin: 0 0 16px; font-size: 16px; line-height: 1.6; }
.ig-sub { margin: 22px 0 10px; font-size: 15px; font-weight: 700; opacity: .9; }

.ig-card {
  margin: 0 0 14px; padding: 16px;
  border-radius: 12px; background: #fff; color: #333;
  text-align: center; font-size: 15px; line-height: 1.6;
}
.ig-card p { margin: 0 0 12px; }
.ig-card p:last-child { margin-bottom: 0; }
.ig-small { font-size: 13px; color: #777; }
.ig-url {
  margin: 0 0 12px; padding: 10px;
  border-radius: 8px; background: #f4eef2; color: var(--c-primary-dark);
  font-size: 18px; font-weight: 700; word-break: break-all;
  user-select: all; -webkit-user-select: all;
}
.ig-btn {
  display: inline-block; min-width: 160px; margin: 2px 4px;
  padding: 12px 20px; border: 0; border-radius: 8px;
  background: var(--c-accent); color: #fff;
  font-size: 16px; font-weight: 700;
}
.ig-btn:active { background: var(--c-accent-press); }
.ig-btn--sub { background: #ece4ea; color: #333; }
.ig-btn--sub:active { background: #ddd2da; }

.ig-steps { list-style: none; margin: 0; padding: 0; }
.ig-step {
  display: grid; grid-template-columns: 32px 1fr 104px; gap: 12px; align-items: center;
  margin: 0 0 12px; padding: 14px;
  border-radius: 12px; background: #fff; color: #333;
}
.ig-num {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-primary); color: #fff; font-weight: 700;
}
.ig-text { font-size: 15px; line-height: 1.55; word-break: keep-all; }
.ig-text small { display: block; margin-top: 4px; font-size: 12.5px; color: #777; }
.ig-pic { width: 104px; height: auto; display: block; }

.ig-done img { display: block; margin: 8px auto 0; border-radius: 14px; box-shadow: 0 1px 6px rgba(0,0,0,.15); }

/* 좁은 화면: 그림을 글 아래로 */
@media (max-width: 360px) {
  .ig-step { grid-template-columns: 32px 1fr; }
  .ig-pic { grid-column: 2; width: 120px; }
}
