/* Optional, isolated bat-flight enhancement. Approved page styles are unchanged. */
.mza_bat_flight_overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}

.mza_bat_flight_overlay[hidden],
.mza_bat_toggle[hidden] {
  display: none;
}

.mza_bat_flyer {
  position: absolute;
  top: 0;
  left: 0;
  width: 144px;
  height: 86.4px;
  opacity: 1;
  transform-origin: center;
  filter: drop-shadow(0 5px 4px rgb(0 0 0 / 18%));
  will-change: transform;
}

.mza_bat_art {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.mza_bat_membrane {
  fill: url("#mza_flight_membrane");
  stroke: #bdac8c;
  stroke-width: 1.1px;
  stroke-linejoin: round;
}

.mza_bat_finger {
  stroke: #b59a78;
  stroke-width: 1.25px;
  stroke-linecap: round;
  opacity: 0.74;
}

.mza_bat_edge {
  stroke: #211f1a;
  stroke-width: 2.6px;
  stroke-linecap: round;
}

.mza_bat_toggle {
  box-sizing: border-box;
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 41;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #82967b;
  border-radius: 30px;
  background: #f6f7e9;
  box-shadow: 0 4px 16px rgb(3 41 25 / 12%);
  color: #074c30;
  font: 600 14px / 1.3 "Segoe UI", Arial, sans-serif;
  cursor: pointer;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.mza_bat_toggle:hover {
  background: #e8efbf;
  box-shadow: 0 5px 20px rgb(3 41 25 / 22%);
}

.mza_bat_toggle:focus-visible {
  outline: 3px solid #074c30;
  outline-offset: 4px;
}

.mza_bat_toggle_icon {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mza_bat_play_icon {
  display: none;
}

.mza_bat_toggle[aria-pressed="false"] .mza_bat_pause_icon {
  display: none;
}

.mza_bat_toggle[aria-pressed="false"] .mza_bat_play_icon {
  display: block;
}

@media (max-width: 600px), (max-width: 1024px) and (max-height: 500px) {
  .mza_bat_flyer {
    width: 98px;
    height: 58.8px;
  }
}

@media (max-width: 600px) {
  .mza_bat_toggle {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    padding: 12px;
  }

  .mza_bat_toggle_text {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mza_bat_toggle {
    transition: none;
  }
}
