/* CSS proposal for all individual Slot Games using the game template.
   Scoped to body.single-game article.type-game, as observed on the live site.
   Place after the current theme/custom CSS. No HTML changes required.
   Inspected against the live DOM; visual testing is still required. */

body.single-game article.type-game > header {
  padding-top: 20px;
  padding-bottom: 8px;
  gap: 20px;
}

body.single-game article.type-game > header .entry-title {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

body.single-game article.type-game > header .text-star {
  padding: 8px 0;
}

body.single-game article.type-game > header .rating-stars > svg {
  width: 24px;
  height: 24px;
}

body.single-game article.type-game > header .rating-stars > span {
  color: #596575;
  font-size: 14px;
}

body.single-game article.type-game > div.grid {
  gap: 20px;
}

/* Restrict the surface styling to the overview's existing cards. */
body.single-game article.type-game > div.grid > .border {
  border: 1px solid #e3e7ec;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgb(20 32 48 / 6%);
  min-width: 0;
}

body.single-game article.type-game > div.grid > .border-success {
  border-left: 3px solid #36936a;
}

body.single-game article.type-game > div.grid > .border-error {
  border-left: 3px solid #ce6666;
}

body.single-game article.type-game > div.grid > .border > span[data-str] {
  padding: 10px 16px;
  background: #f7f8fa;
  color: #27313e;
  border-bottom: 1px solid #edf0f3;
  border-radius: 9px 9px 0 0;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
}

/* Preserve the full artwork in the stacked mobile layout. */
body.single-game article.type-game > div.grid > div:first-child {
  align-self: start;
}

body.single-game article.type-game > div.grid > div:first-child > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 9px;
  box-shadow: none;
}

body.single-game article.type-game > div.grid > section > ul {
  padding: 14px 16px;
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.6;
}

body.single-game article.type-game > div.grid > section.border-info li {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 10px;
  margin-bottom: 0;
  padding: 6px 0;
  border-bottom: 1px solid #edf0f3;
}

body.single-game article.type-game > div.grid > section.border-info li:last-child {
  border-bottom: 0;
}

body.single-game article.type-game > div.grid > section.border-info li > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #596575;
}

body.single-game article.type-game > div.grid > section.border-info li > span:first-child > svg {
  flex-shrink: 0;
  margin: 0;
  color: #8a96a5;
  width: 13px;
  height: 13px;
}

/* Fix clipping of Theme, Release Date and other longer values. */
body.single-game article.type-game > div.grid > section.border-info li > span:last-child {
  height: auto;
  min-width: 0;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  font-weight: 600;
  color: #27313e;
}

body.single-game article.type-game > div.grid [data-str="game_where_button_text"] {
  font-size: 18px;
  line-height: 1.4;
  padding: 12px 16px;
  border-radius: 0 0 9px 9px;
}

/* Match the image to Game Info when they share a row.
   Cover preserves proportions and crops edges to fill the available area. */
@media (min-width: 1024px) {
  body.single-game article.type-game > div.grid > div:first-child {
    position: relative;
    align-self: stretch;
    overflow: hidden;
  }

  body.single-game article.type-game > div.grid > div:first-child > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 600px) {
  body.single-game article.type-game > header {
    padding-top: 16px;
  }

  body.single-game article.type-game > div.grid {
    gap: 16px;
  }
}
