body {
  color: #f3f3f3;
}

#jm-allpage {
  color: #161616;
}

.item-page .page-header h1[itemprop="headline"],
.item-page .page-header h2[itemprop="headline"] {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  overflow-wrap: anywhere;
  text-transform: none;
}

.item-page [itemprop="articleBody"] .hg-game-hero {
  display: grid;
  grid-template-areas: "table download";
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.item-page .hg-game-hero > table {
  grid-area: table;
  float: none !important;
  width: 100%;
  margin: 0;
}

.item-page .hg-download-panel {
  grid-area: download;
  min-width: 0;
}

.item-page .hg-download-panel > h2 {
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  text-transform: none;
}

.item-page #download {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 1.25rem;
}

.item-page #download > img {
  order: 10;
  width: auto;
  max-width: 100% !important;
  max-height: 160px;
  margin-top: 1rem;
  object-fit: contain;
}

.item-page #download p {
  max-width: 100%;
  margin: 0 0 0.75rem;
}

.item-page #download hr {
  width: 100%;
  margin: 0.75rem 0;
}

.item-page #download .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 52px;
  max-width: 100%;
  padding: 0.75rem 1.25rem;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

.item-page #download .btn:focus-visible {
  outline: 3px solid #161616;
  outline-offset: 3px;
}

.item-page .hg-game-logo {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.item-page .hg-game-logo img {
  width: auto;
  max-width: min(100%, 420px) !important;
  height: auto;
}

.item-page .screens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  clear: both;
}

.item-page .screens > h2 {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.item-page .screens > a {
  display: block;
  min-width: 0;
  margin: 0 !important;
}

.item-page .screens img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 899px) {
  .item-page [itemprop="articleBody"] .hg-game-hero {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .item-page .hg-download-panel {
    order: 1;
  }

  .item-page .hg-game-hero > table {
    order: 2;
  }
}

@media (max-width: 479px) {
  .item-page .page-header h1[itemprop="headline"],
  .item-page .page-header h2[itemprop="headline"] {
    font-size: 1.8rem;
    line-height: 1.18;
    margin-bottom: 1rem;
  }

  .item-page #download {
    padding: 1rem;
  }

  .item-page .screens {
    grid-template-columns: 1fr;
  }
}
