body {
  font-family: Arial, sans-serif;
  padding: 1em;
  max-width: 480px;
  margin: auto;
}

button {
  margin: 0.3em;
  padding: 0.8em 1.2em;
  border: none;
  background-color: #f06d06;
  color: white;
  font-weight: bold;
  border-radius: 15px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #e05800;
}

#startBtnWrapper {
  text-align: center;
  margin-bottom: 1em;
}

#hungerCheck,
#drinkButtons,
#scoreDisplay,
#limitWarning {
  margin-top: 1em;
}

#hungerCheck button {
  background-color: #0b79ce;
}

#hungerCheck button:hover {
  background-color: #065a8a;
}

#limitWarning {
  color: red;
  font-weight: bold;
  display: none;
}

#scoreDisplay {
  font-size: 1.5em;
  font-weight: bold;
}

#history {
  margin-top: 1em;
  border-top: 1px solid #ccc;
  padding-top: 0.5em;
}

#emptyHistory {
  font-style: italic;
  color: #666;
}

#endBtn,
#undoBtn {
  background-color: #555;
  margin-top: 1em;
  margin-bottom: 1em;
}

#endBtn:hover,
#undoBtn:hover {
  background-color: #333;
}

input[type="number"] {
  width: 80px;
  padding: 0.4em;
  font-size: 1em;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-right: 0.5em;
}

label {
  font-weight: bold;
}

#popupAnimation {
  display: none;
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  text-align: center;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

#shareArea {
  display: block;
  text-align: center;
  margin-top: 2em;
}