#mahaveera-dock {
  position: fixed;
  z-index: 36;
  left: 50%;
  bottom: max(27px, calc(env(safe-area-inset-bottom) + 14px));
  translate: -50% 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  width: max-content;
  max-width: 95vw;
  padding: 6px;
  border: 1px solid #dbbc81a3;
  border-radius: 15px;
  background: #221811ef;
  color: #ffe9ba;
  box-shadow: 0 7px 26px #150b0699;
}
#mahaveera-dock button, #mahaveera-ritual button, #mahaveera-ritual select {
  min-height: 43px;
  padding: 6px 13px;
  border-radius: 8px;
  border: 1px solid #9d7146;
  background: #493124;
  color: #fff1d0;
  font: 600 .9rem/1.3 system-ui, sans-serif;
}
#mahaveera-dock button:hover, #mahaveera-ritual button:hover { background: #6d4730; }
#mahaveera-dock :focus-visible, #mahaveera-ritual :focus-visible { outline: 2px solid #ffd483; outline-offset: 2px; }
#mahaveera-dock p { flex-basis: 100%; max-width: 330px; margin: 4px 0 2px; text-align: center; line-height: 1.5; }
#mahaveera-ritual {
  width: min(430px, 90vw);
  padding: clamp(20px, 5vw, 32px);
  border: 1px solid #c49a63;
  border-radius: 22px;
  background: #2b211b;
  color: #ffedca;
  box-shadow: 0 20px 60px #0c0807a0;
}
#mahaveera-ritual::backdrop { background: #170e0a88; }
#mahaveera-ritual h2 { margin: 0 0 12px; font: bold 1.65rem/1.27 Georgia, 'Songti SC', serif; }
#mahaveera-ritual p { margin: 0 0 14px; line-height: 1.7; }
#mahaveera-ritual form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
#mahaveera-ritual a { color: #ffdea3; text-underline-offset: 4px; }
@media (max-width: 760px), (pointer: coarse) and (max-height: 600px) {
  #mahaveera-dock { bottom: max(156px, calc(env(safe-area-inset-bottom) + 146px)); }
  #mahaveera-dock button { padding-inline: 9px; }
}
@media (orientation: landscape) and (max-height: 470px) {
  #mahaveera-dock { bottom: max(108px, calc(env(safe-area-inset-bottom) + 99px)); }
}
