/* 운영자 공지 사항(명세 v4.75, NT-1): 접속하면 가운데에 뜨는 공지 창. 관리자 페이지 미리 보기도 이 파일을 쓴다.
   틀 그림 frame.webp(1569×840)의 양피지 안쪽은 가로 12.7~88.4%, 세로 17.6~93.2%. 양쪽 깃발(가로 16% 안쪽·84% 바깥)을 피해 글은 17~83%에 둔다 */
.notice-dialog {
  position: fixed;
  inset: 0;
  z-index: 130; /* 무대(60)·레이드 알림(95)·확인 창(100) 위 */
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, rgba(20, 12, 4, 0.45), rgba(6, 4, 2, 0.78));
  backdrop-filter: blur(2px);
  pointer-events: auto;
}
.notice-dialog[hidden] {
  display: none;
}

.notice-frame {
  position: relative;
  width: min(94vw, 1080px, calc(92vh * 1569 / 840));
  aspect-ratio: 1569 / 840;
  background: url(../assets/notice/frame.webp) center / 100% 100% no-repeat;
  container-type: inline-size;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
  animation: notice-pop 0.42s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes notice-pop {
  from { transform: translateY(-18px) scale(0.86); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.notice-content {
  position: absolute;
  left: 17%;
  right: 17%;
  top: 19.5%;
  bottom: 9%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9cqw;
  color: #3f2814;
  text-align: center;
}

.notice-kicker {
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  width: 100%;
  margin: 0;
  font: 700 clamp(15px, 2.9cqw, 34px) / 1.2 'Noto Serif KR', 'Batang', serif;
  letter-spacing: 0.12em;
  color: #7a2e10;
  text-shadow: 0 1px 0 rgba(255, 244, 214, 0.9);
}
.notice-kicker::before,
.notice-kicker::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(122, 46, 16, 0.55) 30%, rgba(176, 120, 40, 0.8));
}
.notice-kicker::after {
  transform: scaleX(-1);
}

.notice-title {
  margin: 0;
  max-width: 100%;
  font: 700 clamp(14px, 2.1cqw, 25px) / 1.3 'Noto Sans KR', sans-serif;
  color: #9b2a17;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.notice-date {
  margin: -0.3cqw 0 0;
  font: 500 clamp(10px, 1.15cqw, 14px) / 1.3 'Noto Sans KR', sans-serif;
  color: #8a6a46;
}
.notice-date:empty {
  display: none;
}

.notice-body {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: auto;
  padding: 1cqw 1.6cqw;
  border-top: 2px dashed rgba(122, 76, 30, 0.35);
  border-bottom: 2px dashed rgba(122, 76, 30, 0.35);
  background: rgba(255, 250, 235, 0.35);
  font: 500 clamp(13px, 1.55cqw, 19px) / 1.7 'Noto Sans KR', sans-serif;
  color: #3a2511;
  text-align: left;
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-wrap: anywhere;
  scrollbar-width: thin;
  scrollbar-color: rgba(122, 76, 30, 0.55) transparent;
}

.notice-ok {
  flex: none;
  min-width: 11em;
  padding: 0.5em 2.4em;
  border: 2px solid #4b230b;
  border-radius: 10px;
  background: linear-gradient(#c8783a, #9a4f1d 55%, #7a3a12);
  box-shadow: inset 0 2px 0 rgba(255, 220, 160, 0.55), inset 0 -3px 0 rgba(60, 25, 5, 0.45), 0 3px 6px rgba(40, 18, 4, 0.45);
  color: #fff1cf;
  font: 700 clamp(13px, 1.6cqw, 20px) / 1.2 'Noto Sans KR', sans-serif;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 2px rgba(40, 14, 0, 0.8);
  cursor: pointer;
}
.notice-ok:hover,
.notice-ok:focus-visible {
  background: linear-gradient(#dc8b48, #ad5c25 55%, #84411a);
  outline: 2px solid #ffd27a;
  outline-offset: 2px;
}
.notice-ok:active {
  transform: translateY(1px);
}

/* 휴대폰 세로(v4.71): 틀을 세로로 조금 늘려 글 자리를 넓힌다 */
html.is-mobile .notice-frame {
  width: 98vw;
  aspect-ratio: 1569 / 1180;
}
html.is-mobile .notice-content {
  top: 18%;
  left: 16%;
  right: 16%;
}
