/* Launch layout refinement: keep the first frame scenic, then reveal legal
   and publishing information in normal document flow. */
html {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  background: #121918;
}

main {
  width: 100%;
  height: auto;
  min-height: 0;
}

.hero-parallax {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 640px;
}

/* Close the final 10px seam below the animated ground layer. */
.hero-parallax .scene-ground {
  box-shadow: 0 38px 0 10px #302320;
}

/* Center the game logo over the sky and let it leave naturally on scroll. */
.hero-brand {
  position: absolute;
  top: clamp(18px, 3.5vh, 38px);
  left: 50%;
  width: min(500px, 40vw);
  transform: translateX(-50%);
  pointer-events: none;
  cursor: default;
  user-select: none;
}

.hero-download {
  bottom: auto;
}

@media (min-width: 901px) {
  .hero-download {
    top: 46%;
    gap: 14px;
  }

  .hero-download .header-qr {
    box-sizing: border-box;
    width: 158px;
    height: 74px;
    padding: 7px 12px 7px 7px;
    justify-content: center;
    gap: 9px;
  }

  .hero-download .mini-game-icon {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .hero-download .header-qr strong {
    font-size: 16px;
  }

  .hero-download .header-store-buttons {
    gap: 12px;
  }

  .hero-download .store-button.store-button-art,
  .hero-download .store-button.store-button-art .store-art {
    width: 204px;
    min-width: 204px;
    height: 74px;
    min-height: 74px;
  }

  .hero-download .store-button.store-button-art {
    flex: 0 0 204px;
  }

}

.hero-download .store-button.store-button-art {
  overflow: hidden;
  border-radius: 16px;
}

.hero-download .store-button.store-button-art .store-art {
  -webkit-clip-path: inset(2px 1px 3px round 16px);
  clip-path: inset(2px 1px 3px round 16px);
}

.age-rating-badge {
  position: absolute;
  top: clamp(18px, 2.8vh, 30px);
  bottom: auto;
  left: clamp(18px, 2.6vw, 46px);
  z-index: 26;
  display: block;
  width: 72px;
  height: auto;
  image-rendering: auto;
  filter: drop-shadow(4px 5px 0 rgba(31, 22, 14, .22));
}

/* The community rail stays available but no longer dominates the hero art. */
.social-rail {
  top: 47%;
  right: clamp(10px, 1.5vw, 26px);
  gap: 3px;
}

.social-wechat-entry,
.social-button.social-button--taptap,
.social-button.social-button--bilibili,
.social-button.social-button--wechat {
  width: 92px;
  height: 103px;
}

.social-button.social-button--bilibili .social-icon img {
  width: 44px;
  height: 44px;
}

.social-button.social-button--wechat .social-icon img {
  width: 64px;
  height: 64px;
}

.wechat-qr-panel {
  right: calc(100% - 8px);
  width: 164px;
  padding: 11px;
}

.wechat-qr-panel img {
  width: 132px;
  height: 132px;
}

.wechat-qr-panel strong {
  font-size: 17px;
}

.legal-footer {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 10;
  max-height: none;
  padding: 20px clamp(18px, 4vw, 72px) 24px;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(39, 35, 27, .96), rgba(14, 19, 17, .98)),
    #121918;
  border-top: 0;
  box-shadow: inset 0 4px 0 rgba(84, 59, 35, .82);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.legal-footer__links {
  margin-bottom: 7px;
  font-size: 14px;
}

.legal-footer__advice {
  font-size: 12px;
  line-height: 1.6;
}

.legal-footer__license {
  margin-top: 5px !important;
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .hero-brand {
    top: 16px;
    width: min(390px, 62vw);
  }

  .hero-download {
    top: 47%;
    bottom: auto;
    left: 50%;
    display: grid !important;
    width: min(calc(100% - 24px), 420px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    transform: translateX(-50%);
  }

  .hero-download .header-qr {
    display: flex;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    padding: 5px 8px 5px 5px;
    aspect-ratio: 156 / 56;
    justify-content: center;
  }

  .hero-download .header-store-buttons {
    display: contents !important;
  }

  .hero-download .mini-game-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .hero-download .store-button.store-button-art,
  .hero-download .store-button.store-button-art .store-art {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 156 / 56;
  }

  .hero-download .store-button.store-button-art {
    flex: none !important;
  }

  .age-rating-badge {
    top: 14px;
    bottom: auto;
    left: 10px;
    width: 58px;
  }

  .social-rail {
    top: 45%;
    right: 5px;
    gap: 1px;
  }

  .social-wechat-entry,
  .social-button.social-button--taptap,
  .social-button.social-button--bilibili,
  .social-button.social-button--wechat {
    width: 78px;
    height: 88px;
  }

  .social-button.social-button--bilibili .social-icon img {
    width: 38px;
    height: 38px;
  }

  .social-button.social-button--wechat .social-icon img {
    width: 54px;
    height: 54px;
  }

  .wechat-qr-panel {
    right: calc(100% - 6px);
    width: 148px;
    padding: 10px;
  }

  .wechat-qr-panel img {
    width: 118px;
    height: 118px;
  }

  .legal-footer {
    max-height: none;
    padding: 16px 12px 20px;
    overflow: visible;
  }
}

@media (max-width: 560px) {
  .hero-parallax {
    min-height: 620px;
  }

  .hero-brand {
    top: 14px;
    width: min(310px, 68vw);
  }

  .hero-download {
    top: 48%;
    bottom: auto;
    width: min(calc(100% - 20px), 350px);
    gap: 6px;
  }

  .hero-download .mini-game-icon {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
  }

  .hero-download .header-qr strong {
    font-size: 12px;
  }

  .age-rating-badge {
    top: 10px;
    left: 8px;
    width: 50px;
  }

  .social-rail {
    top: 43%;
    right: 3px;
  }

  .social-wechat-entry,
  .social-button.social-button--taptap,
  .social-button.social-button--bilibili,
  .social-button.social-button--wechat {
    width: 70px;
    height: 79px;
  }

  .social-button.social-button--bilibili .social-icon img {
    width: 34px;
    height: 34px;
  }

  .social-button.social-button--wechat .social-icon img {
    width: 50px;
    height: 50px;
  }

  .wechat-qr-panel {
    right: calc(100% - 5px);
    width: 136px;
    padding: 9px;
  }

  .wechat-qr-panel img {
    width: 106px;
    height: 106px;
  }

  .wechat-qr-panel strong {
    font-size: 15px;
  }

  .legal-footer {
    max-height: none;
    padding: 14px 10px 18px;
    overflow: visible;
  }

  .legal-footer__license span:first-child,
  .legal-footer__license span:nth-child(2) {
    display: inline;
  }
}

/* Supplied final download artwork. The raster slices already contain the
   complete pixel frames, icons and labels, so no legacy chrome is layered on top. */
.hero-download.header-download {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero-download.header-download::before,
.hero-download.header-download::after {
  display: none;
}

.hero-download .header-qr {
  box-sizing: border-box;
  display: block;
  width: 138px;
  min-width: 138px;
  height: 154px;
  min-height: 154px;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  clip-path: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-download .download-qr-art {
  display: block;
  width: 138px;
  height: 154px;
  object-fit: contain;
  image-rendering: pixelated;
}

.hero-download .header-store-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-download .store-button.store-button-art,
.hero-download .store-button.store-button-art .store-art {
  width: 212px;
  min-width: 212px;
  height: 72px;
  min-height: 72px;
}

.hero-download .store-button.store-button-art {
  flex: 0 0 212px;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-download .store-button.store-button-art::before,
.hero-download .store-button.store-button-art::after {
  display: none;
}

.hero-download .store-button.store-button-art .store-art {
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
  -webkit-clip-path: none;
  clip-path: none;
}

@media (max-width: 900px) {
  .hero-download.header-download {
    display: grid !important;
    width: min(calc(100% - 24px), 430px);
    grid-template-columns: 122px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    row-gap: 0;
  }

  .hero-download .header-qr {
    width: 122px;
    min-width: 122px;
    height: auto;
    min-height: 0;
    aspect-ratio: 138 / 154;
  }

  .hero-download .download-qr-art {
    width: 100%;
    height: auto;
  }

  .hero-download .header-store-buttons {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
  }

  .hero-download .store-button.store-button-art,
  .hero-download .store-button.store-button-art .store-art {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 212 / 72;
  }

  .hero-download .store-button.store-button-art {
    flex: none !important;
  }
}

@media (max-width: 560px) {
  .hero-download.header-download {
    width: min(calc(100% - 18px), 350px);
    grid-template-columns: 102px minmax(0, 1fr);
    column-gap: 7px;
  }

  .hero-download .header-qr {
    width: 102px;
    min-width: 102px;
    height: auto;
    min-height: 0;
  }

  .hero-download .header-store-buttons {
    gap: 4px;
  }
}

/* Improve the legal block's desktop legibility without crowding the compact
   mobile footer or the community entrances on the right. */
@media (min-width: 901px) {
  .legal-footer__links {
    margin-bottom: 5px;
    font-size: 17px;
    line-height: 1.35;
  }

  .legal-footer__advice {
    font-size: 14px;
    line-height: 1.5;
  }

  .legal-footer__license {
    margin-top: 4px !important;
    font-size: 13px;
    line-height: 1.45;
  }
}

/* Keep the launch page as one complete scene. Legal and publishing details
   sit directly inside the lower curtain instead of extending document flow. */
html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  position: relative;
  min-height: 100dvh;
}

main {
  height: 100%;
  min-height: 100%;
}

.hero-parallax {
  height: 100dvh;
  min-height: 0;
}

.legal-footer {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  z-index: 10;
  max-height: none;
  padding: 10px clamp(18px, 4vw, 72px) 12px;
  overflow: visible;
  background: transparent;
  border-top: 0;
  box-shadow: none;
  pointer-events: none;
}

.legal-footer a {
  pointer-events: auto;
}

@media (max-width: 900px) {
  .legal-footer {
    bottom: 10px;
    padding: 6px 10px 8px;
  }
}

@media (max-width: 560px) {
  .legal-footer {
    bottom: 4px;
    padding: 4px 8px 6px;
  }

  .legal-footer__license span:first-child,
  .legal-footer__license span:nth-child(2) {
    display: inline;
  }
}

/* High-resolution scan-code layer, kept last so legacy responsive rules
   cannot shrink it back to the low-resolution plaque dimensions. */
.hero-download .header-qr {
  position: relative;
  width: 212px !important;
  min-width: 212px !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 138 / 154 !important;
}

.hero-download .download-qr-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  image-rendering: pixelated;
}

.hero-download .download-qr-code {
  position: absolute;
  top: 3.9%;
  left: 5.8%;
  z-index: 2;
  display: block;
  width: 88.4%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  image-rendering: auto;
}

@media (max-width: 900px) {
  .hero-download.header-download {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .hero-download .header-qr {
    width: 140px !important;
    min-width: 140px !important;
  }
}

@media (max-width: 560px) {
  .hero-download.header-download {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .hero-download .header-qr {
    width: 120px !important;
    min-width: 120px !important;
  }
}

/* Preserve the original 430px machine-readable mini-program code. The small
   supplied plaque is only the decorative frame and download label. */
.hero-download .header-qr {
  position: relative;
  width: 212px !important;
  min-width: 212px !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 138 / 154 !important;
}

.hero-download .download-qr-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  image-rendering: pixelated;
}

.hero-download .download-qr-code {
  position: absolute;
  top: 3.9%;
  left: 5.8%;
  z-index: 2;
  display: block;
  width: 88.4%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  image-rendering: auto;
}

@media (max-width: 900px) {
  .hero-download.header-download {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .hero-download .header-qr {
    width: 140px !important;
    min-width: 140px !important;
  }
}

@media (max-width: 560px) {
  .hero-download.header-download {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .hero-download .header-qr {
    width: 120px !important;
    min-width: 120px !important;
  }
}

@media (max-height: 720px) and (min-width: 901px) {
  .social-rail {
    top: 45%;
    transform: translateY(-50%) scale(.92);
  }

  .hero-brand {
    width: min(440px, 38vw);
  }
}

/* Circular mini-game code with a compact Three Kingdoms pixel plaque. */
.hero-download .header-qr {
  width: 148px;
  min-width: 148px;
  height: 148px;
  min-height: 148px;
  padding: 7px 8px 8px;
  gap: 4px;
  aspect-ratio: 1;
  flex-direction: column;
  justify-self: center;
  color: #fff0b8;
  background: linear-gradient(180deg, rgba(63, 70, 75, .78), rgba(34, 42, 45, .84));
  border: 2px solid rgba(218, 185, 105, .78);
  box-shadow:
    inset 0 0 0 2px rgba(32, 38, 41, .62),
    3px 3px 0 rgba(29, 22, 17, .28);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
}

.hero-download .mini-game-icon {
  width: 108px;
  height: 108px;
  flex: 0 0 108px;
  overflow: hidden;
  background: #fff;
  border: 2px solid rgba(248, 226, 164, .92);
  border-radius: 50%;
  box-shadow:
    0 0 0 2px rgba(35, 42, 45, .76),
    0 2px 0 rgba(30, 22, 16, .32);
}

.hero-download .mini-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.hero-download .header-qr strong {
  display: block;
  color: #fff0b8;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .04em;
  white-space: nowrap;
  text-shadow: 2px 2px 0 rgba(29, 22, 17, .54);
}

.hero-download .header-qr::before,
.hero-download .header-qr::after {
  display: none;
}

@media (max-width: 900px) {
  .hero-download .header-qr {
    width: 128px;
    min-width: 128px;
    height: 136px;
    min-height: 136px;
    padding: 6px 7px 7px;
  }

  .hero-download .mini-game-icon {
    width: 98px;
    height: 98px;
    flex-basis: 98px;
  }

  .hero-download .header-qr strong {
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  .hero-download .header-qr {
    width: 112px;
    min-width: 112px;
    height: 122px;
    min-height: 122px;
    padding: 5px 6px 6px;
  }

  .hero-download .mini-game-icon {
    width: 84px;
    height: 84px;
    flex-basis: 84px;
  }

  .hero-download .header-qr strong {
    max-width: none;
    font-size: 12px;
    white-space: nowrap;
  }
}

/* Unified, brand-correct platform download buttons. */
.hero-download :is(.store-button--taptap, .store-button--android, .store-button--appstore) {
  box-sizing: border-box;
  display: flex;
  width: 204px;
  min-width: 204px;
  height: 74px;
  min-height: 74px;
  flex: 0 0 204px;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  padding: 0 14px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, rgba(27, 35, 32, .92), rgba(17, 24, 22, .94));
  border: 2px solid rgba(255, 244, 200, .38);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 4px 12px rgba(31, 22, 14, .22);
  text-decoration: none;
  backdrop-filter: blur(2px);
}

.hero-download :is(.store-button--taptap, .store-button--android, .store-button--appstore):hover,
.hero-download :is(.store-button--taptap, .store-button--android, .store-button--appstore):focus-visible {
  color: #fff;
  background: linear-gradient(180deg, rgba(39, 49, 45, .96), rgba(22, 30, 27, .97));
  border-color: rgba(255, 224, 132, .72);
  filter: none;
  transform: translateY(-2px);
}

.hero-download :is(.store-button--taptap, .store-button--android, .store-button--appstore):active {
  transform: translateY(1px) scale(.98);
}

.hero-download :is(.store-button--taptap, .store-button--android, .store-button--appstore) .store-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  padding: 0;
  overflow: hidden;
  place-items: center;
  border: 0;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.hero-download .store-button--taptap .store-icon {
  background: rgba(99, 107, 113, .58);
}

.hero-download .store-button--android .store-icon {
  background: rgba(99, 107, 113, .58);
}

.hero-download .store-button--appstore .store-icon {
  background: rgba(99, 107, 113, .58);
}

.hero-download :is(.store-button--taptap, .store-button--android, .store-button--appstore) .store-icon img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: none;
}

.hero-download .store-button--taptap .store-icon img {
  width: 48px;
  height: 48px;
  filter: grayscale(1) contrast(1.06);
  opacity: .82;
}

.hero-download .store-button--android .store-icon img,
.hero-download .store-button--appstore .store-icon img {
  filter: brightness(0) invert(1);
}

.hero-download :is(.store-button--taptap, .store-button--android, .store-button--appstore) .store-copy {
  display: block;
  min-width: 0;
  color: #fff;
  text-align: left;
}

.hero-download :is(.store-button--taptap, .store-button--android, .store-button--appstore) .store-copy strong {
  display: block;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-download :is(.store-button--taptap, .store-button--android, .store-button--appstore) .store-copy small {
  display: none;
}

@media (max-width: 900px) {
  .hero-download :is(.store-button--taptap, .store-button--android, .store-button--appstore) {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    flex: none;
    padding: 0 12px;
    aspect-ratio: 156 / 56;
  }

  .hero-download :is(.store-button--taptap, .store-button--android, .store-button--appstore) .store-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 11px;
  }

  .hero-download .store-button--taptap .store-icon img {
    width: 42px;
    height: 42px;
  }

  .hero-download :is(.store-button--android, .store-button--appstore) .store-icon img {
    width: 27px;
    height: 27px;
  }

  .hero-download :is(.store-button--taptap, .store-button--android, .store-button--appstore) .store-copy strong {
    font-size: 18px;
  }
}

@media (max-width: 560px) {
  .hero-download :is(.store-button--taptap, .store-button--android, .store-button--appstore) {
    gap: 8px;
    padding: 0 9px;
  }

  .hero-download :is(.store-button--taptap, .store-button--android, .store-button--appstore) .store-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 9px;
  }

  .hero-download .store-button--taptap .store-icon img {
    width: 36px;
    height: 36px;
  }

  .hero-download :is(.store-button--android, .store-button--appstore) .store-icon img {
    width: 23px;
    height: 23px;
  }

  .hero-download :is(.store-button--taptap, .store-button--android, .store-button--appstore) .store-copy strong {
    font-size: 16px;
  }
}

.hero-download .header-store-buttons :is(.store-button--taptap, .store-button--android, .store-button--appstore) {
  background: linear-gradient(180deg, rgba(71, 78, 83, .68), rgba(39, 44, 48, .74)) !important;
  border-color: rgba(184, 191, 196, .62) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 4px 12px rgba(20, 24, 27, .26);
  backdrop-filter: blur(5px) saturate(.8);
  -webkit-backdrop-filter: blur(5px) saturate(.8);
}

.hero-download .header-store-buttons :is(.store-button--taptap, .store-button--android, .store-button--appstore):hover,
.hero-download .header-store-buttons :is(.store-button--taptap, .store-button--android, .store-button--appstore):focus-visible {
  background: linear-gradient(180deg, rgba(91, 98, 103, .78), rgba(49, 55, 59, .82)) !important;
  border-color: rgba(213, 218, 221, .82) !important;
}

/* Pixel-era plaques echo the Three Kingdoms scene without changing the gray glass UI. */
.hero-download .header-store-buttons :is(.store-button--taptap, .store-button--android, .store-button--appstore) .store-icon {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background:
    linear-gradient(135deg, transparent 6px, rgba(62, 68, 72, .88) 0) top left,
    linear-gradient(225deg, transparent 6px, rgba(62, 68, 72, .88) 0) top right,
    linear-gradient(315deg, transparent 6px, rgba(62, 68, 72, .88) 0) bottom right,
    linear-gradient(45deg, transparent 6px, rgba(62, 68, 72, .88) 0) bottom left;
  background-size: 51% 51%;
  background-repeat: no-repeat;
  box-shadow:
    inset 0 0 0 2px rgba(220, 190, 121, .68),
    inset 0 0 0 4px rgba(34, 39, 42, .52),
    3px 3px 0 rgba(29, 23, 17, .28);
}

.hero-download .header-store-buttons :is(.store-button--taptap, .store-button--android, .store-button--appstore) .store-icon::after {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(244, 224, 171, .18);
  content: "";
  pointer-events: none;
}

.hero-download .header-store-buttons :is(.store-button--taptap, .store-button--android, .store-button--appstore) .store-icon img,
.hero-download .header-store-buttons .store-button--taptap .store-icon img,
.hero-download .header-store-buttons :is(.store-button--android, .store-button--appstore) .store-icon img {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 1;
  filter: none;
  image-rendering: pixelated;
}

.hero-download .header-store-buttons .store-button--appstore .store-icon img {
  box-sizing: border-box;
  width: 32px !important;
  height: 32px !important;
  padding: 0;
  filter: none;
  image-rendering: auto;
}

.hero-download .header-store-buttons .store-button--appstore .store-icon {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px;
  min-height: 48px;
  flex: 0 0 48px !important;
  padding: 0 !important;
}

.hero-download .header-store-buttons :is(.store-button--taptap, .store-button--android, .store-button--appstore) .store-copy strong {
  text-shadow: 2px 2px 0 rgba(28, 22, 17, .48);
}

@media (max-width: 560px) {
  .hero-download .header-store-buttons :is(.store-button--taptap, .store-button--android, .store-button--appstore) .store-icon img,
  .hero-download .header-store-buttons .store-button--taptap .store-icon img,
  .hero-download .header-store-buttons :is(.store-button--android, .store-button--appstore) .store-icon img {
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Final precedence for the approved supplied slices. */
.hero-download.header-download {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.hero-download.header-download::before,
.hero-download.header-download::after,
.hero-download .header-qr::before,
.hero-download .header-qr::after {
  display: none !important;
}

.hero-download .header-qr {
  box-sizing: border-box;
  display: block;
  width: 138px !important;
  min-width: 138px !important;
  height: 154px !important;
  min-height: 154px !important;
  padding: 0 !important;
  overflow: visible;
  aspect-ratio: 138 / 154 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  clip-path: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.hero-download .download-qr-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.hero-download .header-store-buttons {
  display: flex !important;
  align-items: center;
  gap: 12px;
}

.hero-download .header-store-buttons .store-button.store-button-art,
.hero-download .header-store-buttons .store-button.store-button-art .store-art {
  width: 212px !important;
  min-width: 212px !important;
  height: 72px !important;
  min-height: 72px !important;
  aspect-ratio: 212 / 72 !important;
}

.hero-download .header-store-buttons .store-button.store-button-art,
.hero-download .header-store-buttons .store-button.store-button-art:hover,
.hero-download .header-store-buttons .store-button.store-button-art:focus-visible {
  flex: 0 0 212px !important;
  padding: 0 !important;
  overflow: visible;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.hero-download .header-store-buttons .store-button.store-button-art::before,
.hero-download .header-store-buttons .store-button.store-button-art::after {
  display: none !important;
}

.hero-download .header-store-buttons .store-button.store-button-art .store-art {
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
  -webkit-clip-path: none !important;
  clip-path: none !important;
}

@media (max-width: 900px) {
  .hero-download.header-download {
    display: grid !important;
    width: min(calc(100% - 24px), 430px);
    grid-template-columns: minmax(0, 166fr) minmax(0, 177fr);
    align-items: center;
    column-gap: 7px;
    row-gap: 0;
  }

  .hero-download .header-qr {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .hero-download .download-qr-art {
    height: auto;
  }

  .hero-download .header-store-buttons {
    flex-direction: column;
    gap: 2px;
  }

  .hero-download .header-store-buttons .store-button.store-button-art,
  .hero-download .header-store-buttons .store-button.store-button-art .store-art {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .hero-download .header-store-buttons .store-button.store-button-art,
  .hero-download .header-store-buttons .store-button.store-button-art:hover,
  .hero-download .header-store-buttons .store-button.store-button-art:focus-visible {
    flex: none !important;
  }
}

@media (max-width: 560px) {
  .hero-download.header-download {
    width: min(calc(100% - 18px), 350px);
    grid-template-columns: minmax(0, 166fr) minmax(0, 177fr);
    column-gap: 7px;
  }

  .hero-download .header-qr {
    width: 100% !important;
    min-width: 0 !important;
  }

  .hero-download .header-store-buttons {
    gap: 2px;
  }
}

/* Download addresses are not live yet. Android and iOS use an alpha-masked
   gray veil, while TapTap stays in full color but is rendered as non-link UI. */
.hero-download .store-button.is-pending {
  cursor: default;
}

.hero-download .store-button--android.is-pending {
  --disabled-art-mask: url("../assets/img/download-ui/android-download.png");
}

.hero-download .store-button--appstore.is-pending {
  --disabled-art-mask: url("../assets/img/download-ui/ios-download.png");
}

.hero-download :is(.store-button--android, .store-button--appstore).is-pending .store-art {
  filter: grayscale(1) brightness(.74) contrast(.86);
  opacity: .82;
}

.hero-download .header-store-buttons :is(.store-button--android, .store-button--appstore).is-pending::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block !important;
  background: rgba(106, 111, 114, .42);
  content: "";
  pointer-events: none;
  -webkit-mask-image: var(--disabled-art-mask);
  mask-image: var(--disabled-art-mask);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.legal-footer__intro {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: min(calc(100vw - 360px), 1200px);
  margin: 0;
  color: rgba(245, 231, 197, .86);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .72);
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .legal-footer {
    padding: 2px 8px 3px;
  }

  .legal-footer__links {
    margin-bottom: 0;
  }

  .legal-footer__advice {
    line-height: 1.35;
  }

  .legal-footer__license {
    margin-top: 1px !important;
    line-height: 1.3;
  }

  .legal-footer__intro {
    position: static;
    display: block;
    width: auto;
    margin: 2px 0 0;
    font-size: 9px;
    line-height: 1.35;
    letter-spacing: -.1px;
    white-space: nowrap;
    transform: none;
  }
}

@media (max-width: 360px) {
  .legal-footer__intro {
    white-space: normal;
  }
}
