/* PWA：更新提示橫幅、iOS 權限說明 */
.update-banner {
  position: fixed; z-index: 95; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--safe-b) + 76px); box-shadow: 0 4px 16px rgba(0, 0, 0, .5); border-radius: 999px;
  animation: ui-in-up .2s ease-out;
}
.update-banner.closing { animation: ui-out-down .2s ease-in forwards; }
.pwa-help p, .pwa-help li { margin: 0 0 10px; line-height: 1.6; }
.pwa-help ul { padding-left: 20px; margin: 0 0 12px; }
.pwa-help .btn { margin-bottom: 10px; }
.pwa-status { color: var(--fg-2); min-height: 1.6em; }

/* 加入主畫面提示：畫面上方置中的小卡片，可關閉、自動收起 */
.install-hint {
  position: fixed; z-index: 96; left: 50%; transform: translateX(-50%);
  top: calc(var(--safe-t) + 8px); width: min(440px, calc(100vw - 16px));
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px;
  background: var(--bg-2, #1b1e25); color: var(--fg); border: 1px solid var(--line, #2a2e37);
  border-radius: 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, .45); animation: ui-in-down .2s ease-out;
}
.install-hint-icon { flex: none; width: 32px; height: 32px; border-radius: 8px; }
.install-hint-text { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; }
.install-hint-btn { flex: none; min-height: 36px; padding: 0 12px; }
.install-hint-close { flex: none; width: 36px; height: 36px; font-size: 22px; line-height: 1; }
/* 觸控裝置：可點元素至少 44px */
@media (pointer: coarse) {
  .install-hint-btn { min-height: 44px; }
  .install-hint-close { width: 44px; height: 44px; }
}
.install-hint.closing { animation: ui-out-up .2s ease-in forwards; }
@media (prefers-reduced-motion: reduce) { .install-hint, .install-hint.closing, .update-banner, .update-banner.closing { animation: none; } }
