.copyright-notice {
  box-sizing: border-box;
  width: min(424px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  color: #fff8fa;
  background: #260e1b;
  border: 1px solid #bc4c61;
  border-radius: 18px;
  box-shadow: 0 18px 64px #21071766;
  font-family: Kanit, "Leelawadee UI", Tahoma, sans-serif;
  text-align: center;
}
.copyright-notice:not([open]) { display: none; }
.copyright-notice::backdrop { background: rgb(36 17 29 / 66%); }
html:has(.copyright-notice[open]) { overflow: hidden; }
.notice-card {
  position: relative;
  padding: 28px clamp(17px, 5vw, 30px) 20px;
  background: radial-gradient(ellipse at 50% 19%, #481421, #2c101e 58%, #230e19);
}
.notice-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 12px;
  background: repeating-linear-gradient(130deg, #ff6369 0 17px, #8c2239 17px 33px);
}
.notice-close-form { position: absolute; right: 5px; top: 15px; margin: 0; }
.notice-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff4f8;
  background: transparent;
  cursor: pointer;
  font: 32px/1 Arial, sans-serif;
}
.notice-close:hover { background: #733451; }
.notice-close:focus-visible { outline: 2px solid #ffc5dc; outline-offset: -5px; }
.notice-sign {
  display: block;
  color: #ff9294;
  font: 66px/1 "Segoe UI Symbol", sans-serif;
  text-shadow: 0 0 12px rgb(255 49 68 / 48%);
}
.copyright-notice h2 {
  margin: 4px 0 16px;
  color: #ff6065;
  font: 700 clamp(46px, 10vw, 62px)/1.2 Kanit, Tahoma, sans-serif;
  text-shadow: 0 0 5px rgb(255 48 62 / 68%), 0 0 20px rgb(255 30 61 / 52%);
}
#copyright-message { font-size: 17px; line-height: 1.55; text-wrap: pretty; }
#copyright-message p { margin: 0; }
#copyright-message p + p { margin-top: 9px; }
.notice-word {
  margin-top: 18px;
  color: #ff7479;
  font: 700 clamp(28px, 6vw, 36px)/1.1 Kanit, Arial, sans-serif;
  letter-spacing: .065em;
  text-shadow: 0 0 9px rgb(255 37 57 / 48%);
}
@media (max-width: 360px), (max-height: 540px) {
  .notice-card { padding-block: 22px 14px; }
  .notice-sign { font-size: 54px; }
  .copyright-notice h2 { font-size: 44px; margin-bottom: 9px; }
  #copyright-message { font-size: 15px; }
}
