/* Full-screen "add to home screen" guide (see js/install-guide.js) */
.ig-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--bg); color: var(--text); font-family: var(--font-ui);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: calc(env(safe-area-inset-top, 0px) + 26px) 18px calc(env(safe-area-inset-bottom, 0px) + 30px);
}
.ig-inner {
  max-width: 460px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
}
.ig-logo { width: 88px; height: 88px; border-radius: 22.5%; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); }
.ig-title { font-size: 22px; font-weight: 800; line-height: 1.25; margin: 4px 0 0; }
.ig-sub { color: var(--text-dim); font-size: 14px; line-height: 1.55; margin: 0; }
.ig-note {
  width: 100%; text-align: left; font-size: 13px; line-height: 1.55;
  background: var(--surface); border: 1px solid #FF9F0A; border-radius: 14px; padding: 12px 14px;
}
.ig-steps { list-style: none; margin: 6px 0 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.ig-step { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.ig-num {
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800;
}
.ig-body { flex: 1; min-width: 0; }
.ig-step-title { font-weight: 700; font-size: 15px; line-height: 1.35; }
.ig-step-desc { color: var(--text-dim); font-size: 12.5px; line-height: 1.55; margin-top: 4px; }
.ig-mock {
  margin-top: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13px; font-weight: 600;
}
.ig-mock-bar { justify-content: space-around; color: var(--text-dim); }
.ig-mock-center { justify-content: center; }
.ig-url { color: var(--text-dim); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-hl {
  display: inline-flex; align-items: center; background: var(--accent); color: var(--accent-ink);
  border-radius: 9px; padding: 6px 8px; animation: igPulse 1.4s ease-in-out infinite;
}
.ig-hl-text { padding: 4px 12px; font-weight: 700; }
.ig-mini-logo { width: 34px; height: 34px; border-radius: 22.5%; }
.ig-install { width: 100%; max-width: 460px; }
.ig-skip { background: none; border: none; color: var(--text-dim); font-family: var(--font-ui); font-size: 13px; text-decoration: underline; padding: 10px; cursor: pointer; }
.ig-tabs { display: flex; width: 100%; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; }
.ig-tabs button { flex: 1; border: 0; background: none; color: var(--text-dim); font: 700 13px var(--font-ui); padding: 9px 6px; border-radius: 10px; cursor: pointer; }
.ig-tabs button.on { background: var(--accent); color: var(--accent-ink); }
.ig-hint { color: var(--text-dim); font-size: 12px; margin: -4px 0 0; }
.ig-video { margin-top: 10px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; position: relative; }
.ig-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.ig-video-btn { all: unset; cursor: pointer; display: block; width: 100%; height: 100%; position: relative; }
.ig-video-btn img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.ig-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.ig-video-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px; font: 600 12px var(--font-ui); color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); text-align: left; }
@keyframes igPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
@media (min-width: 720px) { .ig-title { font-size: 26px; } .ig-step-title { font-size: 16px; } }
