body.eg-games-catalog {
  margin: 0;
  background: #101111;
  color: #f4f2ed;
  color-scheme: dark;
}

.games-directory {
  --games-ink: #f4f2ed;
  --games-muted: #aaa9a1;
  --games-accent: #f3b87e;
  --games-line: #ffffff1f;
  width: min(1420px, calc(100% - clamp(36px, 8vw, 116px)));
  margin-inline: auto;
  padding: clamp(8px, 2vw, 34px) 0 0;
  font-family: Outfit, system-ui, sans-serif;
  color: var(--games-ink);
}

.games-directory *, .games-directory *::before, .games-directory *::after { box-sizing: border-box; }
.games-directory [hidden] { display: none !important; }
.games-directory :is(a,button):focus-visible { outline: 2px solid var(--games-accent); outline-offset: 5px; }
.games-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.games-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: clamp(390px, 36vw, 550px);
  padding: clamp(26px, 5vw, 82px);
  background: #111212;
}

.games-cover-art, .games-cover::after { position: absolute; inset: 0; z-index: -1; }
.games-cover-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 64% center; }
.games-cover::after {
  content: '';
  background: linear-gradient(90deg, #101111 0%, #101111df 16%, #10111145 51%, transparent 70%);
  pointer-events: none;
}

.games-cover-copy { max-width: 470px; animation: games-cover-enter 480ms cubic-bezier(.2,.75,.25,1) both; }
.games-cover h1 {
  margin: 0;
  color: var(--games-ink);
  font-size: clamp(65px, 8vw, 135px);
  font-weight: 800;
  line-height: .85;
  letter-spacing: -.075em;
}
.games-cover h1 span { color: var(--games-accent); }
.games-cover p { max-width: 300px; margin: 25px 0 22px; color: #dedbd2; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.55; }
.games-cover-link {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 11px 16px;
  background: var(--games-accent);
  color: #211810;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease;
}
.games-cover-link:hover { background: #ffd2a8; color: #211810; }
.games-cover-link span { transition: transform 180ms ease; }
.games-cover-link:hover span { transform: translateY(3px); }
@keyframes games-cover-enter { from { opacity: .76; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }

.games-library { margin-top: clamp(36px, 5vw, 72px); scroll-margin-top: 15px; }
.games-library-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.games-library-heading h2 { margin: 0; color: var(--games-ink); font-size: clamp(32px, 4vw, 61px); line-height: .98; letter-spacing: -.055em; }
.games-search {
  display: flex;
  align-items: center;
  width: min(315px, 42%);
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  gap: 9px;
  background: #1b1c1c;
  border-bottom: 1px solid #6d6c64;
  transition: border-color 180ms ease, background-color 180ms ease;
}
.games-search:focus-within { border-color: var(--games-accent); background: #242421; }
.games-search label { display: flex; color: var(--games-accent); cursor: text; }
.games-search svg { width: 20px; height: 20px; }
.games-search input { width: 100%; min-width: 0; padding: 10px 0; border: 0; outline: 0; background: transparent; color: var(--games-ink); font: inherit; font-size: 15px; }
.games-search input::placeholder { color: var(--games-muted); }

.games-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 23px; border-block: 1px solid var(--games-line); }
.games-genres { display: flex; flex-wrap: wrap; column-gap: clamp(10px, 2vw, 28px); min-width: 0; }
.games-genres button {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--games-muted);
  font: inherit;
  font-size: 14px;
  padding: 12px 1px;
  cursor: pointer;
  white-space: nowrap;
}
.games-genres button::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: var(--games-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.games-genres button:is(:hover, [aria-pressed='true']) { color: var(--games-ink); }
.games-genres button[aria-pressed='true']::after { transform: scaleX(1); }
.games-count { flex: none; margin: 0; color: var(--games-muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.games-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(12px, 2.25vw, 32px); row-gap: clamp(9px, 1vw, 17px); }
.games-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: clamp(52px, 7vw, 104px) minmax(0, 1fr) 22px;
  align-items: center;
  column-gap: clamp(9px, 1.45vw, 22px);
  padding: 8px 5px 8px 0;
  border-bottom: 1px solid var(--games-line);
  color: var(--games-ink);
  text-decoration: none;
  transition: border-color 190ms ease, color 190ms ease, background-color 190ms ease;
}
.games-card-art { display: block; aspect-ratio: 1.03; background: #1e2020; overflow: hidden; }
.games-card-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 37%; transition: transform 330ms cubic-bezier(.2,.75,.25,1); }
.games-card-copy { display: grid; align-content: center; gap: 5px; min-width: 0; }
.games-card-genre { color: var(--games-muted); font-size: 12px; line-height: 1.2; }
.games-card-copy strong { color: inherit; font-size: clamp(14px, 1.65vw, 24px); font-weight: 650; line-height: 1.08; overflow-wrap: anywhere; }
.games-card-arrow { justify-self: end; color: var(--games-accent); font-size: 18px; line-height: 1; transition: transform 190ms ease; }
.games-card:is(:hover,:focus-visible) { border-color: #f3b87e8c; color: var(--games-accent); background: #f3b87e07; }
.games-card:is(:hover,:focus-visible) img { transform: scale(1.065); }
.games-card:is(:hover,:focus-visible) .games-card-arrow { transform: translate(2px, -2px); }
.games-empty, .games-more { margin-top: 26px; text-align: center; }
.games-empty p { margin: 0 0 12px; color: var(--games-muted); }
.games-empty button, .games-more button { border: 0; border-bottom: 1px solid #f3b87e70; padding: 10px 3px; background: transparent; color: var(--games-accent); font: inherit; font-weight: 650; cursor: pointer; }
.games-more button span { margin-inline-start: 8px; }

@media (max-width: 1150px) {
  .games-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .games-directory { width: calc(100% - 32px); padding-top: 0; }
  .games-cover { align-items: end; min-height: 410px; padding: 23px 17px; }
  .games-cover-art img { object-fit: cover; object-position: 79% 50%; }
  .games-cover::after { background: linear-gradient(0deg, #101111 0%, #101111dd 29%, #10111120 68%, transparent 87%); }
  .games-cover h1 { font-size: clamp(58px, 12vw, 82px); }
  .games-cover p { margin: 12px 0 14px; }
  .games-toolbar { align-items: flex-start; }
  .games-count { margin-top: 12px; }
  .games-card { grid-template-columns: 59px minmax(0, 1fr) 15px; }
}
@media (max-width: 520px) {
  .games-cover { min-height: 415px; }
  .games-cover-art { bottom: 134px; }
  .games-cover-art img { object-position: 80% center; }
  .games-cover::after { background: linear-gradient(0deg, #101111 30%, #101111cd 43%, #10111105 68%); }
  .games-library-heading { align-items: stretch; flex-direction: column; }
  .games-search { width: 100%; }
  .games-toolbar { flex-direction: column; gap: 8px; padding-bottom: 10px; }
  .games-genres { column-gap: 14px; }
  .games-genres button { padding-block: 9px; }
  .games-count { margin: 0; }
  .games-list { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .games-card { grid-template-columns: 64px minmax(0, 1fr) 20px; }
  .games-card-copy strong { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .games-directory *, .games-directory *::after { animation: none !important; transition: none !important; }
}
