:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff;
}

*, *::before, *::after {
  box-sizing: border-box;
}

.download {
  margin: 0;
  background: #6321ff;
  background: linear-gradient(to bottom, #fff 0 env(safe-area-inset-top, 0px), #6321ff env(safe-area-inset-top, 0px) 100%);
  color: #fff;
}

.download main {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  place-items: center;
}

.download-mark {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.download-button {
  position: fixed;
  left: 50%;
  bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 16px));
  display: flex;
  width: min(480px, calc(100% - max(20px, env(safe-area-inset-left, 0px)) - max(20px, env(safe-area-inset-right, 0px))));
  min-height: 64px;
  transform: translateX(-50%);
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, #252525, #090909);
  color: #fff;
  box-shadow: 0 4px 12px #00000014;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
}

.download-button:hover { background: #222; }
.download-button:active { background: #090909; }
.download-button:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }

@media (max-height: 320px) {
  .download-mark {
    width: 80px;
    height: 80px;
    transform: translateY(-28px);
  }

  .download-button {
    min-height: 56px;
    padding-block: 14px;
  }
}
