/* Spiele-Übersicht games.jupf.org — keine Abhängigkeiten, hell/dunkel nach Systemeinstellung */
:root {
  --bg: #f6f4ef;
  --card: #ffffff;
  --text: #1d1b16;
  --muted: #6a655a;
  --accent: #2f7d5b;
  --shadow: 0 2px 10px rgba(0, 0, 0, .08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17171a;
    --card: #232328;
    --text: #f1efe9;
    --muted: #a8a49a;
    --accent: #6cc59b;
    --shadow: 0 2px 10px rgba(0, 0, 0, .4);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 18px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: max(24px, env(safe-area-inset-top)) 16px 32px;
}
main { max-width: 760px; margin: 0 auto; }
h1 { font-size: 2rem; margin: 8px 0 24px; text-align: center; }
.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 20px;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  min-height: 200px;
  justify-content: center;
}
.tile:hover, .tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tile img { border-radius: 22px; }
.name { font-size: 1.4rem; font-weight: 700; }
.hint { color: var(--muted); font-size: 1rem; }
