.app-download-dialog {
  box-sizing: border-box;
  width: min(820px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 48px 36px 28px;
  border: 1px solid #ddded8;
  border-radius: 24px;
  color: #12141a;
  background: #fff;
  box-shadow: 0 24px 100px #0003;
  text-align: center;
}
.app-download-dialog::backdrop { background: #12141a99; }
.app-download-dialog h2 { margin: 0; font-size: clamp(22px, 4vw, 30px); line-height: 1.3; }
.app-download-intro { margin: 12px 0 32px; color: #666974; }
.app-download-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #666974;
  font: 32px/1 sans-serif;
  cursor: pointer;
}
.app-download-options { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.app-download-direct { padding: 24px; }
.app-store-button {
  display: block;
  padding: 18px 20px;
  border-radius: 14px;
  background: #4b3af0;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.app-download-scan { padding: 8px 20px; border-left: 1px solid #ddded8; }
.app-download-scan h3 { margin: 0 0 12px; font-size: 18px; }
.app-download-scan img { display: block; width: 230px; max-width: 100%; height: auto; margin: auto; }
.app-download-options p, .app-download-prerequisite { font-size: 13px; color: #666974; }
.app-download-prerequisite { margin: 28px 0 0; }
.app-download-prerequisite a { color: #4b3af0; text-decoration: underline; }
.app-download-dialog :focus-visible { outline: 3px solid #8578ff; outline-offset: 4px; }
@media (max-width: 560px) {
  .app-download-dialog { padding: 56px 20px 24px; }
  .app-download-intro { margin-bottom: 16px; }
  .app-download-options { grid-template-columns: 1fr; }
  .app-download-direct { padding: 0 0 16px; }
  .app-download-scan { border-left: 0; border-top: 1px solid #ddded8; padding: 20px 0 0; }
  .app-download-scan img { width: 190px; }
}
