/* ---------- 更新のお知らせ ---------- */
@keyframes pop-in {
  from { opacity: 0; transform: translateY(-8px); }
}
.whatsnew {
  width: min(92vw, 440px);
  background: var(--card);
  border-radius: 20px;
  padding: 16px 20px 14px;
  margin-bottom: 24px;
  box-shadow: 0 12px 30px rgba(20, 20, 15, 0.08), 0 2px 6px rgba(20, 20, 15, 0.04);
  font-size: 13px;
  animation: pop-in 0.4s ease;
}
.whatsnew .wn-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.whatsnew .wn-title {
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink);
}
/* 右上の×。指で押しやすいように見た目より当たり判定を大きくとる */
.whatsnew .wn-close {
  flex: none;
  width: 32px;
  height: 32px;
  margin: -6px -10px -6px 0;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
}
.whatsnew .wn-close:hover { color: var(--ink); background: rgba(20, 20, 15, 0.05); }
/* 履歴は長いので本文だけをカードの中で巻く。OKは下に見えたまま */
.whatsnew.wn-history .wn-body {
  max-height: min(55vh, 460px);
  overflow-y: auto;
  padding-right: 6px;
  margin-right: -6px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.whatsnew.wn-history .wn-date:first-child { margin-top: 6px; }
.whatsnew .wn-date {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
  margin: 10px 0 4px;
}
.whatsnew ul {
  margin: 0;
  padding-left: 19px;
  color: #55554F;
  line-height: 1.75;
}
.whatsnew .wn-ok {
  margin-top: 13px;
  width: 100%;
  padding: 9px;
  border: none;
  border-radius: 999px;
  background: var(--line-color);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.12s, filter 0.15s;
}
.whatsnew .wn-ok:active { transform: scale(0.97); }
/* しばらくぶりの人向けに、細かい改善を畳んでおく開閉 */
.whatsnew .wn-more {
  margin-top: 6px;
  padding: 4px 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
