.statue-blessing-caption {
  position: fixed;
  left: 50%;
  bottom: max(98px, env(safe-area-inset-bottom, 0px) + 82px);
  z-index: 18;
  box-sizing: border-box;
  width: min(420px, calc(100vw - 48px));
  max-width: calc(100% - 32px);
  padding: 11px 18px 13px;
  border: 1px solid #b9985a;
  border-radius: 13px;
  background: rgba(21, 35, 30, 0.96);
  color: #fff5de;
  box-shadow: 0 5px 18px #10251d42;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  animation: statue-blessing-in 180ms ease-out;
}

.statue-blessing-caption[hidden] { display: none; }

.statue-blessing-heading,
.statue-blessing-name { display: block; }

.statue-blessing-heading { color: #f0cf8f; font-size: .72rem; }
.statue-blessing-name { font-size: .92rem; line-height: 1.45; }
.statue-blessing-line { margin: .3em 0 0; font-size: 1rem; line-height: 1.45; }

.statue-blessing-audio-toggle {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px) + 8px);
  bottom: max(126px, env(safe-area-inset-bottom, 0px) + 110px);
  z-index: 19;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  max-width: calc(100vw - 32px);
  padding: 7px 12px;
  border: 1px solid #bd9c61;
  border-radius: 22px;
  background: #1a2d26;
  color: #fff5de;
  font: 500 .83rem/1.25 system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
}

.statue-blessing-audio-toggle[aria-pressed='true'] { background: #e5cc97; color: #302319; }
.statue-blessing-audio-toggle:hover { background: #35483e; color: #fff5de; }
.statue-blessing-audio-toggle:focus-visible { outline: 2px solid #ffe3a3; outline-offset: 3px; }
.statue-blessing-audio-state { border-left: 1px solid currentColor; padding-left: 6px; font-size: .76rem; }

.statue-blessing-a11y {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes statue-blessing-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 760px) {
  .statue-blessing-caption {
    top: max(116px, env(safe-area-inset-top, 0px) + 88px);
    bottom: auto;
    width: min(340px, calc(100vw - 36px));
    padding: 8px 12px 10px;
  }

  .statue-blessing-audio-toggle {
    right: max(12px, env(safe-area-inset-right, 0px) + 8px);
    bottom: max(92px, env(safe-area-inset-bottom, 0px) + 76px);
  }
}

@media (max-height: 450px) {
  .statue-blessing-caption { top: auto; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .statue-blessing-caption { animation: none; }
}
