.mahjongwin-page .product-hero-copy {
  align-self: center;
}

.mahjongwin-page .mahjongwin-icon-wrap img {
  object-fit: cover;
}

.mahjongwin-page .mahjongwin-media-frame {
  display: grid;
  place-items: center;
  width: 100%;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 32px;
  background: var(--canvas);
  padding: 10px;
  box-shadow: 0 10px 0 var(--primary-deep);
}

.mahjongwin-page .mahjongwin-media-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: 22px;
  object-fit: contain;
  object-position: center;
}

.mahjongwin-page .phone-showcase {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mahjongwin-page .phone-showcase .phone-frame {
  aspect-ratio: auto;
  border-radius: 32px;
  padding: 10px;
}

.mahjongwin-page .phone-showcase .phone-frame img {
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: 22px;
  object-fit: contain;
  object-position: center;
}

.mahjongwin-page .mahjongwin-media-frame-hero {
  width: min(70%, 364px);
  justify-self: end;
  transform: rotate(2deg);
}

.mahjongwin-page .methodology-panel > .mahjongwin-media-frame {
  width: min(70%, 322px);
  justify-self: end;
}

.mahjongwin-page .methodology-cards .feature-card {
  display: grid;
  min-height: 200px;
  place-content: center start;
  gap: 12px;
}

.mahjongwin-page .methodology-cards .feature-card h3,
.mahjongwin-page .methodology-cards .feature-card p {
  margin-bottom: 0;
}

.mahjongwin-page .mahjongwin-media-frame-button {
  appearance: none;
  -webkit-appearance: none;
  cursor: zoom-in;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.mahjongwin-page .mahjongwin-media-frame-button:hover {
  transform: translateY(-3px);
}

.mahjongwin-page .mahjongwin-media-frame-button:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 5px;
}

html[lang^="zh"] .mahjongwin-page .app-name {
  font-family: var(--font-cjk);
  font-weight: 900;
}

@media (max-width: 1040px) {
  .mahjongwin-page .phone-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mahjongwin-page {
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    overflow-x: clip;
  }

  .mahjongwin-page .product-main,
  .mahjongwin-page .footer {
    flex: 0 0 auto;
  }

  .mahjongwin-page .footer {
    margin-bottom: 0;
  }

  .mahjongwin-page > .screenshot-lightbox[hidden] {
    display: none !important;
  }

  .mahjongwin-page .methodology-panel > .mahjongwin-media-frame {
    width: min(100%, 360px);
    justify-self: center;
  }

  .mahjongwin-page .mahjongwin-media-frame-hero {
    width: min(100%, 360px);
    justify-self: center;
    transform: none;
  }
}

@media (max-width: 820px) {
  .mahjongwin-page .phone-showcase {
    grid-template-columns: 1fr;
  }
}
