/* styles.css (Steam-like theme) */
:root {
  color-scheme: dark;

  --bg: #1b2838;
  --card: #171a21;
  --card2: #405163e6;

  --text: #c7d5e0;
  --muted: rgba(199,213,224,.75);

  --border: rgba(255,255,255,.10);
  --border2: rgba(255,255,255,.14);

  --accent: #1a9fff;     /* button/accent */
  --accent2: #5c7e10;    /* secondary button/accent */

  --shadow: 0 10px 34px rgba(0,0,0,.35);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 22px 18px; }

h1 { margin: 0 0 8px; font-size: 28px; font-weight: 700; }
h2 { margin: 0 0 10px; font-size: 18px; font-weight: 700; }

.muted { color: var(--muted); font-size: 13px; }

.err {
  color: #ffb4b4;
  background: rgba(255,0,0,.12);
  border: 1px solid rgba(255,0,0,.20);
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}

/* List spacing between games */
.list {
  display: flex;
  flex-direction: column;
  gap: 18px;                 /* padding between each game section */
  margin-top: 14px;
}

/* Main game card */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.section-title {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .2px;
  margin-bottom: 10px;
  color: var(--text);
}

.game-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  padding: 14px;
}

@media (max-width: 900px) {
  .game-card { grid-template-columns: 1fr; }
}

/* Game header image */
.game-header-img {
  border-radius: 10px;
  overflow: hidden;
  background: #0f141c;
  border: 1px solid var(--border2);
}

.game-header-img img {
  width: 100%;
  display: block;
}

/* Nested cards inside the main card */
.game-card .card {
  background: var(--card2);
  border-color: rgba(255,255,255,.10);
  box-shadow: none;
}

/* Key/value grid */
.small-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 12px;
  font-size: 14px;
  margin-top: 8px;
}

.k { color: var(--muted); }

/* About text */
.desc { line-height: 1.5; color: var(--text); }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(26,159,255,.14);
  border: 1px solid rgba(26,159,255,.22);
  color: var(--text);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 800px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

.shot {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border2);
  background: #0f141c;
}

.shot img { width: 100%; display: block; }

/* Trailer */
.video {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border2);
  background: #0f141c;
}
video { width: 100%; display: block; }

/* Reviews */
.review-summary {
  font-size: 13px;
  line-height: 1.4;
}

.score-accent {
  font-weight: 800;          /* bold */
  color: var(--accent);      /* accent colour */
}

/* Custom section */
.custom {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.10);
}
