/* LilVR PWA install prompts — matches stitch2stream / lilvr globe UI */
.lilvr-pwa-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(4, 6, 14, 0.82);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.lilvr-pwa-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.lilvr-pwa-dialog {
  width: min(420px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: linear-gradient(160deg, rgba(18, 22, 38, 0.98), rgba(8, 10, 18, 0.98));
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  padding: 24px 22px 20px;
}
.lilvr-pwa-dialog h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
  background: linear-gradient(135deg, #00d4ff, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lilvr-pwa-dialog p {
  font-size: 13px;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0 0 16px;
}
.lilvr-pwa-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.lilvr-pwa-step {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  padding: 12px;
}
.lilvr-pwa-step strong {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
  color: #e2e8f0;
}
.lilvr-pwa-step img {
  width: 100%;
  border-radius: 10px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.lilvr-pwa-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lilvr-pwa-btn {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  text-align: center;
}
.lilvr-pwa-btn-primary {
  background: linear-gradient(135deg, #00d4ff, #7c3aed);
  color: #fff;
}
.lilvr-pwa-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #94a3b8;
}
.lilvr-pwa-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
}
.lilvr-pwa-dialog-wrap {
  position: relative;
  width: min(420px, 100%);
}

/* Standalone: hide dual-stream only (same site, no browser chrome) */
body.lilvr-pwa-standalone .lilvr-dual-stream-only {
  display: none !important;
}
body.lilvr-pwa-standalone .lilvr-dual-stream-hint {
  display: none !important;
}
body.lilvr-pwa-standalone #gs-pwa-section,
body.lilvr-pwa-standalone #gs-pwa-hint,
body.lilvr-pwa-standalone #gs-pwa-install-btn {
  display: none !important;
}

.lilvr-sw-update-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 10060;
  max-width: min(92vw, 420px);
  padding: 12px 18px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 999px;
  background: rgba(8, 14, 28, 0.94);
  color: #e2e8f0;
  font: 600 13px/1.35 Inter, -apple-system, sans-serif;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
