/* The Joomla module box contains ONLY the visitor controls. */
.mod-boszorkany { position: relative; }

/* Created by JS and appended directly to BODY. It is deliberately outside the module DOM. */
img.mod-boszorkany__witch {
  position: fixed !important;
  z-index: 2147483000 !important;
  left: 0;
  top: 0;
  width: var(--witch-width, 400px);
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  pointer-events: none !important;
  user-select: none !important;
  visibility: hidden;
  opacity: 1 !important;
  display: block !important;
  will-change: left, top, transform;
}
img.mod-boszorkany__witch.is-flying { visibility: visible; }
img.mod-boszorkany__witch.is-reverse { transform: scaleX(-1); }

.mod-boszorkany__audio { display: none !important; }

.mod-boszorkany__toggle {
  position: relative;
  z-index: 2147483001;
  padding: .55rem .8rem;
  border: 1px solid rgba(0,0,0,.25);
  border-radius: .45rem;
  background: rgba(255,255,255,.94);
  color: #111;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.mod-boszorkany__panel {
  position: absolute;
  z-index: 2147483001;
  top: calc(100% + .45rem);
  right: 0;
  width: min(310px, calc(100vw - 24px));
  padding: .8rem;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: .55rem;
  background: rgba(255,255,255,.97);
  color: #111;
  box-shadow: 0 4px 20px rgba(0,0,0,.22);
  font: 14px/1.35 system-ui, sans-serif;
}
.mod-boszorkany__panel[hidden] { display: none !important; }
.mod-boszorkany__row { margin-bottom: .7rem; }
.mod-boszorkany__row label { display:flex; justify-content:space-between; gap:.7rem; align-items:center; }
.mod-boszorkany__row input[type=range], .mod-boszorkany__row select { width:100%; margin-top:.3rem; }
.mod-boszorkany__check label { justify-content:flex-start; }
.mod-boszorkany__reset { width:100%; padding:.45rem; cursor:pointer; }
@media (max-width:767px) { .mod-boszorkany__panel { right:0; max-width:calc(100vw - 16px); } }
@media (prefers-reduced-motion: reduce) { img.mod-boszorkany__witch { transition:none !important; } }
