/* Hub page: a grid of game cards. Each game keeps its own look inside its own folder.
   Colours come from variables so light and dark mode stay in one place. */
:root {
  --bg: #FFF6DC;
  --ink: #1A1A2E;
  --muted: #55556b;
  --card: #fff;
  --accent: #FFD23F;
  --pink: #FF4F9A;
  --shadow: #1A1A2E;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14141f;
    --ink: #f4f1e8;
    --muted: #b9b6c9;
    --card: #23233a;
    --shadow: #000;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-rounded, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  line-height: 1.4;
}
.hub {
  max-width: 880px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 16px 40px;
}
.hub-top { padding: 20px 0 24px; }
h1 { margin: 0 0 8px; font-size: clamp(2rem, 8vw, 3rem); line-height: 1.05; }
.tag { margin: 0; color: var(--muted); font-size: 1.05rem; max-width: 34em; }

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 44px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--shadow);
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease;
}
a.card:hover, a.card:focus-visible { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--shadow); }
a.card:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--shadow); }
a.card:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.art {
  display: grid;
  place-items: center;
  height: 120px;
  border-bottom: 3px solid var(--ink);
  font-size: 3rem;
  font-weight: 800;
}
.art-pink { background: var(--accent); }
.art-soon { background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(128,128,128,.15) 10px 20px); color: var(--muted); }
.meta { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.name { font-size: 1.25rem; font-weight: 800; }
.blurb { color: var(--muted); }
.tags { display: flex; gap: 6px; margin-top: 4px; }
.pill {
  font-size: .8rem;
  font-weight: 700;
  padding: 3px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--bg);
}
.soon { box-shadow: none; border-style: dashed; opacity: .8; }

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