@import url('https://fonts.googleapis.com/css2?family=Inter:wght@900&display=swap');

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #1c1f24;
  touch-action: none;
  user-select: none;
}

body {
  background-image: url('./assets/photo.png');
  background-size: cover;
  background-position: center;
}

.game {
  text-align: center;
  position: relative;
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.header img {
  width: 50px;
  height: 50px;
  margin-right: 14px;
}

.score {
  color: #fff;
  font-size: 48px;
  font-weight: 900;
  font-family: 'Inter', sans-serif;
  user-select: none;
  position: relative;
  display: inline-block;
}

.circle {
  position: relative;
}

.circle img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  box-shadow: 0px 0px 16px 0px rgba(138, 143, 254, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  --tiltX: 0deg;
  --tiltY: 0deg;
  transform: rotateX(var(--tiltX)) rotateY(var(--tiltY));
  user-select: none;
}

.circle img:active {
  transform: scale(0.9);
  box-shadow: 0px 0px 32px 0px rgba(138, 143, 254, 0.3);
}

.plus-one {
  position: absolute;
  font-family: 'Inter', sans-serif;
  text-shadow: 0px 0px 8px rgba(173, 216, 230, 0.5);
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(180deg, #87CEFA 0%, #00BFFF 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  user-select: none;
  animation: move-up 1s forwards, fade-out 1s forwards;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes move-up {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-80px);
  }
}

@keyframes fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes resize {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}

.digit {
  display: inline-block;
  transition: transform 0.5s ease;
}

.digit.change {
  animation: resize 0.5s ease;
}

.bubble, .coin {
  position: absolute;
  width: 20px;
  height: 20px;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: float-up 1s forwards;
}

.bubble {
  background-image: url('./assets/puzir.png');
}

.coin {
  background-image: url('./assets/coin.png');
}

@keyframes float-up {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-200px);
    opacity: 0;
  }
}
