/* Correções de camadas e visibilidade do cenário */

.scene {
  position: fixed !important;
  inset: 0 !important;
  z-index: 5 !important;
  overflow: hidden;
  pointer-events: none;
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
}

.scene > * {
  pointer-events: auto;
}

html {
  background: #0a1628 !important;
}

body {
  background: transparent !important;
}

body.zug-phase-night,
body.zug-phase-dawn,
body.zug-phase-day,
body.zug-phase-dusk {
  background: transparent !important;
}

body::after {
  z-index: 0 !important;
  background: radial-gradient(
    ellipse 120% 80% at 50% 100%,
    rgba(0, 0, 0, 0.18) 0%,
    transparent 55%
  ) !important;
}

.pet-status-float,
.game-header,
.right-dock,
.side-stack,
.inventory-dock,
.shop-overlay,
.shop-fab,
.toast,
.particles,
.held-food,
.hint,
.title {
  z-index: 100 !important;
}

.toast,
#toast {
  z-index: 320 !important;
}

#purchaseResultModal,
.purchase-result-modal,
.purchase-result-modal[aria-hidden="false"] {
  z-index: 340 !important;
}

#shopModal,
.shop-modal,
.shop-modal.is-open {
  z-index: 240 !important;
}

/* Menu conta sempre acima do relógio dia/noite (mesmo DOM depois) */
.user-fab-wrap {
  z-index: 120 !important;
}

.user-fab-wrap.is-open {
  z-index: 140 !important;
}

.day-cycle-widget {
  z-index: 88 !important;
}

.dog-play-layer {
  z-index: 20 !important;
}

.poop-layer {
  z-index: 35 !important;
  pointer-events: none !important;
}

.poop-layer .poop-pile {
  z-index: 36 !important;
}
