* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
}

button,
a {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
body {
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden; /* Добавлено */
}
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.app-wrapper {
  width: 100vw;
  height: 100vh;
  background-color: #000;
  position: relative;
  overflow: hidden;
  border-radius: 0; /* если хочешь оставить, можно убрать */
}

.scale-bar {
  width: 100%;
  position: absolute;
  top: 25px; /* было 40px — уменьшили */
  padding: 10px 20px;
  z-index: 10;
}

.scale-line {
  position: relative;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
}
.scale-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 8px;
  background-color: #57a8ff;
  width: 0%;
  border-radius: 5px;
  transition: width 0.4s ease;
}
.scale-dot {
  position: absolute;
  top: -4px;
  width: 12px;
  height: 12px;
  background-color: white;
  border-radius: 50%;
  transform: translateX(-50%);
}
.scale-labels {
  position: relative;
  margin-top: 4px;
  font-size: 12px;
  color: white;
  font-family: sans-serif;
}
.scale-labels span {
  position: absolute;
  transform: translateX(-50%);
}

/* GAME AREA */
.game-container {
  width: 100%;
  height: 100%;
  position: relative;
}
.background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.goalkeeper {
  position: absolute;
  bottom: 40%;
  left: 51%;
  transform: translateX(-50%);
  width: 110%;
  z-index: 2;
}

/* CIRCLES */
.circle {
  position: absolute;
  width: 50px;
  height: 50px;
  z-index: 3;
}
.circle img {
  position: absolute;
  width: 100%;
  height: 100%;
}
.circle .ball {
  top: 8px;
  left: 8px;
  width: 35px;
  height: 35px;
  position: absolute;
}
.circle.pulse,
.circle .ball.pulse {
  animation: pulse 1.2s infinite ease-in-out;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* CIRCLE POSITIONS */
.circle-tl {
  top: 28%;
  left: 7%;
}
.circle-tr {
  top: 28%;
  right: 8%;
}
.circle-top {
  top: 28%;
  left: 43.2%;
}
.circle-bl {
  bottom: 43%;
  left: 7%;
}
.circle-br {
  bottom: 43%;
  right: 8%;
}

/* ARROWS */
.arrows {
  position: absolute;
  width: 70px;
  height: 70px;
  pointer-events: none;
  display: none;
  z-index: 4;
}
.arrow {
  position: absolute;
  width: 30px;
  height: 30px;
}
.arrow-top {
  top: -20px;
  left: 50%;
  transform: translateX(-50%) rotate(0deg);
}
.arrow-bottom {
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
}
.arrow-left {
  left: -20px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
}
.arrow-right {
  right: -20px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
}

.arrow.pulse-top {
  animation: pulseMoveTop 1.2s infinite ease-in-out;
}
.arrow.pulse-bottom {
  animation: pulseMoveBottom 1.2s infinite ease-in-out;
}
.arrow.pulse-left {
  animation: pulseMoveLeft 1.2s infinite ease-in-out;
}
.arrow.pulse-right {
  animation: pulseMoveRight 1.2s infinite ease-in-out;
}

@keyframes pulseMoveTop {
  0%,
  100% {
    transform: translateX(-50%) translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateX(-50%) translateY(-10px) rotate(0deg);
  }
}
@keyframes pulseMoveBottom {
  0%,
  100% {
    transform: translateX(-50%) translateY(0px) rotate(180deg);
  }
  50% {
    transform: translateX(-50%) translateY(10px) rotate(180deg);
  }
}
@keyframes pulseMoveLeft {
  0%,
  100% {
    transform: translateY(-50%) translateX(0px) rotate(-90deg);
  }
  50% {
    transform: translateY(-50%) translateX(-10px) rotate(-90deg);
  }
}
@keyframes pulseMoveRight {
  0%,
  100% {
    transform: translateY(-50%) translateX(0px) rotate(90deg);
  }
  50% {
    transform: translateY(-50%) translateX(10px) rotate(90deg);
  }
}

/* CONTROL BUTTONS */
.control-buttons {
  position: absolute;
  bottom: 125px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 23px;
  z-index: 10;
}
.control-buttons button {
  width: 100px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  background-color: #fffaf0;
  border: 2px solid black;
  color: #000;
  cursor: pointer;
  border-radius: 5px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.1;
  padding: 5px;
  transition: transform 0.2s ease;
}
.control-buttons button:active {
  transform: scale(0.95);
}

/* HIGHLIGHTED BALL */
.ball.highlight {
  filter: drop-shadow(0 0 10px rgb(95, 67, 253)) brightness(1.3);
}

/* STEP NUMBER */
.step-number {
  position: absolute;
  top: -15px;
  left: 50px;
  font-size: 16px;
  font-weight: bold;
  color: #000000;
  background: rgba(255, 255, 255, 0.048);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: none;
  justify-content: center;
  align-items: center;
  animation: pulseNumber 1.2s infinite ease-in-out;
  z-index: 5;
}

@keyframes pulseNumber {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.2);
  }
}
.btn-new {
  background-color: #57a8ff !important;
  color: white !important;
  border: 2px solid #57a8ff !important;
}
.play-button-link {
  width: 100px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  background-color: #fffaf0;
  border: 2px solid black;
  color: #000;
  cursor: pointer;
  border-radius: 5px;
  text-decoration: none;
  white-space: normal;
  word-break: break-word;
  line-height: 1.1;
  padding: 5px;
  transition: transform 0.2s ease;
}
.play-button-link:active {
  transform: scale(0.95);
}
