* {
  margin: 0;
  padding: 0;
}

#container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  overflow: hidden;
}

#overlay {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 20;
}

.stamina-bar {
  width: 200px;
  height: 18px;
  border: 2px solid #ffffff;
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.stamina-bar-fill {
  height: 100%;
  width: 100%;
  background-color: #52cc19;
  transition:
    width 0.1s linear,
    background-color 0.2s linear;
}

#canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 10;
  overflow: hidden;
}

#overlay {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
}

.rocket-timer {
  position: relative;
  width: 44px;
  height: 44px;
}

.rocket-timer svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.rocket-timer-bg,
.rocket-timer-fill {
  fill: rgba(0, 0, 0, 0.4);
  stroke-width: 4;
}

.rocket-timer-bg {
  stroke: rgba(255, 255, 255, 0.3);
}

.rocket-timer-fill {
  fill: none;
  stroke: #e7a221;
  stroke-linecap: round;
  stroke-dasharray: 113.097;
  stroke-dashoffset: 113.097;
  transition:
    stroke-dashoffset 0.1s linear,
    stroke 0.2s linear;
}

.rocket-timer-icon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0.5;
  transition: opacity 0.2s linear;
}

.rocket-timer.ready .rocket-timer-icon {
  opacity: 1;
}
.rocket-timer.ready .rocket-timer-fill {
  stroke: #52cc19;
}

#controls {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  padding: 20px;
  line-height: 1.6;
  font-family: sans-serif;
  color: white;
  background: rgba(0, 0, 0, 0.8);
}

#hint {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 30;
  font-family: sans-serif;
  color: white;
}
