.section-games .game-showcase-featured,
.beta-cards-grid .beta-merge-featured {
  border-color: color-mix(in srgb, var(--brand-red) 44%, var(--line));
}

.game-showcase-row {
  position: relative;
  display: grid;
  min-inline-size: 0;
}

.game-showcase-art {
  display: block;
  inline-size: min(34vw, 9.5rem);
  margin: .85rem .75rem 1rem;
  justify-self: end;
  pointer-events: none;
}

.game-showcase-row--art-left .game-showcase-art {
  justify-self: start;
}

.game-showcase-decoration {
  display: block;
  inline-size: 100%;
  block-size: auto;
  filter: drop-shadow(0 .6rem 1rem rgb(32 12 41 / 17%));
}

@media (min-width: 64rem) {
  .section-games .game-showcase {
    --game-art-width: clamp(11rem, 20vw, 22rem);
    --game-art-gap: clamp(1.25rem, 2.1vw, 2.25rem);
    --game-edge-gap: calc(var(--game-art-gap) + .5rem);
    inline-size: min(100%, calc(100vw - 2 * (var(--game-art-width) + var(--game-art-gap) + var(--game-edge-gap))));
    margin-inline: auto;
  }

  .game-showcase-art {
    --clip-toward-card: calc(.25rem - var(--game-art-gap));
    --clip-toward-edge: calc(.5rem - var(--game-edge-gap));
    position: absolute;
    top: 50%;
    left: calc(100% + var(--game-art-gap));
    inline-size: var(--game-art-width);
    margin: 0;
    transform: translateY(-50%);
    /* Leave vertical room for parallax and keep the rotated art in its own gutter. */
    clip-path: inset(-14rem var(--clip-toward-edge) -14rem var(--clip-toward-card));
  }

  .game-showcase-row--art-left .game-showcase-art {
    right: calc(100% + var(--game-art-gap));
    left: auto;
    clip-path: inset(-14rem var(--clip-toward-card) -14rem var(--clip-toward-edge));
  }

  .game-showcase-decoration {
    inline-size: 107.5%;
    max-inline-size: none;
    margin-inline: -3.75%;
  }
}

.seed-bloom-art {
  display: block;
  inline-size: min(100% - 2rem, 69rem);
  margin: 0 auto 2rem;
}

.seed-bloom-art img,
.game-page-cover img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  border-radius: 1.25rem;
}

@media (max-width: 580px) {
  .seed-bloom-art {
    inline-size: min(100% - 1.5rem, 24rem);
    margin-block-end: 1.25rem;
  }
}

.merge-guide {
  inline-size: min(100% - 2rem, max(46rem, 74vw), 70rem);
  margin-inline: auto;
}

.game-page-cover {
  display: block;
  inline-size: min(100% - 1rem, 69rem);
  margin: 0 auto clamp(1.25rem, 3vw, 2rem);
}

.merge-guide-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1.5rem;
  align-items: start;
}

.merge-guide table {
  inline-size: 100%;
  border-collapse: collapse;
}

.merge-guide th,
.merge-guide td {
  padding: .6rem .5rem;
  border-block-end: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

.merge-guide th {
  inline-size: 38%;
}

.merge-screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 16rem));
  gap: 1rem;
  margin-block-start: 1.25rem;
}

.merge-screenshots figure {
  margin: 0;
}

.merge-screenshots img,
.merge-screenshots video {
  display: block;
  inline-size: 100%;
  block-size: auto;
  border-radius: .875rem;
  background: #0d0f13;
}

.merge-screenshots figcaption {
  margin-block-start: .5rem;
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.45;
}

.merge-screenshots-play {
  margin-block-start: 1.5rem;
}
