.game-hub {
  --hub-background: #171316;
  --hub-text: #fff8f4;
  --hub-muted: #cfc2c7;
  --hub-border: #55404a;
  --hub-accent: #ff859c;
  --hub-button: #ff9caf;
  --hub-dark: #2d101c;
  color: var(--hub-text);
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 68px) clamp(16px, 5vw, 64px) 70px;
}

.game-hub [hidden] {
  display: none;
}

.game-hub__heading {
  margin: 0 0 clamp(18px, 3vw, 34px);
  border-left: 4px solid var(--hub-accent);
  padding-left: clamp(11px, 2vw, 22px);
}

.game-hub__heading h1 {
  margin: 0;
  font: 700 clamp(2rem, 5.6vw, 4.5rem)/1.04 Georgia, serif;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}

.game-hub__heading h1 span {
  color: var(--hub-accent);
}

.game-hub__controls {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(9rem, 1fr) auto auto;
  align-items: end;
  gap: 14px;
  border: 1px solid var(--hub-border);
  padding: 16px;
  border-radius: 10px;
  background: #21181e;
}

.game-hub__field {
  min-width: 0;
}

.game-hub__field > label {
  display: block;
  margin-bottom: 6px;
  color: var(--hub-text);
  font-size: .875rem;
  font-weight: 700;
}

.game-hub__search {
  position: relative;
}

.game-hub__search::before {
  position: absolute;
  top: 14px;
  left: 13px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--hub-accent);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.game-hub__search::after {
  position: absolute;
  top: 28px;
  left: 26px;
  width: 7px;
  height: 2px;
  background: var(--hub-accent);
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
}

.game-hub input[type="search"],
.game-hub select,
.game-hub__clear {
  min-height: 48px;
  border: 1px solid #8c6777;
  border-radius: 6px;
  color: var(--hub-text);
  background: #141114;
  font: inherit;
}

.game-hub input[type="search"],
.game-hub select {
  box-sizing: border-box;
  width: 100%;
  padding: 6px 10px;
  font-size: 1rem;
  color-scheme: dark;
}

.game-hub input[type="search"] {
  padding-left: 40px;
}

.game-hub input[type="search"]::placeholder {
  color: #bdacb5;
  opacity: 1;
}

.game-hub select,
.game-hub__online-filter,
.game-hub__clear {
  cursor: pointer;
}

.game-hub__online-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 4px;
  font-weight: 700;
}

.game-hub__online-filter input {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--hub-accent);
}

.game-hub__clear {
  padding: 6px 12px;
  font-size: .925rem;
  font-weight: 700;
}

.game-hub__clear:hover {
  background: #3b2631;
}

.game-hub__status {
  margin: 17px 0 12px;
  color: var(--hub-muted);
  font-size: .9375rem;
  font-weight: 700;
}

.game-hub__empty {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--hub-border);
  border-radius: 8px;
  background: var(--hub-background);
}

.game-hub__catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-hub__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--hub-border);
  border-radius: 9px;
  background: var(--hub-background);
}

.game-hub__card:hover,
.game-hub__card:focus-within {
  border-color: var(--hub-accent);
}

.game-hub__metadata {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-bottom: 8px;
  font-size: .8125rem;
  font-weight: 700;
}

.game-hub__category {
  color: var(--hub-muted);
}

.game-hub__online-label {
  padding: 3px 7px;
  border: 1px solid #9f6b81;
  border-radius: 4px;
  color: #ffc5d4;
}

.game-hub__title {
  margin: 0;
  font: 700 1.375rem/1.2 Georgia, serif;
  overflow-wrap: anywhere;
}

.game-hub__description {
  margin: 7px 0 15px;
  color: var(--hub-muted);
  font-size: .9375rem;
  line-height: 1.45;
}

.game-hub .game-hub__play {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  align-self: flex-start;
  min-height: 46px;
  margin-top: auto;
  padding: 6px 13px;
  border-radius: 6px;
  background: var(--hub-button);
  color: var(--hub-dark);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.game-hub .game-hub__play:hover {
  background: #ffc1cd;
}

.game-hub__play span {
  font-size: 1.125rem;
}

.game-hub :is(a, button, input, select):focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 870px) {
  .game-hub__catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-hub__controls {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 8px 12px;
  }

  .game-hub__clear {
    justify-self: start;
  }
}

@media (max-width: 600px) {
  .game-hub__catalog {
    grid-template-columns: minmax(0, 1fr);
  }

  .game-hub__controls {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 11px;
  }

  .game-hub__field {
    grid-column: 1 / -1;
  }

  .game-hub__card {
    padding: 13px;
  }
}
