/* ==========================================================================
   GAMES page: game cards (cover + info + store badges).
   Uses tokens from tokens.css only. Markup comes from js/games-page.js.
   ========================================================================== */

/* ---- Game cards ---- */
.game-list {
  display: grid;
  gap: var(--space-9);
  padding-block: var(--space-6) var(--space-9);
}

.game {
  display: grid;
  gap: var(--space-6);
  padding: var(--space-4);
}

/* No hover scale here: the card holds a playable game, it must not move */
.game.card--game:hover {
  transform: none;
}

.game__head {
  display: grid;
  gap: var(--space-5);
}

.game__cover {
  position: relative;
  width: 100%;
  max-width: 22rem;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: var(--hairline) solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--sky-top), var(--sky-mid) 60%, var(--sky-horizon));
}

.game__cover > svg,
.game__cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game__info {
  display: grid;
  justify-items: start;
  gap: var(--space-4);
}

.game__desc {
  font-size: var(--step-1);
  color: var(--ink-muted);
}

/* The badges' clear space sits outside the text column, so the visible badges line up */
.game__info .store-badges {
  margin-inline-start: calc(var(--badge-h) / -4);
}

@media (min-width: 860px) {
  .game-list {
    padding-top: var(--space-9);
  }

  .game {
    padding: var(--space-6);
  }

  /* Asymmetry: the cover breaks out of the card's top edge */
  .game__head {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: end;
    gap: var(--space-7);
  }

  .game__cover {
    max-width: none;
    margin-top: calc(var(--space-9) * -1);
    transform: rotate(-2deg);
  }

  .game__info {
    padding-bottom: var(--space-4);
  }
}

/* Cover art details (js/art.js coverSvg) */
.cover-stars {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: calc(var(--stars-opacity) * 0.7);
}

.cover-smoke {
  fill: none;
  stroke: var(--art-smoke);
  stroke-width: 18;
  stroke-linecap: round;
  opacity: 0.16;
}

.cover-trail {
  fill: none;
  stroke: var(--fire);
  stroke-width: 2.5;
  stroke-linecap: round;
}
