:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #c1b4ff;
  color: #240570;
  -webkit-tap-highlight-color: transparent;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 280px;
  min-height: 100svh;
  background:
    radial-gradient(ellipse at 15% 12%, #e1d1ff 0, transparent 49%),
    radial-gradient(ellipse at 92% 32%, #779cff 0, transparent 52%),
    linear-gradient(145deg, #bdb4fc, #a995f6 55%, #7788ff);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, #f1e7ff80, transparent 68%);
}
.landing {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  overflow: hidden;
  background: #aa9aff;
  box-shadow: 0 0 100px #4226a526;
}
.artwork { position: relative; }
.hero { display: block; width: 100%; height: auto; }
.download-area {
  position: relative;
  margin-top: -1px;
  padding: 15px 5.3% max(24px, env(safe-area-inset-bottom));
  background: #aa9aff;
}
.download-area::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -32px;
  height: 33px;
  background: linear-gradient(transparent, #aa9aff);
  pointer-events: none;
}
.download-actions {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4.2%;
}
.download-button {
  display: block;
  min-height: 44px;
  border-radius: 999px;
  outline-offset: 5px;
  transition: transform .18s ease, filter .18s ease;
  filter: drop-shadow(0 6px 5px #4224cf38);
  touch-action: manipulation;
}
.download-button img { display: block; width: 100%; height: auto; }
.download-button:focus-visible { outline: 3px solid #fff; }
.download-button:active { transform: scale(.97); }
.download-caption {
  margin: 19px 0 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 1.5px;
  color: #35227c;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
dialog {
  width: min(340px, calc(100% - 40px));
  border: 1px solid #fff;
  border-radius: 24px;
  padding: 30px 26px 24px;
  text-align: center;
  color: #2b1765;
  background: linear-gradient(155deg, #fff, #f0ebff);
  box-shadow: 0 24px 80px #180b6040;
}
dialog::backdrop { background: #160d4d66; backdrop-filter: blur(6px); }
.dialog-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 17px;
  background: linear-gradient(135deg, #ae43ff, #343bff);
  color: white;
  font-size: 32px;
}
dialog h2 { margin: 0 0 12px; font-size: 20px; }
dialog p { margin: 0 0 24px; font-size: 14px; line-height: 1.8; color: #6d608a; }
button { font: inherit; cursor: pointer; }
.dialog-close {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #776890;
  font-size: 26px;
}
.dialog-confirm {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(100deg, #8036ff, #4445ff);
  color: #fff;
  font-weight: 600;
}
button:focus-visible { outline: 3px solid #7757fa; outline-offset: 3px; }
@media (hover: hover) {
  .download-button:hover { transform: translateY(-3px); filter: brightness(1.07) drop-shadow(0 10px 8px #4224cf42); }
}
@media (min-width: 600px) {
  body { padding: 28px 20px; }
  .landing { border-radius: 28px; border: 1px solid #ffffff75; }
  .download-area { padding-top: 20px; padding-bottom: 25px; }
  .download-caption { font-size: 12px; }
}
@media (max-width: 599px) {
  .landing { min-height: 100svh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
