* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  touch-action: manipulation;
}

body {
  font-family: sans-serif;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.wrap {
  width: 100%;
  height: 100vh;
  background: linear-gradient(to bottom, #2c3e50, #4b4b4b);
  font-size: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.wrap .container {
  width: 90%;
  max-width: 600px;
  height: 90%;
  max-height: 600px;
  padding: 10px;
  background-color: #fffffe;
  border: 1px solid #ccc;
  box-shadow: 1px 1px 2px #999;
  border-radius: 5px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.wrap .container .score {
  font-size: 1.2em;
}
.wrap .container .score span {
  margin-left: 6px;
}
.wrap .container .btnArea {
  width: 90%;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.wrap .container .btnArea button {
  padding: 20px 40px;
  font-size: 24px;
  margin: 8px;
  cursor: pointer;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 5px;
  transition: background-color 0.2s;
}
.wrap .container .btnArea button:hover {
  background-color: #555;
}
.wrap .container .btnArea.game-over button.win {
  background-color: #4caf50;
  color: white;
  border-color: #4caf50;
}
.wrap .container .btnArea.game-over button.lose {
  background-color: #f44336;
  color: white;
  border-color: #f44336;
}
.wrap .container .judgeArea {
  width: 80%;
  min-height: 180px;
}
.wrap .container .judgeArea #judgeText {
  font-size: 24px;
  margin-top: 20px;
  line-height: 1.6;
}
.wrap .container .judgeArea #restartButton {
  padding: 10px 20px;
  margin: 20px auto 0;
  font-size: 18px;
  cursor: pointer;
  display: none;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 5px;
  transition: background-color 0.2s;
}
.wrap .container .judgeArea #restartButton:hover {
  background-color: #555;
}