.mel-games {
  min-width: 0;
  margin-bottom: 20px;
  scroll-margin-top: calc(var(--mel-header-height) + 18px);
  padding: 12px 10px 10px;
  border-radius: 12px;
  background: #121212;
  color: #fff;
  font-family: Roboto, sans-serif;
}

.mel-games__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

.mel-games .mel-games__header h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.15;
  text-transform: uppercase;
}

.mel-games__all {
  margin-left: auto;
  color: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.mel-games .mel-loop__track {
  gap: 8px;
}

.mel-game-card {
  position: relative;
  display: block;
  width: min(280px, 76vw);
  aspect-ratio: 1.56;
  overflow: hidden;
  isolation: isolate;
  border-radius: 8px;
  background: #202020;
  color: #fff;
}

.mel-game-card__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease, filter 220ms ease;
}

.mel-game-card::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 57% 0 0;
  background: linear-gradient(transparent, #171717f5 63%, #171717);
  pointer-events: none;
}

.mel-game-card .mel-game-card__caption {
  position: absolute;
  z-index: 2;
  inset: auto 8px 0;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.mel-game-card__caption > span {
  color: #fff;
  font: 700 14px/1.25 Roboto, sans-serif;
  text-shadow: 0 1px 3px #000;
}

.mel-game-card__caption .mel-game-card__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mel-game-card__name:only-child {
  width: 100%;
  text-align: center;
}

.mel-game-card__caption .mel-game-card__limit {
  color: #ffe19a;
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
}

.mel-game-card .mel-game-card__badge {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  border-radius: 3px;
  padding: 2px 4px;
  background: #f0f0f0;
  color: #212121;
  font: 700 10px/1 Roboto, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.mel-game-card .mel-game-card__play {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  padding: 7px 15px;
  border-radius: 7px;
  opacity: 0;
  background: #ffb600;
  color: #212121;
  font: 700 13px/1.2 Roboto, sans-serif;
  transform: translate(-50%, calc(-50% + 5px));
  transition: opacity 200ms ease, transform 200ms ease;
}

.mel-game-card:focus-visible .mel-game-card__play {
  opacity: 1;
  transform: translate(-50%, -50%);
}

@media (hover: hover) {
  .mel-game-card:hover .mel-game-card__cover {
    transform: scale(1.06);
    filter: brightness(.82);
  }

  .mel-game-card:hover .mel-game-card__play {
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  .mel-games__providers a:hover img {
    transform: scale(1.08);
  }

  .mel-games__all:hover {
    color: #ffb600;
  }
}

.mel-games__providers {
  display: flex;
  gap: 6px;
  overflow: auto hidden;
  scrollbar-width: thin;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #212121;
}

.mel-games__providers a {
  display: grid;
  align-items: center;
  justify-items: center;
  flex: 1 0 76px;
  min-height: 45px;
}

.mel-games__providers img {
  width: 74px;
  height: 26px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: transform 200ms ease;
}

.mel-games :is(a, button, [tabindex]):focus-visible {
  outline: 2px solid #ffbf22;
  outline-offset: -3px;
}

.mel-games .mel-loop__viewport:focus-visible {
  outline-offset: 1px;
}

@media (max-width: 560px) {
  #mel-live-games .mel-game-card__caption {
    display: grid;
    align-content: center;
    gap: 2px;
    min-height: 47px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mel-game-card__cover,
  .mel-game-card .mel-game-card__play,
  .mel-games__providers img {
    transition: none;
  }

  .mel-game-card:hover .mel-game-card__cover,
  .mel-games__providers a:hover img {
    transform: none;
  }
}
