/* Hide all Creature groups by default, but keep interactivity alive */
.pageItem.group[alt="Routine"],
.pageItem.group[alt="Prominence"],
.pageItem.group[alt="Obedience"],
.pageItem.group[alt="Scrutiny"],
.pageItem.group[alt="Resistance"],
.pageItem.group[alt="Inhibition"],
.pageItem.group[alt="Influence"] {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: relative;
  transition: opacity 0.2s ease;
}

/* Shown group — more specific so it overrides the hides */
.pageItem.group.creature-visible {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Make the image inside any Button fill the button’s box (works for SVGs) */
.pageItem.button img.pageItem[data-src$=".svg"],
.pageItem.button .pageItem.state img.pageItem[data-src$=".svg"] {
  position: absolute !important;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  box-sizing: border-box !important;
}

/* Force all SVG images with Drop-shadow class to render a shadow */
.pageItem.button img.pageItem.Drop-shadow[src$=".svg"],
.pageItem.button img.pageItem.Drop-shadow[data-src$=".svg"],
.pageItem.group img.pageItem.Drop-shadow[src$=".svg"],
.pageItem.group img.pageItem.Drop-shadow[data-src$=".svg"] {
  filter: drop-shadow(4px 4px 8px rgba(0,0,0,0.35));
  /* Optional subtle contrast boost so the shadow stands out */
  isolation: isolate;
}

.mso .state:has(> img.pageItem.Drop-shadow) {
  overflow: visible !important;
  filter: drop-shadow(4px 4px 10px rgba(0,0,0,0.35));
  -webkit-filter: drop-shadow(4px 4px 10px rgba(0,0,0,0.35));
}

/* Center all red "View Nudge Cards" buttons under their cards */
.pageItem.Red-button {
    position: absolute !important;
    transform: translateX(-1.5%) !important;
}