/* Scoped announcement only; preserves the site's typography and page layout. */
.xm-opening-dialog {
  box-sizing: border-box;
  width: min(520px, calc(100% - 36px));
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 32px clamp(24px, 5vw, 40px) 30px;
  border: 1px solid #c3a16b;
  border-radius: 4px;
  color: #554433;
  background: #f2e8d8;
  font: 16px/1.85 'PingFang TC', 'Hiragino Sans GB', 'Helvetica Neue', sans-serif;
  overflow: auto;
  overscroll-behavior: contain;
  text-align: left;
}
.xm-opening-dialog::backdrop { background: rgb(38 29 24 / 56%); }
.xm-opening-dialog .xm-opening-logo {
  display: block;
  box-sizing: content-box;
  width: 40px;
  height: 72px;
  padding: 9px 12px;
  margin: 0 0 20px;
  background: #554433;
  object-fit: contain;
}
.xm-opening-dialog h2 {
  margin: 0 32px 20px 0;
  color: #554433;
  font-family: var(--calligraphy, 'XiaoMan Hand', Iansui, serif);
  font-size: clamp(24px, 6vw, 30px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: .02em;
}
.xm-opening-dialog p { margin: 0 0 16px; color: #554433; font: inherit; }
.xm-opening-dialog button { box-sizing: border-box; cursor: pointer; font: inherit; }
.xm-opening-dialog .xm-opening-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  color: #554433;
  background: transparent;
  font-size: 30px;
  line-height: 1;
}
.xm-opening-dialog .xm-opening-dismiss {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 24px;
  padding: 10px 20px;
  border: 1px solid #554433;
  border-radius: 2px;
  background: #554433;
  color: #f2e8d8;
}
.xm-opening-dialog button:focus-visible { outline: 2px solid #554433; outline-offset: 4px; }
html[lang^="en"] .xm-opening-dialog h2 { font-family: var(--pen, 'XiaoMan Pen', Caveat, cursive); }
