/* the front page: the games and nothing else */
.home-head { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.home-head h1 { font: 400 40px/1 var(--pixel); letter-spacing: 0.01em; }

.ftabs { display: flex; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 3px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-soft); }
.ftabs button { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 7px; color: var(--dim); font: 600 13px/1 var(--sans); transition: background 0.15s, color 0.15s; }
.ftabs button:hover { color: var(--text); }
.ftabs button.is-on { background: var(--surface-3); color: var(--text); }
.ftabs small { font: 500 11.5px/1 var(--sans); color: var(--faint); }

.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }

/* a game: its art on a tile tinted with the game's own colour, then the name and the facts */
.gcard { position: relative; display: grid; grid-template-rows: auto auto; border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-soft); transition: background 0.15s, box-shadow 0.15s; }
.gcard:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.gcard__stage { display: grid; place-items: center; aspect-ratio: 16 / 11; background: var(--surface-2); transition: background 0.15s; }
.gcard:hover .gcard__stage { background: var(--surface-3); }
.gcard__art { width: min(92px, 44%); height: auto; aspect-ratio: 1; }
.gcard__title { padding: 12px 14px 0; font: 650 15px/1.2 var(--sans); letter-spacing: -0.005em; color: var(--text); }
.gcard__meta { display: flex; justify-content: space-between; gap: 8px; padding: 6px 14px 13px; font: 500 12px/1 var(--sans); color: var(--faint); }
.gcard__tag { position: absolute; left: 10px; top: 10px; z-index: 2; padding: 4px 7px; border-radius: 5px; background: rgba(11, 13, 18, 0.7); color: var(--dim); font: 600 10.5px/1 var(--sans); font-style: normal; letter-spacing: 0.06em; }
.gcard__tag--new { color: var(--brand); }

@media (max-width: 640px) {
  .home-head h1 { font-size: 34px; }
  .gcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gcard__title { padding: 10px 12px 0; font-size: 14px; }
  .gcard__meta { padding: 5px 12px 12px; }
}
