*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: auto;
  touch-action: auto;
}

.wrapper {
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to top, #dbdcd7 0%, #dddcd7 24%, #e2c9cc 30%, #e7627d 46%, #b8235a 59%, #801357 71%, #3d1635 84%, #1c1a27 100%);
  background-size: cover;
  background-position: center;
  display: grid;
  pointer-events: auto;
  touch-action: auto;
  place-items: center;
  position: relative;
}

.game-info {
  color: yellowgreen;
  z-index: 10;
  position: absolute;
  margin-top: 3rem;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.5rem 2rem;
  font-size: 1.5rem;
  backdrop-filter: blur(5px);
}

.tic-tac-toe {
  width: 90%;
  max-width: 25rem;
  background-color: rgba(219, 9, 9, 0.356);
  border-radius: 1rem;
  border: 1px solid rgba(194, 14, 14, 0.25);
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  aspect-ratio: 1 / 1;
  gap: 0.5rem;
}

.box {
  width: 100%;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  font-size: 3.3rem;
  color: plum;
  display: flex;
  justify-content: center;
  touch-action: manipulation;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: background-color 0.3s ease;
}

.box:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.btn {
  color: black;
  position: absolute;
  margin-bottom: 3rem;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(242, 170, 2, 0.962);
  border-radius: 1rem;
  border: 1px solid rgba(231, 8, 8, 0.932);
  padding: 0.6rem 2.5rem;
  cursor: pointer;
  display: none;
  font-size: 1.4rem;
  backdrop-filter: blur(5px);
}

.btn.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.win {
  background-color: rgba(0, 255, 0, 0.411);
}


@media (max-width: 768px) {
  .game-info {
    font-size: 1.2rem;
    padding: 0.4rem 1.5rem;
  }

  .tic-tac-toe {
    max-width: 20rem;
    padding: 0.8rem;
    gap: 0.4rem;
  }

  .box {
    font-size: 2.5rem;
  }

  .btn {
    font-size: 1.2rem;
    padding: 0.5rem 2rem;
  }
}

@media (max-width: 2000px) {
  .game-info {
    font-size: 0.7rem;
    padding: 0.3rem 1rem;
    top: 1rem;
  }

  .tic-tac-toe {
    max-width: 15rem;
    padding: 0.6rem;
    gap: 0.3rem;
  }

  .box {
    font-size: 2rem;
  }

  .btn {
    font-size: 0.7rem;
    padding: 0.4rem 1.5rem;
    bottom: 1.5rem;
  }
}