#gameModal {
  position: fixed;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100vw;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  gap: 0;
  color: white;
  font-family: "Space Mono", monospace;
  background: black;
  background-size: cover;
  left: 0;
  top: 0;
  z-index: 99999;
  overflow: hidden;
}
#gameModal::before{
  content: "";
  width: 100vw;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  position: fixed;
  background: url(../img/bg_dark.jpg) bottom center no-repeat;
  background-size: cover;
  opacity: .35;
  left: 0;
  top: 0;
  z-index: 1;
}

#gameModal.active{
  display: flex;
}

.game_wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 98vw;
  height: 100%;
  max-height: 100dvh;
  padding-top: 15px;
  overflow: hidden;
  z-index: 99;
}
.canvasArea {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

canvas#miniGame {
  display: block;
  width: auto;
  height: auto;

  border: 2px solid black;
  background: #120805;
  flex: 0 0 auto;
}

.game_UI {
  flex: 0 0 auto;
  width: 100%;
  padding: 0 10px;
  padding-bottom: 5px;
}

.btn_game{
  background: var(--active);
  border-radius: 5px;
  padding: 0 15px;
  height: 30px;
  max-height: 35px;
  color: black;
  font-weight: 600;
}
.btn_game.help, .btn_game.close{
  width: 30px;
  height: 30px;
  padding: 0;
  aspect-ratio: 1/1;

}
.btn_game:hover{
  background: var(--white);
}

.btn_gameAudio{
  font-size: 14px;
  font-weight: 600;
  max-width: fit-content;
}

.btn_gameAudio.is-off{
  background: grey;
  text-decoration: line-through;
}

#mobileUI {
  display: none;
  flex: 0 0 auto;
  padding: 15px 2%;
  width: 100%;
  justify-content: space-around;
  background: linear-gradient(to top, black 80%, rgba(0,0,0,0));
  z-index: 99;
}
@media screen and (max-width: 768px) {
  #mobileUI {
    display: flex;
  }
}
.btn_gameplay{
  width: 60px;
  aspect-ratio: 1/1;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  border: 2px solid rgba(195, 251, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  user-select: none !important;
}
.btn_gameplay:hover{
  background: rgba(255,255,255,0.075);
}
.btn_gameplay::before{
  content: '';
  width: 100%;
  height: 100%;
}
#btnLeft::before{
  background: url(../img/game/btn_left.png) no-repeat;
  background-size: contain;
}
#btnRight::before{
  background: url(../img/game/btn_right.png) no-repeat;
  background-size: contain;
}
#btnJump::before{
  background: url(../img/game/btn_up.png) no-repeat;
  background-size: contain;
}
#btnShoot::before{
  background: url(../img/game/btn_shoot.png) no-repeat;
  background-size: contain;
}

#volumeSlider, #bgmSlider{
  padding: 0;
  width: 100%;
  max-width: 100%;
  min-height: unset;
  max-height: 15px;
  /* max-width: calc(50vw - 90px); */
}

.gameReward{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.75);

  display:none;
  align-items:center;
  justify-content:center;

  z-index:50;
}

.gameReward.active{
  display:flex;
}

.rewardCard{
  width:80%;
  max-width:320px;

  background:#111;
  border:1px solid rgba(255,255,255,.15);

  padding:24px;
  text-align:center;
  border-radius:12px;
}

.rewardText{
  margin:16px 0;
}

.key {
  display: inline-block;
  min-width: 26px;
  padding: 1px 6px;
  text-align: center;
  border: 1px solid var(--active);
  border-radius: 5px;
  background: rgba(255,255,255,.08);
  color: #fff8d7;
  font-weight: bold;
}