:root {
  --bg: #121110;
  --panel: #1c1a18;
  --ink: #ece6dc;
  --muted: #a39a8c;
  --accent: #d9a55b;
  --line: #2e2a26;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4efe6;
    --panel: #fffaf2;
    --ink: #221e1a;
    --muted: #6b6257;
    --accent: #9a6420;
    --line: #e2d9cb;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
header, main, footer {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
header { padding-top: 48px; padding-bottom: 24px; }
header h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: normal;
  letter-spacing: 0.01em;
}
header p { margin: 8px 0 0; color: var(--muted); max-width: 52ch; }

.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 24px;
  padding-bottom: 48px;
  flex: 1;
}
.card {
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover, .card:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card .pic { aspect-ratio: 16 / 9; overflow: hidden; background: var(--line); }
.card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s ease;
}
.card:hover img { transform: scale(1.04); }
.card .text { padding: 14px 16px 18px; }
.card h2 { margin: 0 0 6px; font-size: 1.2rem; font-weight: normal; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .go { display: inline-block; margin-top: 12px; color: var(--accent); font-size: 0.9rem; }

footer { padding-bottom: 32px; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) {
  .card, .card img { transition: none; }
  .card:hover { transform: none; }
  .card:hover img { transform: none; }
}
