/* Central stacking contract for every Mini stage popover (#12). */
.stage[data-mini-popover]::before{
  content:"";position:absolute;inset:0;z-index:20;
  background:rgba(16,34,27,.055);pointer-events:auto;
}
.stage[data-mini-popover] .viewport{pointer-events:none}
/* Only the open panel owns the upper layer; all scene controls stay below. */
.stage[data-mini-popover="neighborhoodPanel"] .district-controls,
.stage[data-mini-popover="envClockPanel"] .env-toolbar,
.stage[data-mini-popover="journeyRadioPanel"] .radio-controls,
.stage[data-mini-popover="journeyOptions"] .journey-controls,
.stage[data-mini-popover="goatPanel"] .goat-controls,
.stage[data-mini-popover="goatFoundPopup"] .goat-found-popup{z-index:30}
.stage[data-mini-popover="goatFoundPopup"] .goat-info-marker{z-index:3}
.stage :is(#neighborhoodPanel,#envClockPanel,#journeyRadioPanel,
  #journeyOptions,#goatPanel,#goatFoundPopup)[hidden]{display:none!important}
