/* The original artwork remains behind the renderer as its loading/WebGL fallback. */
.marian-scenery { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; }
.marian-scenery[data-mode="depth"] { opacity: 1; }
.marian-scenery canvas { width: 100%; height: 100%; display: block; }
.has-marian-depth .guadalupe-atmosphere { opacity: 0.35; }
.has-marian-depth .guadalupe-backdrop { visibility: hidden; }
.has-marian-depth .guadalupe-actor { opacity: 0; transition: none; }
.has-marian-depth .guadalupe-actor::after { opacity: 0; }
.has-marian-depth .guadalupe-actor.is-apparition { animation: none; }
.marian-view-controls { position: absolute; z-index: 105; right: 24px; top: 112px; display: flex; gap: 4px; padding: 5px; background: rgba(255, 250, 235, 0.95); border: 1px solid #e7ce97; border-radius: 16px; box-shadow: 0 5px 22px #31231226; }
.marian-view-controls button { min-width: 48px; min-height: 48px; padding: 5px 12px; border: 0; border-radius: 11px; color: #4a321e; background: transparent; font: 700 16px/1.2 Georgia, serif; cursor: pointer; }
.marian-view-controls button[aria-pressed="true"] { background: #ecdbb1; color: #352715; }
.marian-view-controls button:focus-visible { outline: 3px solid #367088; outline-offset: 1px; }
@media (max-width: 860px) {
  .marian-view-controls { right: 12px; top: auto; bottom: 138px; }
}
@media (max-width: 520px) {
  .marian-view-controls { left: 12px; right: auto; bottom: 12px; display: grid; grid-template-columns: repeat(2, 60px); gap: 0; padding: 3px; }
  .marian-view-controls button { min-width: 60px; min-height: 44px; padding: 6px 5px; }
  .has-marian-depth .guadalupe-trail-meter { top: 120px; width: 172px; padding: 6px 10px; }
  .has-marian-depth .guadalupe-trail-meter > span { display: none; }
  .has-marian-depth:has(.guadalupe-quest-steps) .guadalupe-trail-meter { top: 154px; }
  .guadalupe-mystery-shell:has(.has-marian-depth) .guadalupe-count { flex: 0 0 78px; white-space: nowrap; gap: 4px; padding-inline: 5px; }
  .guadalupe-mystery-shell:has(.has-marian-depth) .guadalupe-gamebar { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; align-items: stretch; gap: 6px; padding: 8px 10px; }
  .guadalupe-mystery-shell:has(.has-marian-depth) .guadalupe-gamebar-main > span { display: none; }
  .guadalupe-mystery-shell:has(.has-marian-depth) .guadalupe-gamebar-main > strong { font-size: 16px; line-height: 1.2; }
  .guadalupe-mystery-shell:has(.has-marian-depth) .guadalupe-token-tray { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 3px; margin: 3px 0 0; }
  .guadalupe-mystery-shell:has(.has-marian-depth) .guadalupe-token { width: auto; min-height: 24px; }
  .guadalupe-mystery-shell:has(.has-marian-depth) .guadalupe-gamebar > .guadalupe-controls { display: flex; flex-wrap: nowrap; gap: 5px; }
  .guadalupe-mystery-shell:has(.has-marian-depth) .guadalupe-gamebar .btn { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 5px 7px; font-size: 16px; line-height: 1.1; white-space: normal; }
  .has-marian-depth .guadalupe-dpad { grid-template-columns: repeat(3, 44px); gap: 6px; }
  .has-marian-depth .guadalupe-dpad button { width: 44px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .marian-scenery { transition: none; }
}
