/* The console menu: a strip of vehicles to filter by and the games, sized for a TV or a small screen. The page never
   scrolls; the vehicle strip and the row of games slide sideways when there are more than fit. */
html, body { height: 100%; }
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #10151f;
  color: #fff;
  font-family: Verdana, sans-serif;
  overflow: hidden;
  cursor: none;
}
.filters, .games { display: flex; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar, .games::-webkit-scrollbar { display: none; }

/* Vehicle filter strip */
.filters { flex: none; gap: 1.2vmin; padding: 3vmin 4vmin 1vmin; }
.vchip {
  flex: none;
  width: 15vmin;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6vmin;
  padding: .7vmin .7vmin .9vmin;
  font: inherit;
  color: inherit;
  background: #1b2233;
  border: .5vmin solid transparent;
  border-radius: 1.2vmin;
  outline: none;
  transition: transform .12s, border-color .12s, background-color .12s;
}
.vchip img, .vchip .all { width: 100%; aspect-ratio: 8 / 5; height: auto; border-radius: .7vmin; background: #e4e9f0; display: block; }
.vchip .all { display: grid; place-items: center; background: #2c3650; font-size: 3.4vmin; font-weight: bold; }
.vchip .vname { max-width: 100%; font-size: 1.9vmin; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vchip[aria-pressed="true"] { background: #2f6fed; }

/* Games */
.games {
  flex: 1;
  min-height: 0;
  gap: 2.5vmin;
  padding: 2vmin 4vmin 2.5vmin;
  justify-content: safe center;
}
.game {
  flex: 1 1 0;
  min-width: 28vmin;
  max-width: 75vmin;
  display: flex;
  flex-direction: column;
  background: #1b2233;
  color: inherit;
  text-decoration: none;
  border: .6vmin solid transparent;
  border-radius: 1.5vmin;
  overflow: hidden;
  outline: none;
  transition: transform .12s, border-color .12s;
}
.game[hidden] { display: none; }
.game .shot { flex: 1; min-height: 0; width: 100%; object-fit: cover; display: block; }
.game .label { padding: 1.6vmin 2vmin 2vmin; }
.game .head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6vmin 1.5vmin; }
.game .title { font-size: 3.6vmin; font-weight: bold; }
.game .players { background: #2c3650; padding: .4vmin 1.3vmin; border-radius: 2vmin; font-size: 1.9vmin; white-space: nowrap; }
.vehicles { list-style: none; display: flex; flex-wrap: wrap; align-content: flex-start; gap: .6vmin; padding: 0; margin: 1.4vmin 0 0; min-height: 9vmin; }
.vehicles li { width: 5.4vmin; border: .3vmin solid transparent; border-radius: .7vmin; overflow: hidden; }
.vehicles img { width: 100%; height: auto; display: block; background: #e4e9f0; }
.vehicles li.match { border-color: #ffd24a; }
.filtering .vehicles li:not(.match) { opacity: .35; }

.vchip:focus-visible, .game:focus-visible { border-color: #ffd24a; transform: scale(1.03); }
.hint { flex: none; margin: 0; padding: 0 4vmin 2.5vmin; text-align: center; font-size: 2.1vmin; color: rgba(255,255,255,.55); }
.filter-status[hidden] { display: none; }
.filter-text { color: #fff; }
