/* Shared styles for the home page and the category pages. Games carry their own styles. */
:root { --bg: #f7f6f2; --fg: #1d1d1b; --muted: #6b6a65; --panel: #ffffff; --line: #e6e4dd; --accent: #e8892b; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #151514; --fg: #ecebe6; --muted: #9a9993; --panel: #1d1d1b; --line: #2c2c29; --accent: #f09a42; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; padding: 48px 16px;
  background: var(--bg); color: var(--fg);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 960px; margin: 0 auto; }
h1 { font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -0.02em; margin: 0 0 .25rem; }
.lede { color: var(--muted); margin: 0 0 2rem; }
.back { display: inline-block; color: var(--muted); text-decoration: none; margin-bottom: 1rem; }
.back:hover { color: var(--accent); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tile {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
a.tile:hover, a.tile:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 28px #0002; border-color: var(--accent); }
.tile svg { display: block; width: 100%; height: auto; }
.tile-body { padding: .9rem 1rem 1.1rem; }
.tile h2 { font-size: 1.15rem; margin: 0 0 .2rem; letter-spacing: -0.01em; }
.tile p { color: var(--muted); font-size: .92rem; margin: 0; }
.tile .count { color: var(--accent); font-size: .85rem; font-weight: 600; margin-top: .4rem; }
.empty { color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; padding: 2rem 1rem; text-align: center; }
