#hdcpr-install-app {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 99999;
  max-width: calc(100vw - 36px);
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: #6e1f2a;
  color: #fff;
  box-shadow: 0 5px 20px rgba(0,0,0,.24);
  font: 600 15px/1.2 system-ui, sans-serif;
  cursor: pointer;
}

#hdcpr-app-overlay[hidden] { display: none !important; }

#hdcpr-app-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(25, 18, 15, .65);
}

#hdcpr-app-dialog {
  position: relative;
  width: min(430px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  box-sizing: border-box;
  padding: 28px;
  border-radius: 14px;
  background: #f6f0e6;
  color: #342924;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  font: 16px/1.55 system-ui, sans-serif;
}

#hdcpr-app-dialog img {
  display: block;
  width: 76px;
  height: 76px;
  margin: 0 auto 12px;
  border-radius: 16px;
}

#hdcpr-app-dialog h2 {
  margin: 0 28px 12px;
  color: #6e1f2a;
  text-align: center;
  font-size: 24px;
}

#hdcpr-app-dialog ol { padding-left: 23px; }
#hdcpr-app-dialog li { margin: 7px 0; }

#hdcpr-app-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #342924;
  font: 30px/1 system-ui, sans-serif;
  cursor: pointer;
}

#hdcpr-install-app:hover,
#hdcpr-install-app:focus {
  background: #521720;
  outline: 3px solid rgba(110,31,42,.25);
  outline-offset: 2px;
}

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