.jt-emergency-japa-fab {
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  bottom: calc(max(14px, env(safe-area-inset-bottom)) + 62px);
  z-index: 8998;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  max-width: min(240px, calc(100vw - 92px));
  padding: 10px 13px;
  border: 1px solid rgba(255, 179, 0, 0.38);
  border-radius: 999px;
  background: rgba(74, 0, 114, 0.9);
  color: #fffdf7;
  font-family: Inter, "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(74, 0, 114, 0.22);
  opacity: 0.86;
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.jt-emergency-japa-fab:hover,
.jt-emergency-japa-fab:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(74, 0, 114, 0.28);
}

.jt-emergency-japa-icon {
  display: inline-grid;
  width: 19px;
  height: 19px;
  place-items: center;
  flex: 0 0 auto;
}

.jt-emergency-japa-icon svg {
  width: 19px;
  height: 19px;
}

.jt-emergency-japa-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: max(28px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: radial-gradient(circle at center, rgba(35, 31, 42, 0.96), #050506 72%);
  color: #fffaf0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.jt-emergency-japa-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.jt-emergency-japa-close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fffaf0;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  opacity: 0.78;
  transition: opacity 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.jt-emergency-japa-close:hover,
.jt-emergency-japa-close:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.03);
}

.jt-emergency-japa-stage {
  width: min(960px, 100%);
  text-align: center;
}

.jt-emergency-japa-title {
  margin: 0 0 clamp(18px, 4vw, 34px);
  color: rgba(255, 250, 240, 0.72);
  font-family: Inter, "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(0.82rem, 0.76rem + 0.3vw, 1rem);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.jt-emergency-japa-mantra {
  display: grid;
  gap: clamp(10px, 2.2vw, 18px);
  font-family: "Noto Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(1.65rem, 1.05rem + 4.4vw, 5.4rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0;
}

.jt-emergency-japa-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.24em;
}

.jt-emergency-japa-word {
  color: rgba(255, 250, 240, 0.45);
  transition: color 190ms ease, opacity 190ms ease, text-shadow 190ms ease, transform 190ms ease;
}

.jt-emergency-japa-word.is-active {
  color: #ffca28;
  opacity: 1;
  text-shadow: 0 0 28px rgba(255, 202, 40, 0.34);
  transform: translateY(-0.03em);
}

.jt-emergency-japa-note {
  min-height: 1.4em;
  margin: clamp(18px, 4vw, 34px) auto 0;
  color: rgba(255, 250, 240, 0.62);
  font-size: clamp(0.9rem, 0.82rem + 0.25vw, 1rem);
  line-height: 1.55;
}

body.jt-emergency-japa-open {
  overflow: hidden;
}

body.jt-emergency-japa-open .jt-menu,
body.jt-emergency-japa-open .jt-menu-btn,
body.jt-emergency-japa-open .jt-lang-switcher,
body.jt-emergency-japa-open .japa-assistant-widget,
body.jt-emergency-japa-open .jt-install-pwa {
  visibility: hidden;
}

@media (max-width: 640px) {
  .jt-emergency-japa-fab {
    left: 12px;
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 58px);
    min-height: 38px;
    max-width: 50px;
    padding: 9px 11px;
    overflow: hidden;
  }

  .jt-emergency-japa-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .jt-emergency-japa-mantra {
    line-height: 1.36;
  }
}
