/*
 * Containers for CardFront v2 (cards/system/v2). The frame, colors, typography,
 * and layout come from the design system's SVG; this file only sizes the drawn
 * card and styles the card back and the error state.
 *
 * Hooks: .card-front--tile / --full / --large, .card-front--<monster|equipment|
 * spell|trap|field|fusion>, .card-front--error, .card-back.
 */

.card-front,
.card-back {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 3.2% / 2.1%;
}

.card-front > svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 3px 6px rgb(0 0 0 / 0.35));
}

.card-back {
  object-fit: cover;
  box-shadow: 0 3px 8px rgb(0 0 0 / 0.35);
}

.card-back--missing {
  background: repeating-linear-gradient(45deg, #2b2d31 0 10px, #222428 10px 20px);
}

.card-front--error {
  display: grid;
  place-content: center;
  gap: 0.5rem;
  padding: 1rem;
  border: 2px dashed #9b1c1c;
  background: #fbeaea;
  color: #6d1414;
  text-align: center;
  font-size: 0.85rem;
}

.status-badge {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.05rem 0.4rem;
  border-radius: 3px;
  border: 1px solid currentColor;
}
.status-badge--approved { color: #1f6b3a; }
