:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #17161d;
  color: #eee;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px;
}

.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 16px;
  margin-top: 32px;
}

.banner
{
  border-radius: 10px;
}

.game-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #363b48;
  /* border-radius: 10px; */
  background: linear-gradient(135deg, #3e395b, #242730);
  color: #fff;
  text-decoration: none;
}

.game-card:hover,
.game-card:focus-visible {
  outline: 2px solid #5216c2;
  outline-offset: 3px;
}

.game-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* A translucent strip keeps text readable over any thumbnail. */
.game-card-caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 10px 12px;
  background: rgb(2, 2, 2, 0.5);
}

.game-card h2 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.game-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 4px 0 0;
  color: #ddd;
  font-size: 0.75rem;
  line-height: 1.4;
}
