/* Existing DinoMoon artwork replaces large emoji placeholders. The illustration
   can extend beyond the smaller background disc without being cropped. */
.dino-illustration {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: min(100%, 160px);
  aspect-ratio: 1;
  margin: 0 auto 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  font-size: 0;
  line-height: 0;
  flex: 0 0 auto;
}

.dino-illustration::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 14%;
  border-radius: 50%;
  background: var(--illustration-disc, #e2edd7);
}

.dino-illustration > img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 9px 10px #274d2820);
}

.dino-illustration--hero {
  --illustration-disc: #d4edf4;
  justify-self: center;
  width: min(100%, 340px);
  margin-bottom: 0;
}

.dino-illustration--entry {
  width: min(100%, 240px);
}

.dino-illustration--waiting {
  width: min(100%, 190px);
}

/* Keep these rules more specific than the existing result-card span rules. */
.quiz-finish > .dino-illustration--result,
.boss-overlay .dino-illustration--result {
  display: grid;
  width: min(100%, 150px);
  margin: 0 auto 10px;
  font-size: 0;
}

.cloud-wall-empty .dino-illustration {
  --illustration-disc: #d4edf4;
  width: min(40vw, 180px);
}

.garden-illustration {
  position: absolute;
  z-index: 2;
  left: max(14px, env(safe-area-inset-left));
  bottom: 1%;
  width: clamp(120px, 21vw, 250px);
  pointer-events: none;
}

.garden-illustration > img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 7px 7px #264d3625);
}

@media (max-width: 640px) {
  .dino-illustration--hero { width: min(74vw, 270px); }
  .dino-illustration--entry { width: min(58vw, 210px); }
  .dino-illustration--empty { width: min(42vw, 140px); }
  .dino-illustration--waiting { width: min(48vw, 165px); }
}
