:root {
  --bg: #f4f1ff;
  --text: #1d1640;
  --muted: #6b6390;
  --hero: #5b3cc4;
  --tile-text: #ffffff;
  --radius: 24px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15112b;
    --text: #f1edff;
    --muted: #a69fcc;
    --hero: #3d2891;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.4 ui-rounded, "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: env(safe-area-inset-bottom);
}

.hero {
  background: var(--hero);
  color: #fff;
  text-align: center;
  padding: calc(28px + env(safe-area-inset-top)) 16px 36px;
  border-radius: 0 0 var(--radius) var(--radius);
}
.hero h1 { margin: 0; font-size: clamp(2rem, 8vw, 3rem); }
.hero p { margin: 6px 0 0; opacity: .85; font-size: 1.15rem; }

main { max-width: 900px; margin: 0 auto; padding: 20px 16px; }

.games {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--tile);
  color: var(--tile-text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 6px 0 rgb(0 0 0 / .18);
  transition: transform .1s ease, box-shadow .1s ease;
  touch-action: manipulation;
  user-select: none;
}
.tile .icon { font-size: clamp(2.6rem, 14vw, 3.6rem); line-height: 1; }
a.tile:active { transform: translateY(4px); box-shadow: 0 2px 0 rgb(0 0 0 / .18); }
a.tile:focus-visible { outline: 4px solid var(--text); outline-offset: 3px; }
.tile.soon { opacity: .45; filter: grayscale(.4); }
.tile.soon .label::after { content: "bientôt"; display: block; font-size: .75rem; font-weight: 600; text-align: center; }

.note { color: var(--muted); text-align: center; }
.foot { text-align: center; padding: 8px 16px 24px; }
.install {
  font: inherit; font-weight: 700;
  padding: 12px 20px; border-radius: 999px; border: 0;
  background: var(--hero); color: #fff;
}
