@media screen and (max-width: 600px) {
  .animation_container {
    position: relative;
    width: 100% !important;
    height: auto !important;
    min-width: 250px;
    margin: 0 auto;
  }
}

.animation_container:before {
  display: block;
  content: "";
  padding-top: 131%;
}

.animation_container .canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.5);
  /* 放大 1.5 倍 */
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

.animation_container .dom_overlay_container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.5);
  width: 100% !important;
  height: 100% !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dom_overlay_container {
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  transform: translateY(-7%);
  position: relative;
}

.btn-close {
  margin: 0 auto;
  cursor: pointer;
  appearance: none;
  background-color: #ffe358;
  border: 5px solid #918f33;
  border-radius: 50px;
  padding: 15px 30px;
  color: #000000;
  font-weight: bold;
  font-size: 20px;
  transition: all 0.3s ease;
  position: absolute;
  right: 40%;
  bottom: 15%;
}

.main2 {
  display: flex;
  height: 100%;
  align-items: flex-end;
  position: relative;
  align-items: center;
  position: relative;
  overflow: hidden;
  display: none;
  justify-content: center;
}

.main_inner {
  height: 100%;
  position: relative;
}



.animation_container_Gacha {
  position: absolute;
  max-width: 400px;
  margin: 0 auto;
}

.animation_container_Gacha:before {
  display: block;
  content: "";
  padding-top: 131%;
}

.animation_container_Gacha .canvas,
.animation_container_Gacha .dom_overlay_container2 {
  position: absolute;
  top: -7%;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 998;
}

.dom_overlay_container2 {
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  transform: translateY(-7%);
}

/*.main2::after {
    display: block;
    position: absolute;
    content: "";
    background: url("/images/games/images/left.png") no-repeat;
    width: 100%;
    height: 100%;
    max-height: 100px;
    max-width: 203px;
    top: 0;
    left: -10%;
    transform: translateX(10%);
    background-size: contain;
}

.main2::before {
    display: block;
    position: absolute;
    content: "";
    background: url("/images/games/images/right.png") no-repeat;
    width: 100%;
    height: 100%;
    max-height: 100px;
    max-width: 203px;
    top: 0;
    right: -5%;
    transform: translateX(5%);
    background-size: contain;
}*/

.mainHeading2 {
  display: block;
  top: 5%;
  width: 100%;
  max-height: 200px;
  left: -50%;
  transform: translateX(50%);
  position: absolute;
  object-fit: contain;
  z-index: 999;
}

.scroll::after {
  content: "";
  display: block;
}

.scroll {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.result-top {
  width: 100%;
  height: 25%;
  position: relative;
  top: 0;
  left: 0;
}

/* 右上角圖片 */
.result-top-right {
  max-width: 50%;
  position: absolute;
  top: 0px;
  right: 0px;
  object-position: right;
}

/* 左上角圖片 */
.result-top-left {
  max-width: 50%;
  position: absolute;
  top: 0px;
  left: 0px;
  object-position: left;
}

.result-middle {
  width: 100%;
  height: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.result-middle>p {
  color: red;
}

.result-bottom {
  width: 100%;
  height: 25%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

/* 左下角圖片 */
.mainLeft2 {
  display: block;
  position: relative;
  width: 50%;
  height: 100%;
  max-height: 230px;
  object-fit: cover;
  object-position: left;
  margin-right: auto;
}

/* 右下角圖片 */
.mainRight2 {
  display: block;
  position: relative;
  width: 50%;
  height: 100%;
  max-height: 230px;
  object-fit: cover;
  object-position: right;
  margin-left: auto;
}

.scroll-img {
  max-width: 450px;
  width: 100%;
  height: 100%;
  max-height: 100px;
  object-fit: contain;
}

.result-character-3 {
  position: absolute;
  width: 50%;
  z-index: -1;
}

/* 遊戲啟動按鈕 */
button.game-start-btn {
  background-color: #FF9933;
  color: #FFFEFE;
  z-index: 101;
  width: 48%;
  padding: 12px 0;
  margin: 0 auto;
  text-align: center;
  text-shadow: 1px 1px 3px #E97335;
  -webkit-text-stroke: 1px #E97335;
  font-weight: bold;
  font-size: 2.2rem;
  position: absolute;
  bottom: 15%;
  right: 24%;
  border-radius: 12px;
  cursor: pointer;
}

@media (max-width: 560px) {

  .mainLeft2,
  .mainRight2 {
    max-height: 200px;
  }

  button.game-start-btn {
    bottom: 10%;
  }
}

@media (max-width: 400px) {

  .mainLeft2,
  .mainRight2 {
    max-height: 150px;
  }
}

.GoBtn {
  position: relative;
  z-index: 10;
  display: flex;
  width: auto;
  height: min(10%, 15vh);
  ;
  aspect-ratio: 1/1;
  left: 0;
  bottom: -20%;
  background-color: white;
  border: 5px solid orange;
  border-radius: 100%;
  text-align: center;
  align-items: center;
  user-select: none;
  cursor: pointer;
  color: black;
  justify-content: center;
  font-size: clamp(8px, min(1vw, 1.5vh), 18px);
  font-weight: bold;
}

/* @media (max-width: 1000px) {
  .GoBtn {
    left: 57%;
  }
}

@media (max-width: 768px) {
  .GoBtn {
    left: 59%;
  }
}

@media (max-width: 600px) {
  .GoBtn {
    left: 57%;
  }
}

@media screen and (max-height: 820px) {
  .GoBtn {
    left: 56%;
  }
} */