.stock-notice {
  width: min(510px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  padding: clamp(9px,2.6vw,15px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #4772aa;
  border-radius: 23px;
  background: #0b2248 url('/static/img/stock-notice.webp') center / 100% 100% no-repeat;
  color: var(--ink);
  box-shadow: 0 25px 75px #030a1b80;
}
.stock-notice::backdrop { background: #080f20b0; }
html:has(.stock-notice[open]) { overflow: hidden; }
.stock-notice-card {
  position: relative;
  padding: clamp(18px,5vw,33px);
  border-radius: 15px;
  background: var(--paper);
  color: var(--ink);
}
.stock-notice-logo {
  width: min(180px, 73%);
  height: auto;
  margin: 1px 0 20px;
}
.stock-notice-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--muted);
  font-size: 1.37rem;
  line-height: 1;
}
.stock-notice-close:hover { color: var(--ink); background: var(--light-blue); }
.stock-notice h2 { margin: 0 0 10px; font-size: clamp(1.42rem,5vw,1.84rem); }
.stock-notice p { color: var(--muted); line-height: 1.62; }
.stock-notice-actions {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 6px;
  margin-top: 20px;
}
.stock-notice-contact, .stock-notice-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: center;
  line-height: 1.3;
  font-weight: 800;
}
.stock-notice-contact { background: #116445; color: #fff; }
.stock-notice-contact:hover { background: #0e5038; }
.stock-notice-contact svg { flex-shrink: 0; }
.stock-notice-continue { background: transparent; color: var(--blue-dark); }
.stock-notice-continue:hover { background: var(--light-blue); }
@media(max-width: 380px) {
  .stock-notice-close { top: 8px; right: 8px; }
  .stock-notice p, .stock-notice-actions { font-size: .9rem; }
}
