/* v3.7: Shared quiet cameos, with reserved space for the model and its controls. */
.waddles-cameo { margin: 0; color: inherit; }
.waddles-cameo waddles-cameo {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  isolation: isolate;
}
.waddles-cameo waddles-cameo > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cameo-controls { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; }
.cameo-controls button {
  appearance: none;
  font: inherit;
  font-size: .8rem;
  line-height: 1.25;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 12px 4px;
  min-height: 44px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.cameo-controls button:hover { text-decoration-thickness: 2px; }
.cameo-controls button:focus-visible { outline: 2px solid #34a2b9; outline-offset: 2px; }
.cameo-controls button:disabled { opacity: .55; cursor: default; text-decoration: none; }
.cameo-controls button[hidden] { display: none; }
.story-cameo { width: min(100%, 270px); margin: -12px auto 34px; }
.story-cameo figcaption { text-align: center; font-size: .85rem; margin-top: -10px; }
/* v3.9: The changelog hero, where Waddles presents the newest public release. */
.changelog-cameo { width: min(100%, 220px); margin: 4px auto 0; }
.story-cameo .cameo-controls { margin-top: 4px; }

/* v3.7: Replace the result avatar, leaving the board and keyboard untouched during play. */
.outcome .outcome-head { gap: 8px; margin-bottom: 4px; }
.outcome .outcome-head h2 { font-size: clamp(1.25rem, 4vw, 1.65rem); line-height: 1.15; }
.outcome-cameo { flex: 0 0 150px; width: 150px; }
.outcome-greeting { min-width: 0; }
.outcome-greeting .cameo-controls { gap: 8px; flex-wrap: wrap; justify-content: flex-start; margin-top: 6px; }
.outcome-greeting .cameo-controls button { font-size: .8rem; padding-inline: 2px; }
.outcome-greeting [data-cameo-motion] { opacity: .75; }
.outcome-head:has(waddles-cameo[data-resting="true"]) [data-cameo-motion] { visibility: hidden; }
@media (max-width: 420px) {
  .outcome-cameo { flex-basis: 132px; width: 132px; }
  .outcome-greeting .cameo-controls { column-gap: 8px; }
  .outcome-greeting .cameo-controls button { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .waddles-cameo *, .outcome.won { animation: none !important; transition: none !important; }
}
