/* Auswahlseite — plain, bold. Same family as Schach and Yukendo. */

:root {
  --paper: #f6f4ee;
  --paper-2: #fffefb;
  --ink: #1b1a18;
  --muted: #74705f;
  --line: #d9d4c5;
  --marker: #ffe24a;
  --marker-ink: #1b1a18;
  --red: #c62f22;
  --red-soft: #fbe3df;
  --radius: 14px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151513;
    --paper-2: #1e1d1a;
    --ink: #f3efe4;
    --muted: #9b9584;
    --line: #3a3832;
    --marker: #f5d530;
    --marker-ink: #151513;
    --red: #ff7a68;
    --red-soft: #46241f;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 16px 48px;
}

header { margin-bottom: 40px; }

h1 {
  margin: 0;
  font-size: clamp(56px, 12vw, 104px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

header p {
  margin: 14px 0 0;
  max-width: 34em;
  color: var(--muted);
  font-size: 20px;
}

.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.game {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--paper-2);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
  color: inherit;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}

.game img { width: 72px; height: 72px; margin-bottom: 6px; }

.game .name {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.game .text { color: var(--muted); flex: 1; }

.game .go {
  align-self: flex-start;
  margin-top: 6px;
  padding: 6px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
}

a.game:hover, a.game:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
  outline: none;
}

a.game:hover .go, a.game:focus-visible .go {
  background: var(--marker);
  color: var(--marker-ink);
  border-color: var(--marker-ink);
}

a.game:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }

.game.soon {
  justify-content: center;
  background: transparent;
  border: 3px dashed var(--line);
  box-shadow: none;
  color: var(--muted);
}

.game.soon .name { color: var(--muted); }

footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 24px 16px 32px;
  font-size: 15px;
  color: var(--muted);
}

footer a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
footer a:hover { background: var(--marker); color: var(--marker-ink); text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .game { transition: none; }
}

/* Impressum und Datenschutz */

.prose { max-width: 720px; }
.prose h1 { font-size: clamp(44px, 9vw, 72px); margin-bottom: 24px; }
.prose h2 { margin: 36px 0 8px; font-size: 22px; line-height: 1.25; }
.prose p { margin: 0 0 14px; }
.prose a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { background: var(--marker); color: var(--marker-ink); text-decoration: none; }
.prose code { font-size: .9em; }

.back { margin: 0 0 20px; font-weight: 700; }
.back a { text-decoration: none; }

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

.note {
  margin: 0 0 8px;
  padding: 16px 20px;
  background: var(--paper-2);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
}
.note p { margin: 0; }

.error {
  padding: 14px 18px;
  background: var(--red-soft);
  color: var(--red);
  border-radius: var(--radius);
  font-weight: 600;
}

.todo { background: var(--red-soft); color: var(--red); font-weight: 700; padding: 0 .25em; border-radius: 4px; }

footer a[aria-current="page"] { color: var(--ink); text-decoration: none; font-weight: 700; }
