.ww-alert-prompt[hidden] { display: none !important; }

.ww-alert-prompt {
  position: fixed;
  z-index: 25;
  inset-inline-end: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  width: min(355px, calc(100% - 44px));
  max-height: calc(100vh - 46px);
  max-height: calc(100dvh - 46px);
  overflow: auto;
  isolation: isolate;
  border: 1px solid #ae8651;
  border-radius: 9px;
  background: #252016;
  box-shadow: 0 12px 32px #0c0907c4, 0 0 0 3px #2c2118;
  animation: ww-alert-enter .28s ease-out;
}
@keyframes ww-alert-enter { from { opacity: 0; transform: translateY(9px); } }

.ww-alert-prompt__scene {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 0 34px 10px;
  background: linear-gradient(180deg,#16171026,#12140df0),
    url('/assets/images/forest-v8.webp') 55% 50% / cover #25271b;
  border-bottom: 3px double #c3975f;
}
.ww-alert-prompt__scene img {
  display: block;
  width: min(100%, 245px);
  height: auto;
  filter: drop-shadow(0 5px 6px #080704a8);
}
.ww-alert-prompt__scene span {
  color: #f2d7a6;
  font: 700 10px/1.35 system-ui, sans-serif;
  letter-spacing: .19em;
  text-align: center;
  text-transform: uppercase;
}
.ww-alert-prompt__paper {
  padding: 12px 19px 17px;
  background: linear-gradient(#fff3d7bd,#f4e1b1a8),
    url('/assets/parchment-v5.webp') center / cover #f3e4bd;
  text-align: center;
}
.ww-alert-prompt__rune {
  display: block;
  margin: 0 auto 4px;
  width: 88px;
  height: 14px;
  object-fit: contain;
}
.ww-alert-prompt h2 {
  margin: 0 0 7px;
  color: #302014;
  font: 700 24px/1.13 Georgia, serif;
}
.ww-alert-prompt .ww-alert-prompt__text {
  margin: 0 auto 12px;
  max-width: 30ch;
  color: #483320;
  font: 14px/1.42 system-ui, sans-serif;
}
.ww-alert-prompt .ww-alert-prompt__close {
  position: absolute;
  top: 4px;
  z-index: 1;
  right: 4px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff1d3;
  font: 26px/1 system-ui, sans-serif;
  cursor: pointer;
}
.ww-alert-prompt .ww-alert-prompt__close::before {
  position: absolute;
  inset: 7px;
  z-index: -1;
  border: 1px solid #b99a66;
  border-radius: 50%;
  background: #1a160fe8;
  content: '';
}
.ww-alert-prompt .ww-alert-prompt__action {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #8d7850;
  border-radius: 4px;
  background: linear-gradient(#3e5035,#293825);
  color: #fff2d7;
  font: 700 14px/1.3 system-ui, sans-serif;
  text-decoration: none;
}
.ww-alert-prompt .ww-alert-prompt__action:hover { background: #46583b; color: #fff2d7; }
.ww-alert-prompt .ww-alert-prompt__close:hover { background: #241d14; }
.ww-alert-prompt .ww-alert-prompt__action:focus-visible { outline: 2px solid #533618; outline-offset: 2px; }
.ww-alert-prompt .ww-alert-prompt__close:focus-visible { outline: 2px solid #f2d7a6; outline-offset: -3px; }
@media (max-width: 520px) {
  .ww-alert-prompt { inset-inline-end: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: min(330px, calc(100% - 24px)); }
  .ww-alert-prompt__scene img { width: min(100%, 205px); }
  .ww-alert-prompt__paper { padding: 9px 14px 12px; }
  .ww-alert-prompt h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .ww-alert-prompt { animation: none; } }
