/* Cómo se ve una carta: imagen, dorso y respaldo en CSS. Tamaño: lo da el contenedor (alto). */
.carta {
  position: relative;
  display: block;
  height: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 6%/4%;
  container-type: size;
}
.carta__imagen, .carta__respaldo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}
.carta__imagen { object-fit: fill; }
.carta__respaldo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4cqh;
  background: var(--papel);
  color: var(--tinta);
  border: 1px solid var(--tinta);
  font-size: 30cqh;
  line-height: 1;
}
.carta__respaldo .simbolo { width: 60cqw; }
.carta--dorso {
  background:
    repeating-linear-gradient(45deg, transparent 0 4px, rgb(242 209 107 / .45) 4px 6px),
    var(--azul);
  border: 2px solid var(--papel);
  outline: 1px solid var(--tinta);
  outline-offset: -1px;
}
.simbolo { display: block; color: var(--color-palo); }
.simbolo svg { display: block; width: 100%; height: auto; }
