.home-screen-prompt {
  --install-acid: #c6ff3b;
  --install-ink: #080806;
  --install-paper: #f1ece1;
  position: fixed;
  z-index: 1250;
  right: 10px;
  bottom: calc(82px + env(safe-area-inset-bottom));
  left: 10px;
  display: none;
  max-width: 420px;
  margin: 0 auto;
  color: var(--install-paper);
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .62));
}

.home-screen-prompt.is-visible {
  display: block;
  animation: install-prompt-in 420ms cubic-bezier(.16, 1, .3, 1) both;
}

.home-screen-prompt__card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(198, 255, 59, .54);
  border-radius: 15px;
  background:
    linear-gradient(115deg, rgba(198, 255, 59, .08), transparent 42%),
    rgba(7, 10, 9, .97);
  box-shadow: inset 0 1px rgba(255, 255, 255, .06);
  backdrop-filter: blur(18px);
}

.home-screen-prompt__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--install-acid) 0 62%, #ff6a2a 62% 82%, #ff4f8b 82%);
}

.home-screen-prompt__body {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 44px 13px 15px;
}

.home-screen-prompt__icon {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 12px;
  background: #080806;
  box-shadow: 4px 4px 0 var(--install-acid);
}

.home-screen-prompt__eyebrow,
.home-screen-prompt__title,
.home-screen-prompt__copy {
  margin: 0;
}

.home-screen-prompt__eyebrow {
  color: var(--install-acid);
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.home-screen-prompt__title {
  margin-top: 3px;
  font-family: var(--font-display, sans-serif);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.08;
  text-transform: uppercase;
}

.home-screen-prompt__copy {
  margin-top: 5px;
  color: rgba(241, 236, 225, .72);
  font-family: var(--font-body, sans-serif);
  font-size: 12px;
  line-height: 1.4;
}

.home-screen-prompt__share {
  display: inline-grid;
  width: 21px;
  height: 21px;
  margin: -4px 2px;
  place-items: center;
  border: 1px solid rgba(198, 255, 59, .48);
  border-radius: 5px;
  color: var(--install-acid);
  font-family: sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.home-screen-prompt__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 13px 13px;
}

.home-screen-prompt__button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(241, 236, 225, .2);
  border-radius: 8px;
  color: var(--install-paper);
  background: transparent;
  font: 900 11px/1 var(--font-display, sans-serif);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.home-screen-prompt__button--install {
  border-color: var(--install-acid);
  color: var(--install-ink);
  background: var(--install-acid);
}

.home-screen-prompt__close {
  position: absolute;
  top: 10px;
  right: 8px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 0;
  color: rgba(241, 236, 225, .74);
  background: transparent;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.home-screen-prompt__button:focus-visible,
.home-screen-prompt__close:focus-visible {
  outline: 2px solid var(--install-acid);
  outline-offset: 2px;
}

@keyframes install-prompt-in {
  from { opacity: 0; transform: translateY(22px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 701px) {
  .home-screen-prompt,
  .home-screen-prompt.is-visible {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-screen-prompt.is-visible { animation: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .home-screen-prompt__card { background: #070a09; backdrop-filter: none; }
}
