/* Naipe dibujado con HTML/CSS. El tamaño se controla con el ancho (width) del contenedor .naipe. */
.naipe {
  --tinta: #16141c;
  position: relative;
  width: 200px;
  aspect-ratio: 5 / 7;
  border-radius: 7% / 5%;
  background: linear-gradient(160deg, #ffffff 0%, #f6f2ea 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 18px 40px -12px rgba(0, 0, 0, 0.55);
  color: var(--tinta);
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  container-type: inline-size;
  user-select: none;
}

.naipe--rojo {
  --tinta: #b3182b;
}

.naipe__esquina {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.95;
}

.naipe__esquina--sup {
  top: 5%;
  left: 7%;
}

.naipe__esquina--inf {
  bottom: 5%;
  right: 7%;
  transform: rotate(180deg);
}

.naipe__valor {
  font-size: 15cqi;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.naipe__palo {
  font-size: 12cqi;
}

.naipe__centro {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.naipe__simbolo {
  font-size: 52cqi;
  line-height: 1;
}

.naipe__simbolo--peq {
  font-size: 22cqi;
  margin-top: 2cqi;
}

/* Dorso propio: rojo profundo con celosía dorada */
.naipe--dorso {
  background: #6d111c;
  padding: 6cqi;
}

.naipe__marco {
  position: absolute;
  inset: 5cqi;
  border-radius: 5cqi;
  border: 1.2cqi solid #f4ecdb;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 220, 160, 0.25), transparent 45%),
    repeating-linear-gradient(45deg, rgba(212, 175, 104, 0.55) 0 0.6cqi, transparent 0.6cqi 7cqi),
    repeating-linear-gradient(-45deg, rgba(212, 175, 104, 0.55) 0 0.6cqi, transparent 0.6cqi 7cqi),
    #8a1724;
  display: grid;
  place-items: center;
}

.naipe__emblema {
  width: 34cqi;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #6d111c;
  border: 1cqi solid #d4af68;
  color: #f1d9a0;
  font-size: 18cqi;
}

.naipe__figura {
  font-size: 46cqi;
  font-weight: 600;
  line-height: 1;
  font-style: italic;
}
