/* Official store art keeps the same visible height in all three languages. */
.store-pair {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.store-badge {
  --badge-height: 46px;
  --badge-ratio: 2.9916;
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  height: max(44px, var(--badge-height));
  width: calc(var(--badge-height) * var(--badge-ratio));
  max-width: 100%;
  border-radius: 8px;
  border: 0;
  background: transparent;
  vertical-align: middle;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.store-badge:focus-visible {
  outline: 3px solid #448bff;
  outline-offset: 4px;
}
.store-badge .store-badge-art {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  pointer-events: none;
}
.store-badge--android { --badge-ratio: 3.3571; --sheet-height: 1.4881; }
.store-badge--android .store-badge-art {
  position: absolute;
  width: auto;
  height: calc(var(--badge-height) * var(--sheet-height));
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.store-badge--ios:lang(zh) { --badge-ratio: 2.7213; }
.store-badge--android:lang(zh), .store-badge--android:lang(es) {
  --badge-ratio: 3.3646;
  --sheet-height: 1.3021;
}
.store-badge--ios:lang(zh) .store-badge-art { content: url("./badge-ios-zh.svg"); }
.store-badge--ios:lang(es) .store-badge-art { content: url("./badge-ios-es.svg"); }
.store-badge--android:lang(zh) .store-badge-art { content: url("./badge-android-zh.png"); }
.store-badge--android:lang(es) .store-badge-art { content: url("./badge-android-es.png"); }

.store-platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #dce3e9;
  border-radius: 12px;
  overflow: hidden;
}
.store-platform {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px clamp(12px, 1.5vw, 20px);
  background: var(--store-surface, #fff);
  color: var(--store-ink, #132b45);
}
.store-platform > div { min-width: 0; container-type: inline-size; }
.store-platform h3 { font-size: .9rem; line-height: 1.25; margin-bottom: 2px; }
.store-platform .store-badge { --badge-height: 44px; display: flex; }
@supports (width: 1cqi) {
  /* Both badges use the same height, limited by the wider Google Play artwork. */
  .store-platform .store-badge { --badge-height: min(50px, 29.7cqi); }
}
.store-platform .store-qr {
  display: block;
  box-sizing: border-box;
  flex: none;
  width: 90px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  padding: 4px;
  background: #fff;
}
.store-platform .store-qr[src$="qr-android-google-play.svg"] { padding: 8px; }
@media (max-width: 579px) {
  .store-platforms { grid-template-columns: minmax(0, 1fr); }
  .store-platform { padding: 5px 10px; column-gap: 6px; }
  .store-platform .store-qr { width: 90px; }
}
@media (max-width: 600px) {
  .store-pair { column-gap: 12px; }
  .store-badge { --badge-height: 42px; }
}
@media (max-width: 360px) {
  .store-badge { --badge-height: 40px; }
}
