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

body {
  width: 100vw;
  height: 100vh;
  font-family: Arial, sans-serif;
  overflow: hidden;
}

#game-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle, #ffffff, teal);
  padding: 2vh;
  gap: 2vh;
}

#timer-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2vw;
  width: 100%;
  max-width: 500px;
  margin-bottom: 1vh;
}

#current-timer {
  font-size: clamp(20px, 4vw, 32px);
  font-weight: bold;
  color: #000;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 8px 16px;
  border-radius: 8px;
  border: 2px solid #000;
  min-width: 60px;
  text-align: center;
}

#best-time-display {
  font-size: clamp(16px, 3vw, 24px);
  font-weight: bold;
  color: goldenrod;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 6px 12px;
  border-radius: 8px;
  border: 2px solid goldenrod;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#holding-area {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1vw;
  width: 100%;
  max-width: 500px;
  height: auto;
}

.bottle-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2vw;
  width: 100%;
  max-width: 800px;
}

.water-bottle {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  border: 2px solid #000;
  border-radius: 10px;
  background-color: transparent;
  overflow: hidden;
  aspect-ratio: 2 / 5;
  width: clamp(40px, 12vw, 80px);
}

.water-bottle.horizontal {
  flex-direction: row;
  aspect-ratio: 5 / 2;
  height: clamp(40px, 12vw, 80px);
  width: auto;
}

.segment {
  width: 100%;
  flex: 1;
  transition: background-color 0.3s ease;
}

.water-bottle.horizontal .segment {
  width: 16.66%;
  height: 100%;
}

.button {
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  background-color: #000000;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

.button:hover {
  background-color: #333;
}

