* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: 0;
  direction: ltr;
  font-family: Arial, Helvetica, sans-serif;
}

html,
body,
.root {
  height: 100vh;
  width: 100vw;
  background-color: #ff3459;
  position: relative;
  overflow: hidden;
}

.ring {
  width: 300px;
  height: 300px;
  border: 12px solid #000;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.ball-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ball {
  width: 25px;
  height: 25px;
  background: #fff;
  border-radius: 50%;
  margin: -45px auto;
  transition: margin 100ms;
}

.ball.in {
  margin: 10px auto;
}

.ball > div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: 50%;
  width: 5px;
  height: 5px;
  transition: all 100ms ease-in;
}

.mini-ball {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: absolute;
  animation: miniBall 800ms linear;
  background: #fff;
}

.obs-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.obs {
  margin: 0 auto;
  width: 10px;
  animation: obstacleAppearance 150ms forwards;
  background: #000;
}

.obs.out {
  transform: translateY(-100%);
  margin-top: -12px;
}

.score-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.score {
  margin: 15px auto;
  width: 12px;
  height: 12px;
  animation: scoreAnimation 2s linear infinite;
  background: #fff;
  border-radius: 2px;
}

.score.out {
  margin-top: -35px;
}

.user-score {
  position: absolute;
  top: 40px;
  left: 50px;
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
}

@keyframes scoreAnimation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes obstacleAppearance {
  from {
    height: 0;
  }
  to {
    height: 30px;
  }
}

@keyframes miniBall {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(0);
  }
}

.user-guide {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.6);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  animation: user-guide 2s linear forwards;
  animation-delay: 3s;
}

@keyframes user-guide {
  0% {
    opacity: 1;
  }
  99% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    display: none;
  }
}

.keyboard {
  display: grid;
  grid-template-columns: repeat(10, 70px);
  gap: 10px;
  padding: 20px;
  background: #000;
  border-radius: 5px;
}

.keyboard .key {
  aspect-ratio: 1;
  background: #353535;
  border-radius: 4px;
}

.keyboard .key.space {
  grid-column: 4 / span 4;
  aspect-ratio: unset;
  box-shadow: 0 0 20px 4px #fff;
}

.user-guide p {
  color: #fff;
  font-size: 1.5rem;
  margin-block: 30px;
}
