.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;
}

.jt-emergency-japa-audio {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: clamp(16px, 3.5vw, 28px) auto 0;
  padding: 0 18px;
  border: 1px solid rgba(255, 202, 40, 0.46);
  border-radius: 999px;
  background: rgba(255, 202, 40, 0.12);
  color: #ffdf6e;
  font: 700 0.92rem/1.1 Inter, "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  cursor: pointer;
}

.jt-emergency-japa-audio.is-visible {
  display: inline-flex;
}

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);
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
    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;
  }
}

.jt-emergency-japa-icon {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: #ffeb3b;
  color: #4a0072;
  box-shadow: 0 0 0 4px rgba(255, 235, 59, 0.16);
}

body.jt-emergency-japa-open .jtal-launcher,
body.jt-emergency-japa-open .jtpwa-launcher {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.jt-emergency-japa-fab {
  left: auto;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + 56px);
  width: 46px;
  min-width: 46px;
  max-width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border-radius: 999px;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
  transition: width 0.18s ease, max-width 0.18s ease, padding 0.18s ease, opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.jt-emergency-japa-fab.jt-floating-intro,
.jt-emergency-japa-fab:hover,
.jt-emergency-japa-fab:focus-visible {
  width: auto;
  min-width: 46px;
  max-width: min(230px, calc(100vw - 32px));
  padding: 0 16px 0 13px;
  border-radius: 999px;
}
@media (max-width: 640px) {
  .jt-emergency-japa-fab {
    left: auto;
    right: 12px;
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 52px);
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    min-height: 44px;
  }
  .jt-emergency-japa-fab.jt-floating-intro,
  .jt-emergency-japa-fab:hover,
  .jt-emergency-japa-fab:focus-visible {
    width: auto;
    min-width: 44px;
    max-width: min(212px, calc(100vw - 28px));
    padding: 0 13px;
    border-radius: 999px;
  }
}

.jt-emergency-japa-fab {
  width: 46px;
  min-width: 46px;
  max-width: 46px;
  height: 46px;
  min-height: 46px;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
}

.jt-emergency-japa-fab.jt-floating-intro,
.jt-emergency-japa-fab:hover,
.jt-emergency-japa-fab:focus-visible {
  width: auto;
  min-width: 46px;
  max-width: min(230px, calc(100vw - 32px));
  padding: 0 16px 0 13px;
  border-radius: 999px;
}

.jt-emergency-japa-fab.jt-floating-intro .jt-emergency-japa-label,
.jt-emergency-japa-fab:hover .jt-emergency-japa-label,
.jt-emergency-japa-fab:focus-visible .jt-emergency-japa-label {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .jt-emergency-japa-fab {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    min-height: 44px;
  }
  .jt-emergency-japa-fab.jt-floating-intro,
  .jt-emergency-japa-fab:hover,
  .jt-emergency-japa-fab:focus-visible {
    width: auto;
    min-width: 44px;
    max-width: min(180px, calc(60vw - 18px));
    padding: 0 13px;
    border-radius: 999px;
  }
}
.jt-emergency-japa-fab {
  left: auto;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + 56px);
}
@media (max-width: 640px) {
  .jt-emergency-japa-fab {
    left: auto;
    right: 12px;
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 52px);
  }
  .jt-emergency-japa-fab.jt-floating-intro,
  .jt-emergency-japa-fab:hover,
  .jt-emergency-japa-fab:focus-visible {
    max-width: min(212px, calc(100vw - 28px));
  }
}
