/* SITV PWA install — button + iOS instruction popup. Self-contained brand styling. */
#pwa-install {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid #e84b38;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
#pwa-install[hidden] { display: none; }
#pwa-install:hover { background: #e84b38; color: #fffaf2; }
#pwa-install svg { width: 15px; height: 15px; flex: none; }

.pwa-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(5, 6, 4, .62);
  padding: 0 0 env(safe-area-inset-bottom);
}
@media (min-width: 560px) { .pwa-overlay { align-items: center; } }
.pwa-card {
  width: 100%;
  max-width: 420px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 22px 22px 0 0;
  background: #fffdf7;
  color: #171815;
  padding: 26px 24px calc(30px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 60px rgba(0, 0, 0, .35);
  font-family: -apple-system, system-ui, sans-serif;
}
@media (min-width: 560px) { .pwa-card { border-radius: 22px; } }
@media (prefers-color-scheme: dark) {
  .pwa-card { background: #181a16; color: #f3f0e8; }
}
.pwa-card h2 {
  margin: 0 0 4px;
  font-size: 20px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pwa-card h2 .i-dot { color: #e84b38; }
.pwa-card .pwa-sub { margin: 0 0 18px; font-size: 14px; opacity: .72; }
.pwa-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.pwa-steps li { display: flex; gap: 14px; align-items: flex-start; }
.pwa-step-num {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #e84b38;
  color: #fffaf2;
  font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.pwa-steps p { margin: 2px 0 8px; font-size: 14px; line-height: 1.45; }
.pwa-steps p b { font-weight: 700; }
.pwa-fig {
  border: 1px solid rgba(128, 128, 128, .35);
  border-radius: 14px;
  padding: 10px;
  background: rgba(128, 128, 128, .08);
}
.pwa-fig svg { display: block; width: 100%; height: auto; }
.pwa-share-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(232, 75, 56, .14);
  border: 1.5px solid #e84b38;
  font-size: 14px; font-weight: 600;
}
.pwa-share-row svg { width: 22px; height: 22px; flex: none; color: #e84b38; }
.pwa-close {
  display: block;
  width: 100%;
  margin-top: 22px;
  padding: 13px;
  border: 0;
  border-radius: 999px;
  background: #e84b38;
  color: #fffaf2;
  font-size: 15px; font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
@keyframes pwa-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: .65; }
}
.pwa-pulse { transform-origin: center; transform-box: fill-box; animation: pwa-pulse 1.6s ease-in-out infinite; }
