html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}
#promo{text-align:center;margin-bottom:5px;}
body {
  background:
    linear-gradient(180deg, #eef5fb 0%, #f7f4ed 45%, #edf6f2 100%);
  color: #1f2933;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

#head1 {
  min-height: 80px;
}

#pregameArea,
#gameArea {
  width: min(900px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(39, 64, 96, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(31, 41, 51, 0.14);
}

#pregameArea {
  min-height: 52px;
  margin-top: 18px;
  margin-bottom: 12px;
  overflow: hidden;
  text-align: center;
}

#gameArea {
  height: 400px;
  margin-bottom: 10px;
  overflow: hidden;
  position: relative;
}

#structions { box-shadow: 0;
  min-height: 52px;
  line-height: 1.25;
  padding: 14px 18px;
  font-size: 20px;
  font-weight: 400;
  color: #284057;
}

#menuArea {
  min-height: 400px;
  overflow-y: visible;
  overflow-x: hidden;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
}

 

 

 

 

 

.myTitle {
  min-height: 40px;
  margin-bottom: 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #dfe8ef;
  border-radius: 8px;
  color: #25384b;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(31, 41, 51, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.myTitle:hover {
  background-color: #f8fbfd;
  border-color: #9cc5dd;
  box-shadow: 0 9px 20px rgba(39, 111, 149, 0.14);
  transform: translateY(-1px);
}

 
#gameArea.menu-screen,
#gameArea.complete-screen {
  height: auto;
  min-height: 400px;
  overflow: visible;
}

#gameArea.complete-screen {
  padding-bottom: 16px;
}

#gameArea.complete-screen #contentArea2 {
  max-height: none;
  overflow: visible;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.34;
}

#gameArea.complete-screen #butang1 {
  min-width: 74px;
  padding-left: 18px;
  padding-right: 18px;
}

 

#gameArea.fail-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#gameArea.fail-screen #contentArea2 {
  width: min(360px, calc(100% - 32px));
  max-height: none;
  margin: 0 auto 2px;
  padding: 22px;
  overflow: visible;
  text-align: center;
}

 

@media screen and (max-width: 825px) {
  .myTitle {
    font-size: 17px;
  }

  #structions {
    font-size: 18px;
  }
}

@media screen and (max-width: 760px) {
  #menuArea {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 670px) {
  #pregameArea {
    min-height: 56px;
  }

  #introTitle {
    margin-top: 64px;
    font-size: 34px;
  }
}

@media screen and (max-width: 465px) {
  #pregameArea,
  #gameArea {
    width: 100%;
    border-left: none;
    border-right: none;
    border-radius: 0;
  }

  #pregameArea {
    margin-top: 10px;
  }

  #stage,
  #quad {
    width: 100%;
  }

   
  #contentArea2 {
    width: calc(100% - 24px);
  }
}
