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

body, html {
  width: 100%;
  height: 100%;
  font-family: sans-serif;
  background-color: #f4f4f4;
  overflow: hidden;
}

/* Сундук */
#chestSection {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 100;
}


#chest {
  width: 141.8px;     /* 354.5 / 2.5 */
  height: 98.4px;     /* 246 / 2.5 */
  background-image: url("images/cases.png");
  background-size: 283.6px 98.4px; /* уменьшен весь спрайт */
  background-position: left center;
  background-repeat: no-repeat;
  cursor: pointer;
}



#chest.open {
  background-position: right center;
}

#chestStatus {
  font-size: 0.8em;
  margin-top: 4px;
  color: #333;
}

/* Основной контент */
#mainContent {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Центр: счётчик и кнопка */
#center {
  text-align: center;
  margin-bottom: 100px;
}

#counter {
  font-size: 3em;
  font-weight: bold;
  color: #333;
}

#clickPowerLabel {
  font-size: 1.2em;
  color: #777;
  margin-bottom: 10px;
}

#clickButton {
  width: 160px;
  height: 160px;
  font-size: 4em;
  border-radius: 50%;
  border: 8px solid white;
  background: radial-gradient(circle, #00aaff 40%, #0077cc);
  color: white;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  user-select: none;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}

#clickButton:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}


/* Улучшения внизу */
#upgrades {
  position: absolute;
  bottom: 10px;
  width: 90%;
  max-width: 400px;
  text-align: center;
}

#upgrades h2 {
  font-size: 1.2em;
  margin-bottom: 10px;
}

#upgrades button {
  display: block;
  width: 100%;
  margin: 5px 0;
  font-size: 1em;
  padding: 10px;
  border: none;
  background-color: #007acc;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#upgrades button:hover {
  background-color: #005f88;
}
