/* ガチャ背景 */
#gacha-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffe188;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#gacha-layer img {
  max-width: 80%;
  max-height: 80%;
  display: block;
  margin: auto;
}

/* 結果オーバーレイ */
#result-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

/* モーダル中身 */
#modal-container {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
}

#modal-container .modal {
  display: block;
}

#modal-container .modal__header {
  width: auto;
}

#modal-container .modal__overlay {
  background: none;
}

#modal-container .modal__container {
  position: relative;
}

#modal-container .modal__header {
  position: absolute;
  right: 0;
}