/* MadTimes card chrome — calibrated to card studio (studio.html) at view width 404px.
   Studio px → cqi: unit = px / 4.04. Do not invent alternate sizes. */
.face-mark,
.face-title,
.face-source,
.face-rarity,
.face-edition {
  position: absolute;
  z-index: 4;
  box-sizing: border-box;
  line-height: 1;
  pointer-events: none;
}
/* .mark — 13px / pad 6×10 / border 2 / radius 4 / glow 12 @ 55% */
.face-mark {
  border: 0.5cqi solid var(--logo-border, var(--logo, #ff4d00));
  border-radius: 0.99cqi;
  background: var(--logo-bg, #171410);
  color: var(--logo, #ff4d00);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 3.22cqi;
  padding: 1.49cqi 2.48cqi;
  box-shadow: 0 0 2.97cqi color-mix(in srgb, var(--logo-border, var(--logo, #ff4d00)) 55%, transparent);
  white-space: nowrap;
}
.face-title,
.face-source {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 2.97cqi;
  padding: 1.98cqi 3.96cqi;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
/* .title-pill — 12px / pad 8×16 / max side gap 32 */
.face-title {
  background: var(--pill, #ff4d00);
  color: var(--pill-ink, #1a0e08);
  width: max-content;
  max-width: calc(100% - 15.84cqi);
  text-overflow: clip;
}
/* .source-pill — 9px / pad 4×8 / letter-spacing 0.12em */
.face-source {
  background: var(--source, #171410);
  color: var(--source-ink, #fffaf4);
  font-size: 2.23cqi;
  letter-spacing: 0.12em;
  padding: 0.99cqi 1.98cqi;
  border: 0.25cqi solid transparent;
}
/* caption row gap 8px */
.face-row {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 1.98cqi;
  pointer-events: none;
}
.face-row .face-source,
.face-row .face-rarity {
  position: static;
}
/* .rarity — 9px / pad 4×8 / border 1 */
.face-rarity {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0.25cqi solid var(--rarity, #4c8dff);
  background: color-mix(in srgb, var(--rarity, #4c8dff) 24%, #171410);
  color: var(--rarity, #4c8dff);
  font-size: 2.23cqi;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.99cqi 1.98cqi;
  white-space: nowrap;
}
/* .edition — 8px / letter-spacing 0.14em */
.face-edition {
  border-radius: 0;
  background: transparent;
  color: rgba(255, 250, 244, 0.78);
  font-size: 1.98cqi;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 0;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}
