.cases .layout-title {
  font-size: 16px;
  margin-bottom: 20px;
}

.cases-inventory {
  border: 1px solid #282d3b;
  padding: 8px;
  border-radius: 16px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  gap: 8px;
}

.cases-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px;
}

.cases-list__item {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cases-list__item.disabled {
  opacity: .3;
  pointer-events: none;
}

.cases-list__item--img {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  position: relative;
}

.cases-list__item--img img {
  width: 100%;
}

.cases-list__item--placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: #5e3f09;
  background-color: #ffce79;
}

.cases-list__item--title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .9));
  text-shadow: 0 0 4px black;
  padding: 100px 16px 16px;
  font-size: 24px;
}

.cases-list__item--btn .btn {
  width: 100%;
}

.cases-inventory .cases-list__item--img,
.cases-inventory .cases-list__item--btn .btn {
  border-radius: 8px;
}

.cases-inventory .cases-list__item--title {
  padding: 64px 8px 8px;
  font-size: 12px;
}

.cases-list__item--range {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-family: 'Rubik', sans-serif;
}

.cases-list__item--range div:first-child {
  color: #96a0af;
  /* color: #90b5ff; */
  font-weight: 400;
}

.cases-list__item--range div:last-child {
  color: #00db6e;
}

.cases-wager {
  margin-top: 0;
  margin-bottom: 32px;
}

.cases-wager .wager {
  margin-top: 0;
}

#case-modal .bonus-wheel__item {
  font-size: 14px;
}

.cases-history {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  margin-bottom: 32px;
  gap: 8px;
  border-radius: 16px;
}

.cases-history__wrapper {
  position: relative;
}

.cases-history__wrapper::after {
  position: absolute;
  z-index: 2;
  content: '';
  bottom: 0;
  right: 0;
  width: 60px;
  height: 100%;
  background: linear-gradient(90deg, transparent, #151d28);
}

.cases-history::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.cases-history__item {
  padding: 6px 12px 6px 6px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(143, 180, 255, .18), rgba(143, 180, 255, .1));
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.cases-history__img img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, .2);
  border: 1px solid rgba(220, 220, 255, .2);
}

.cases-history__name {
  font-family: 'Roboto', sans-serif;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
  font-size: 12px;
}

.cases-history__amount {
  font-size: 13px;
  color: #00db6e;
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  margin-top: 5px;
}

@media (max-width: 1024px) {
  .cases-list {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .cases-inventory {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .cases-list {
    grid-template-columns: 1fr 1fr;
  }

  .cases-inventory {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

@media (max-width: 512px) {
  .cases-list {
    grid-template-columns: 1fr;
  }

  .cases-inventory {
    grid-template-columns: 1fr 1fr;
  }
}