body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  background: transparent;
  color: white;
}

/* Banner */
.banner {
  text-align: center;
  margin-top: 20px;
}
.banner h1 {
  font-size: 2rem;
  margin-bottom: 5px;
}
.banner p {
  opacity: .8;
  margin-bottom: 15px;
}

.btn-primary {
  padding: 10px 20px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #8f56ff, #ff6e91);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  transition: .2s;
}
.btn-primary:hover {
  transform: translateY(-3px);
}

/* Game grid */
#game {
  margin: 20px auto;
  display: grid;
  grid-template-columns: repeat(4, 100px);
  gap: 12px;
  justify-content: center;
}

/* Card */
.card {
  width: 100px;
  height: 130px;
  perspective: 1000px;
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .45s;
  cursor: pointer;
}
.card-inner.flipped {
  transform: rotateY(180deg);
}

.card-back,
.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-back {
  background-image: url("imagenes/dorso.webp");
  background-size: cover;
  background-position: center;
}

.card-face {
  transform: rotateY(180deg);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}
.card-face img {
  width: 80%;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal.hidden {
  display: none;
}

.modal-content {
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 18px;
  text-align: center;
  width: 90%;
  max-width: 350px;
  border: 1px solid rgba(255,255,255,0.2);
}

#modal-ok {
  margin-top: 12px;
  width: 100%;
}
