.wrap {
  position: relative;
  height: 100%;
  /* min-height: 500px; */
}

.game {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 8px;
  transform-style: preserve-3d;
  perspective: 500px;
  min-height: 100%;
  height: 100%;
}

@-webkit-keyframes matchAnim {
  0% {
    background: #bcffcc;
  }
  100% {
    background: white;
  }
}

@keyframes matchAnim {
  0% {
    background: #bcffcc;
  }
  100% {
    background: white;
  }
}
.card {
  width: 94px;
  height: 94px;
  border-radius: 26px;
  text-align: center;
  display: block;
  perspective: 500px;
  position: relative;
  cursor: pointer;
  z-index: 50;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.card .inside {
  width: 100%;
  height: 100%;
  display: block;
  transform-style: preserve-3d;
  transition: 0.4s ease-in-out;
  background: transparent;
}
.card .inside.picked, .card .inside.matched {
  transform: rotateY(180deg);
}
.card .inside.matched {
  -webkit-animation: 1s matchAnim ease-in-out;
          animation: 1s matchAnim ease-in-out;
  -webkit-animation-delay: 0.4s;
          animation-delay: 0.4s;
}
.card .front,
.card .back {
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.card .front img,
.card .back img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}
.card .front {
  transform: rotateY(-180deg);
}
.card .back {
  transform: rotateX(0);
}
.container-countdown{
  width: 138px;
  display: flex;
  align-items: center;
  column-gap: .5rem;
  margin: 0 auto;
  background: var(--colorNaranja);
  padding: .8rem 1.8rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}
.countdown{
  color: var(--colorBlanco);
  font-size: 20px;
  font-family: var(--font-narrow);
  letter-spacing: 0.05rem;
}
.img-clock{
  width: 22px;
  aspect-ratio: 1/1;
  object-fit: contain;
}
@media screen and (max-width:768px){
  .card{
    width: 70px;
    height: 70px;
  }
  .container-countdown {
    justify-content: center;
    padding: 0.5rem 1.6rem;
  }
}