/* Emoji size follows the illustration box, not the browser viewport. */
.collectible { container-type: inline-size; }
.collectible .card-top { font-size: clamp(5px, 4.4cqw, 13px); }
.collectible .card-class { font-size: clamp(4px, 3cqw, 10px); }
.collectible .card-bottom h3 { font-size: clamp(9px, 8cqw, 26px); margin: .35em 0 .5em; }
.collectible .card-variant { font-size: clamp(5px, 4.5cqw, 12px); }
.collectible .emoji-art {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  gap: 0;
  padding: 8%;
  container-type: size;
  container-name: emoji-art;
  background: radial-gradient(circle, #f1edd4, #ddcda1);
}
.emoji-composition {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: min(3cqh, 9px);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  line-height: 1;
  text-align: center;
}
.emoji-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: min(2cqw, 9px);
  width: 100%;
  min-width: 0;
}
.emoji-symbol {
  display: inline-block;
  flex: 0 0 auto;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-size: min(160px, calc(78cqw / var(--emoji-columns) / var(--emoji-glyph-width, 1)), calc(68cqh / var(--emoji-rows)));
  font-style: normal;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
  white-space: pre;
  filter: drop-shadow(0 3px 0 #8d855126);
}
.emoji-symbol.emoji-word {
  font-family: "Consolas", "Courier New", monospace;
  font-weight: 700;
  line-height: 1.05;
  color: #514c33;
  text-shadow: 0 2px 0 #fff6;
}
.collectible .emoji-art > .emoji-caption {
  margin: 0;
  max-width: 100%;
  color: #766d49;
  font-family: var(--mono);
  font-size: min(8px, 2.7cqw);
  line-height: 1.2;
  letter-spacing: .06em;
  white-space: nowrap;
}
.collectible.variant-fullart .emoji-art {
  padding: 15% 8% 32%;
  grid-template-rows: minmax(0, 1fr);
}
.collectible.variant-fullart .emoji-caption { display: none; }
@container emoji-art (max-width: 120px) {
  .emoji-caption { display: none; }
}
@container emoji-art (max-height: 105px) {
  .emoji-caption { display: none; }
}
