.notice {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0;
  padding: 0 16px 12px;
  background: rgba(0, 0, 0, 0.46);
  color: #241c14;
}
.notice.is-closed { display: none; }
.notice-sheet {
  width: min(980px, 100%);
  max-height: calc(100svh - 36px);
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 36px;
  row-gap: 12px;
  margin: 0;
  padding: 22px 26px 20px;
  background: #f4ecdf;
  color: #241c14;
  border: 1px solid #241c14;
  border-top: 3px solid #3ee0ff;
  font-family: "Noto Sans SC", "等线", "Microsoft YaHei UI", "微软雅黑", "PingFang SC", sans-serif;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  animation: notice-up 0.42s ease-out both;
}
.notice p {
  width: auto;
  max-width: none;
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0;
  word-spacing: normal;
  text-align: left;
  text-align-last: left;
  white-space: normal;
  overflow: visible;
}
.notice-sheet > p:first-child {
  grid-column: 1 / -1;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.notice-close,
.notice-reopen {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  background: #241c14;
  color: #f4ecdf;
  font: inherit;
  font-size: 17px;
  cursor: pointer;
}
.notice-close {
  grid-column: 1 / -1;
  justify-self: start;
  width: auto;
  margin-top: 4px;
}
.notice-reopen {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 30;
  background: #f4ecdf;
  color: #241c14;
  border: 1px solid #3ee0ff;
  font-size: 15px;
}
@keyframes notice-up {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
body:has(#notice:not(.is-closed)) .hero-grid {
  padding-bottom: 280px;
}
@media (max-width: 759px) {
  .notice { padding: 0; }
  .notice-sheet {
    width: 100%;
    grid-template-columns: 1fr;
    padding: 18px 18px calc(16px + env(safe-area-inset-bottom));
  }
  .notice-reopen {
    top: 16px;
    right: 92px;
    bottom: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .notice-sheet { animation: none; }
}
