/* The app and public site supply their own typeface and matching indigo palette. */
.play-download, .install-sheet {
  --play-ink: var(--text-main, var(--ink, #1e293b));
  --play-muted: var(--text-muted, var(--muted, #64748b));
  --play-brand: var(--primary, var(--brand, #4f46e5));
  --play-soft: var(--primary-light, var(--brand-light, #eef2ff));
  --play-line: var(--border, var(--line, #e2e8f0));
}

.play-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid var(--play-line);
  border-radius: 999px;
  background: white;
  color: var(--play-ink);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 650;
  text-decoration: none;
}
.play-download::before, .install-play-mark {
  content: "";
  flex: none;
  width: 21px;
  height: 21px;
  background: url("google-play.svg") center / contain no-repeat;
}
.play-download:hover { border-color: var(--play-brand); color: var(--play-brand); }
.play-download:focus-visible, .install-sheet :is(a, button):focus-visible {
  outline: 3px solid var(--play-brand);
  outline-offset: 3px;
}

html:has(.install-sheet[open]) { overflow: hidden; }
.install-sheet {
  position: fixed;
  inset: auto 0 max(12px, env(safe-area-inset-bottom));
  margin: 0 auto;
  width: min(408px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100% - 24px);
  max-height: calc(100dvh - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom)));
  box-sizing: border-box;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgb(255 255 255 / 85%);
  border-radius: 24px;
  background: white;
  color: var(--play-ink);
  box-shadow: 0 16px 60px rgb(15 23 42 / 23%);
  font-family: inherit;
  text-align: start;
}
.install-sheet::backdrop { background: rgb(18 23 44 / 52%); }
.install-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 20px 24px 13px;
  background: linear-gradient(120deg, var(--play-soft), #f4f2ff 65%, #e3dffc);
}
.install-art::before, .install-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 250px;
  height: 116px;
  inset-inline-end: -32px;
  top: -48px;
  border: 1px solid rgb(99 88 198 / 15%);
  border-radius: 50%;
  transform: rotate(-28deg);
}
.install-art::after { inset-inline-end: -48px; top: -38px; }
.install-app-icon {
  display: block;
  width: 62px;
  height: 62px;
  border-radius: 16px;
  box-shadow: 0 3px 10px rgb(49 46 129 / 12%);
}
.install-sheet button { font: inherit; cursor: pointer; }
.install-close {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--play-ink);
}
.install-close::before, .install-close::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 15px;
  height: 2px;
  margin: auto;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}
.install-close::after { transform: rotate(-45deg); }
.install-close:hover { background: rgb(255 255 255 / 65%); }
.install-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.install-body { padding: 20px 24px 8px; }
.install-body h2 {
  margin: 0;
  font: inherit;
  font-size: clamp(24px, 6.8vw, 30px);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}
.install-body h2:focus { outline: none; }
.install-body p {
  margin: 8px 0 20px;
  color: var(--play-muted);
  font-size: 15px;
  line-height: 1.55;
}
.install-action {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 8px 15px 8px 12px;
  border-radius: 14px;
  background: var(--play-brand);
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
}
.install-action:hover { background: var(--primary-hover, var(--brand-dark, #4338ca)); }
.install-play-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background-color: white;
  background-size: 21px;
}
.install-arrow { flex: none; margin-inline-start: auto; }
[dir="rtl"] .install-arrow { transform: rotate(180deg); }
.install-sheet .install-stay {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 3px;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--play-muted);
  font-size: 14px;
  font-weight: 600;
}
.install-stay:hover { color: var(--play-brand); }
@media (max-height: 450px) {
  .install-art { padding-block: 10px; }
  .install-app-icon { width: 42px; height: 42px; border-radius: 11px; }
  .install-body { padding-top: 12px; }
}
