.site-notice {
  position: fixed;
  z-index: 350;
  inset: 0;
  width: auto;
  display: grid;
  padding: 20px;
  place-items: center;
  color: #f7f2f8;
  background: #100a16d9;
  opacity: 0;
  backdrop-filter: blur(18px) saturate(.75);
  transition: opacity .26s;
  transform: none;
}

.site-notice.is-open { opacity: 1; }

.notice-card {
  position: relative;
  width: min(760px, 100%);
  min-height: 430px;
  max-height: calc(100svh - 40px);
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
  border: 1px solid #ffffff2b;
  border-radius: 34px;
  background: linear-gradient(145deg, #2b1730 0%, #130e19 72%);
  box-shadow: 0 45px 140px #000a;
  transform: translateY(16px) scale(.985);
  transition: transform .38s cubic-bezier(.2,.75,.25,1);
}

@media (max-height: 600px) and (min-width: 681px) {
  .notice-card { min-height: 0; padding: 24px 34px; }
  .notice-card p { margin: 28px 0; font-size: clamp(34px, 5vw, 48px); }
}

.site-notice.is-open .notice-card { transform: none; }
.notice-card::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -120px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: #dba3cb26;
}

.notice-card header,
.notice-card footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notice-card header b {
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.notice-card button {
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.notice-card header button {
  width: 42px;
  height: 42px;
  border: 1px solid #ffffff30;
  border-radius: 50%;
  font-size: 22px;
}

.notice-card p {
  position: relative;
  max-width: 620px;
  margin: 70px 0;
  font: 400 clamp(38px, 6vw, 68px)/.98 "Forum", serif;
  letter-spacing: -.035em;
}

.notice-card footer {
  padding-top: 18px;
  border-top: 1px solid #ffffff28;
}

.notice-card footer span {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.notice-card footer button {
  padding: 12px 20px;
  border: 1px solid #ffffff3b;
  border-radius: 30px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.site-notice.notice-urgent { background: #180b14e6; }
.notice-urgent .notice-card { background: linear-gradient(145deg, #5b1837, #160d18 70%); }
.notice-urgent .notice-card::before { background: #ff6ba43b; }

@media (max-width: 680px) {
  .site-notice { padding: 12px; }
  .notice-card { min-height: 0; padding: 24px; overflow-y: auto; border-radius: 24px; }
  .notice-card p { margin: 30px 0; font-size: clamp(22px, 7.4vw, 32px); }
  .notice-card footer { align-items: center; gap: 12px; flex-direction: row; }
  .notice-card footer button { width: auto; padding: 10px 14px; }
}
