:root {
  color-scheme: light;
  --bg: #efe6d6;
  --surface: #f9f4ea;
  --border: #dccbb0;
  --text: #2b2119;
  --muted: #76634f;
  --accent: #a6461f;
  --focus: #1f6feb;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #17130f;
    --surface: #221c17;
    --border: #3d332a;
    --text: #f1e7d8;
    --muted: #b3a08b;
    --accent: #e0754a;
    --focus: #6ea8ff;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  min-height: 100dvh;
}

.hub { max-width: 760px; margin: 0 auto; padding: 48px 16px 32px; }

.hub-header h1 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(2.2rem, 6vw, 3rem);
  color: var(--accent);
}
.hub-header p { margin: 6px 0 0; color: var(--muted); }

.game-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }

.game-card {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.game-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 10px 30px rgba(60, 40, 20, 0.12); }
.game-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.game-card img { flex: none; border-radius: 18px; }

.game-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.game-title { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-size: 1.6rem; font-weight: 700; }
.game-sub { color: var(--muted); font-size: 0.95rem; }
.game-desc { margin-top: 6px; }
.game-play { margin-top: 10px; font-weight: 700; color: var(--accent); }

.hub-footer { margin-top: 40px; color: var(--muted); font-size: 0.9rem; text-align: center; }

@media (max-width: 480px) {
  .game-card { flex-direction: column; align-items: flex-start; }
  .game-card img { width: 72px; height: 72px; }
}

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