


#notice {
  box-sizing: border-box;
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px - var(--sat) - var(--sab));
  overflow-y: auto;
  margin: auto;
  padding: 22px 22px 18px;
  border: none;
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-panel);
  background: var(--bg);
  color: var(--body-text);
  box-shadow: var(--card-shadow);
  font-family: var(--font-ui);
}
#notice::backdrop { background: color-mix(in srgb, var(--ink) 45%, transparent); }
#notice h2 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  overflow-wrap: anywhere;
}
#notice p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.notice-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.notice-buttons > * { min-height: 44px; }
#notice-ok { min-width: 96px; }

.notice-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: var(--pill);
  background: var(--bg);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
}
.notice-link:hover { background: var(--bg-soft); }
.notice-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 420px) {
  #notice { padding: 18px 16px 16px; }
  .notice-buttons > * { flex: 1 1 100%; }
}
