:root{
  --bg:#0b1020;
  --panel:#10162a;
  --text:#e6ebff;
  --muted:#a7b0c6;
  --accent:#8fb7ff;
  --shadow:0 12px 40px rgba(0,0,0,.35);
  --radius:16px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 65% 35%, #18224a 0%, var(--bg) 60%),
    radial-gradient(700px 300px at 12% 88%, rgba(95,135,255,.15), transparent 70%),
    radial-gradient(600px 260px at 90% 10%, rgba(170,120,255,.12), transparent 70%);
  display:flex; flex-direction:column; align-items:center; padding:40px 20px;
}
.header {
  text-align: center;
  margin-bottom: 40px;
}
.header h1 {
  font-size: 32px;
  margin: 0 0 8px 0;
}
.header p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 900px;
}
.game-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, #0f1430, #0b1020);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 45px rgba(0,0,0,.4);
  border-color: rgba(255, 255, 255, .12);
}
.game-card:hover .game-card-thumb {
  filter: brightness(1.25);
}
.game-card-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background-color: var(--bg);
  /* Add a line to separate image from content */
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  /* Make the dark image slightly brighter */
  filter: brightness(1.1);
  transition: filter .3s ease;
}
.game-card-content {
  padding: 20px;
}
.game-card h2 {
  font-size: 20px;
  margin: 0 0 8px 0;
  color: var(--accent);
}
.game-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.back-link {
    position: absolute;
    top: 20px;
    left: 20px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
}
.back-link:hover {
    color: var(--text);
}