.slots-grid {
  margin: 75px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 220px));
  justify-content: center;
  align-items: stretch;

  width: 100%;
  gap: 18px;
}

.slot-card {
  position: relative;
  min-width: 0;
  overflow: hidden;

  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 15px;

  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);

  isolation: isolate;

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.slot-card::after {
  content: '';

  position: absolute;
  inset: 0;
  z-index: -1;

  opacity: 0;

  background: radial-gradient(circle at 50% 20%, rgba(255, 49, 90, 0.15), transparent 62%);

  transition: opacity 0.25s ease;
}

.slot-card:hover {
  transform: translateY(-6px);

  border-color: rgba(255, 49, 90, 0.46);

  box-shadow:
    0 24px 46px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(255, 49, 90, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.slot-card:hover::after {
  opacity: 1;
}

.slot-card__link {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;

  color: inherit;
  text-decoration: none;
}

.slot-card__media {
  position: relative;

  width: 100%;
  overflow: hidden;

  aspect-ratio: 3 / 3;

  background: #111724;
}

.slot-card__media::before {
  content: '';

  position: absolute;
  inset: 0;
  z-index: 2;

  opacity: 0;

  background: linear-gradient(180deg, rgba(8, 10, 18, 0.08) 0%, rgba(8, 10, 18, 0.26) 46%, rgba(8, 10, 18, 0.9) 100%);

  transition: opacity 0.25s ease;
}

.slot-card__media::after {
  content: 'Играть';

  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 112px;
  min-height: 42px;
  padding: 11px 20px;

  opacity: 0;

  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-align: center;

  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 10px;

  box-shadow:
    0 12px 28px rgba(255, 49, 90, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);

  transform: translate(-50%, -42%) scale(0.92);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
}

.slot-card:hover .slot-card__media::before {
  opacity: 1;
}

.slot-card:hover .slot-card__media::after {
  opacity: 1;

  transform: translate(-50%, -50%) scale(1);
}

.slot-card__image {
  display: block;

  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0;

  object-fit: cover;
  object-position: center;

  filter: saturate(1.03) contrast(1.03);

  transition:
    transform 0.45s ease,
    filter 0.35s ease;
}

.slot-card:hover .slot-card__image {
  transform: scale(1.06);

  filter: saturate(1.13) contrast(1.07);
}

.slot-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  color: var(--accent);
  font-size: 44px;
  font-weight: 900;

  background: radial-gradient(circle at center, rgba(255, 49, 90, 0.16), transparent 64%), #111724;
}

.slot-card__badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 5;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 30px;
  padding: 6px 10px;

  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  background: linear-gradient(135deg, #d829ff, #8d1cff);

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;

  box-shadow:
    0 8px 20px rgba(140, 25, 246, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.slot-card__provider {
  position: absolute;
  top: 13px;
  right: 10px;
  z-index: 5;

  max-width: calc(100% - 82px);
  overflow: hidden;

  color: rgba(255, 255, 255, 0.96);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;

  text-shadow:
    0 1px 4px rgba(0, 0, 0, 0.96),
    0 0 8px rgba(0, 0, 0, 0.84);
}

.slot-card__content {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 58px;
  padding: 11px 12px;
  flex: 1 1 auto;

  text-align: center;

  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
}

.slot-card__title {
  width: 100%;
  margin: 0 !important;

  overflow: hidden;

  color: var(--text);
  font-size: 14px !important;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.slot-card:hover .slot-card__title {
  color: #fff;

  transform: translateY(-1px);
}

.slot-card__button {
  display: none;
}

@media (max-width: 1100px) {
  .slots-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 210px));

    gap: 16px;
  }
}

@media (max-width: 820px) {
  .slots-grid {
    grid-template-columns: repeat(auto-fit, minmax(165px, 200px));

    gap: 13px;
  }

  .slot-card {
    border-radius: 14px;
  }

  .slot-card__content {
    min-height: 54px;
    padding: 10px;
  }

  .slot-card__title {
    font-size: 13px;
  }

  .slot-card__media::after {
    min-width: 100px;
    min-height: 38px;
    padding: 9px 16px;

    font-size: 12px;
  }
}

@media (max-width: 560px) {
  .slots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    justify-content: center;

    gap: 10px;
  }

  .slot-card {
    width: 100%;
    border-radius: 12px;
  }

  .slot-card__media {
    aspect-ratio: 4 / 3;
  }

  .slot-card__content {
    min-height: 50px;
    padding: 9px 8px;
  }

  .slot-card__title {
    font-size: 12px;
  }

  .slot-card__badge {
    top: 7px;
    left: 7px;

    min-height: 26px;
    padding: 5px 8px;

    font-size: 8px;
    border-radius: 7px;
  }

  .slot-card__provider {
    top: 10px;
    right: 7px;

    max-width: calc(100% - 66px);

    font-size: 7px;
  }

  .slot-card__media::after {
    min-width: 88px;
    min-height: 34px;
    padding: 8px 13px;

    font-size: 10px;
  }
}

@media (max-width: 360px) {
  .slots-grid {
    gap: 8px;
  }

  .slot-card__content {
    min-height: 47px;
    padding: 8px 6px;
  }

  .slot-card__title {
    font-size: 11px;
  }

  .slot-card__media::after {
    min-width: 80px;
    min-height: 32px;
    padding: 7px 11px;

    font-size: 9px;
  }
}

@media (hover: none) {
  .slot-card:hover {
    transform: none;
  }

  .slot-card:hover .slot-card__image {
    transform: none;

    filter: saturate(1.03) contrast(1.03);
  }

  .slot-card__media::before {
    opacity: 0.16;
  }

  .slot-card__media::after {
    top: auto;
    right: 8px;
    bottom: 8px;
    left: auto;

    min-width: auto;
    min-height: 30px;
    padding: 7px 11px;

    opacity: 1;

    font-size: 9px;

    transform: none;
  }

  .slot-card:hover .slot-card__media::after {
    transform: none;
  }
}
