.home-notice {
  width: min(620px, calc(100vw - 24px), calc(100svh - 150px));
  max-width: calc(100vw - 24px);
  max-height: calc(100svh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #fffdf8;
  color: #172019;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
}

.home-notice::backdrop { background: rgba(15, 25, 18, .65); }
.home-notice:not([open]) { display: none; }
.home-notice__header { padding: 12px 16px; }
.home-notice__header h2 { margin: 0; font-size: 16px; }
.home-notice__header p { margin: 3px 0 0; font-size: 13px; color: #60675f; }
.home-notice__image { display: block; width: 100%; height: auto; }
.home-notice__actions { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; }
.home-notice__actions button {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: inherit;
  cursor: pointer;
}
.home-notice__actions [data-notice-close] { background: #2c5f2e; color: white; }
.home-notice__actions button:focus-visible { outline: 3px solid #c98a16; outline-offset: 2px; }
html.has-home-notice { overflow: hidden; }
