#mr-pwa-install {
  position: fixed;
  left: 50%;
  bottom: max(22px, calc(86px + env(safe-area-inset-bottom)));
  transform: translateX(-50%);
  z-index: 999990;
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 145, 0, .72);
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8a00, #ff6500);
  color: #fff;
  font: 800 15px/1.1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .36), 0 0 22px rgba(255, 112, 0, .22);
  cursor: pointer;
  touch-action: manipulation;
}

#mr-pwa-install.is-visible {
  display: inline-flex;
}

#mr-pwa-install:hover {
  transform: translateX(-50%) translateY(-1px);
}

#mr-pwa-install:focus-visible {
  outline: 3px solid rgba(75, 190, 255, .72);
  outline-offset: 3px;
}

#mr-pwa-install[disabled] {
  opacity: .66;
  cursor: wait;
}

#mr-pwa-install .mr-pwa-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 5px;
}

#mr-pwa-ios-help {
  position: fixed;
  inset: 0;
  z-index: 1000001;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, .76);
  backdrop-filter: blur(8px);
}

#mr-pwa-ios-help.is-visible {
  display: grid;
}

.mr-pwa-help-card {
  width: min(430px, 100%);
  padding: 24px;
  border: 1px solid rgba(67, 174, 255, .35);
  border-radius: 22px;
  background: #0b111a;
  color: #fff;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}

.mr-pwa-help-card img {
  width: 76px;
  height: 76px;
  border-radius: 18px;
}

.mr-pwa-help-card h2 {
  margin: 14px 0 8px;
  font-size: 23px;
}

.mr-pwa-help-card p {
  margin: 0 0 18px;
  color: #d4dbea;
  line-height: 1.55;
}

.mr-pwa-help-card button {
  min-height: 44px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: #ff8300;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

@media (min-width: 769px) {
  #mr-pwa-install {
    bottom: 24px;
  }
}

@media (display-mode: standalone) {
  #mr-pwa-install {
    display: none !important;
  }
}
