* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
#game-area {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-color: #3d3c31;
}
img.eatable {
  position: absolute;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 2px solid #ccc;
  border-radius: 8px;
}
#eater {
  position: absolute;
  width: 80px;
  height: 80px;
  left: 0;
  bottom: 0;
}
#game-over {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-5deg);
  font-size: 3rem;
  color: #D6F70B;
  font-weight: bold;
  font-family: "Comic Sans MS", cursive, sans-serif;
  display: none;
  animation: shake 1s infinite;
}

@keyframes shake {
  0% { transform: translate(-50%, -50%) rotate(-5deg); }
  50% { transform: translate(-50%, -50%) rotate(5deg); }
  100% { transform: translate(-50%, -50%) rotate(-5deg); }
}
.dot {
  position: absolute;
  width: 5px;
  height: 5px;
  background-color: white;
  border-radius: 50%;
  z-index: 1;
}
.dot.faded {
  background-color: #5c5618; /* subtle yellowish tint on dark bg */
  opacity: 0.3;
}

#reset-button {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 28px;
  font-size: 1.5rem;
  font-family: "Comic Sans MS", cursive;
  background-color: #ffdf00;
  color: #2e1e00;
  border: 4px dashed #3c3704;
  border-radius: 12px;
  cursor: pointer;
  display: none;
  z-index: 1000;
  animation: wobble 1s infinite;
  box-shadow: 4px 4px 0px #3c3704;
  transition: transform 0.2s;
}

#reset-button:hover {
  background-color: #fff176;
  transform: translateX(-50%) scale(1.1);
}

@keyframes wobble {
  0% { transform: translateX(-50%) rotate(0deg); }
  25% { transform: translateX(-50%) rotate(2deg); }
  50% { transform: translateX(-50%) rotate(-2deg); }
  75% { transform: translateX(-50%) rotate(2deg); }
  100% { transform: translateX(-50%) rotate(0deg); }
}
