.upgrade__wrapper {
  position: fixed;
  top: -100vh;
  left: 0;
  right: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
}
.game-speed_wrapper {
  position: fixed;
  top: -100vh;
  left: 0;
  right: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
}

.upgrade__wrapper.active {
  top: 0;
  background: #00000088;
}

.game-speed_wrapper.active {
  top: 0;
  background: #00000088;
}

.upgrade__modal {
  width: 500px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(to right bottom, #ae7836, #702d24);
  position: relative;
}

.upgrade__close-block {
  position: absolute;
  right: -10px;
  top: -10px;
  cursor: pointer;
  padding: 5px;
}

.upgrade__close-icon {
  width: 30px;
}

.upgrade__title {
  text-align: center;
  margin-bottom: 10px;
  font-size: 40px;
  color: var(--light-text);
}

.upgrade__item {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}

.upgrade__type-name {
  width: 100%;
  font-size: 20px;
}

.upgrade__type-icon {
  width: 50px;
  display: block;
  /* margin: 0 auto; */
}

.upgrade__scale {
  flex-grow: 1;
  display: flex;
  gap: 2px;
}

.upgrade__cell {
  width: 40px;
  height: 40px;
  border-radius: 30px;
  background: bisque;
}

.cell_text {
  text-align: center;
  font-size: 15px;
  margin-top: 10px;
  font-weight: bold;
  color: green;
}

.upgrade__cell.active {
  background: green;
}
.upgrade__cell.active .cell_text {
  color: var(--light-text);
}

.upgrade__add-block {
  width: 80px;
  padding: 5px;
  border-radius: 10px;
  justify-content: center;
  background: #b7b5b4d3;
  display: flex;
  gap: 5px;
  align-items: center;
  cursor: pointer;
  position: relative;
}
.upgrade__add-block.max {
  cursor: default;
}

.btn.desabled {
  background: #ccc;
  opacity: 0.5;
  cursor: default;
}

.btn.max {
  background: #ccc;
  text-align: center;
  display: block;
  cursor: default;
  opacity: 0.5;
}

.upgrade__coin-icon {
  width: 20px;
  z-index: 1;
}

.upgrade__tooltip {
  position: absolute;
  top: -30px;
  right: 0;
  padding: 3px 6px;
  border-radius: 5px;
  background: #f7be78;
  font-size: 12px;
  transition: 0.3s;
  opacity: 0;
  /* z-index: 1; */
}

.btn:hover .upgrade__tooltip {
  opacity: 1;
}

.upgrade__tooltip::before {
  content: "";
  /* width: 10px;
  height: 16px; */
  display: block;
  position: absolute;
  right: 5px;
  bottom: -8px;
  border: 4px solid transparent;
  border-top-color: #f7be78;
  border-right-color: #f7be78;
}
@media (max-width: 1000px) {
  .upgrade__wrapper {
    top: -150vh;
  }
}