.games-view {
  padding-block: 24px 40px;
}

.games-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.games-services .games-selector {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: start;
  justify-content: initial;
  column-gap: 10px;
  row-gap: 8px;
  min-height: 112px;
  padding: 12px;
}

.games-selector[aria-current='page'] {
  border-color: color-mix(in srgb, var(--accent) 54%, var(--line));
}

.games-selector .service-art {
  top: auto;
  left: auto;
  right: -20px;
  bottom: -30px;
  width: 142px;
  transform: none;
}

.games-selector:hover .service-art {
  transform: none;
}

.games-selector-name {
  min-width: 0;
  display: grid;
  gap: 2px;
  font-size: .875rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.games-selector-name strong { font-weight: 650; }
.games-selector-name > span { color: var(--muted); }

.games-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-block: 30px 20px;
}

.games-heading-icon,
.games-mark {
  display: grid;
  flex: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.games-heading-icon {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  background: var(--panel);
  color: var(--accent);
}

.games-heading-icon .icon { width: 29px; height: 29px; }

.games-heading h1 {
  margin: 0;
  font-size: clamp(1.625rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.games-heading h1:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 3px;
}

.games-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.45;
}

.games-search label {
  display: inline-block;
  margin-bottom: 6px;
  font-size: .8125rem;
  font-weight: 550;
}

.games-search-field {
  position: relative;
}

.games-search-field > .icon {
  position: absolute;
  top: 50%;
  left: 13px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.games-search-field input {
  width: 100%;
  min-height: var(--tap);
  padding: 8px 12px 8px 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--text);
  caret-color: var(--accent);
}

.games-search-field input::placeholder { color: var(--muted); opacity: 1; }

.games-search-status:not(.games-empty) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  margin: 0;
  white-space: nowrap;
}

.games-empty {
  margin: 16px 0 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: var(--panel);
  font-size: .875rem;
  line-height: 1.5;
}

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

.games-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
}

.games-mark {
  width: 42px;
  height: 42px;
  color: var(--tint, var(--muted));
  background: color-mix(in srgb, var(--text) 5%, var(--panel));
  font-size: .6875rem;
  font-weight: 750;
  letter-spacing: .03em;
}

.games-mark .brand-icon { width: 23px; height: 23px; }

.games-row-name {
  display: grid;
  gap: 2px;
  font-size: .875rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.games-row-name strong { font-weight: 650; }
.games-row-name > span { color: var(--muted); font-size: .8125rem; }

.games-action {
  gap: 4px;
  padding-inline: 8px;
  font-size: .8125rem;
}

.games-action .icon { width: 14px; height: 14px; }
.games-unavailable { color: var(--muted); font-size: .75rem; }

@media (max-width: 980px) {
  .games-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .games-services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .games-results { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .games-services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .games-services .games-selector { column-gap: 8px; padding: 10px; }
  .games-selector .service-art { width: 116px; bottom: -24px; }
  .games-selector .service-icon { width: 30px; height: 30px; }
  .games-selector-name { font-size: .8125rem; }
  .games-heading { margin-top: 24px; }
}
