/* Bonus-game history modal. Shared modal primitives remain in main.css. */
.modal__overlay--history {
  position: fixed;
  inset: 0;
  z-index: 6;
  display: none;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

.modal__overlay--history.active {
  display: block;
}

.gameBonusModal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 440px;
  transform: translate(-50%, -50%);
}

.gameBonusModal .modal__container {
  max-height: min(70vh, 520px);
  overflow-y: auto;
}

.gameBonusModal--history .modal__box {
  min-height: 220px;
}

.gameBonusModal--history .modal__about {
  justify-content: flex-start;
}

.gameBonusModal .history_empty_wrapper {
  min-height: 220px;
}

.gameBonusModal .history_empty_image {
  background-image: url("../img/gift.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 100px;
  height: 100px;
}

@media screen and (max-width: 940px) and (min-width: 320px) {
  .gameBonusModal {
    width: 90.6667vw;
  }

  .gameBonusModal .modal__container {
    max-height: 75vh;
  }

  .gameBonusModal--history .modal__box,
  .gameBonusModal .history_empty_wrapper {
    min-height: 58vw;
  }

  .gameBonusModal .history_empty_image {
    width: 26.6667vw;
    height: 26.6667vw;
  }

}
