/* "What's new" popup — modal that appears once per release */
.whats-new {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(24, 16, 10, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.22s var(--ease, ease-out);
}

.whats-new--show {
  opacity: 1;
}

.whats-new--leaving {
  opacity: 0;
}

.whats-new-panel {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -16px rgba(20, 10, 0, 0.4),
              0 8px 24px -8px rgba(20, 10, 0, 0.2);
  overflow: hidden;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.22s var(--ease, ease-out);
  outline: none;
}

.whats-new--show .whats-new-panel {
  transform: translateY(0) scale(1);
}

.whats-new-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 999px;
  color: var(--ink-faint);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.whats-new-close:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.whats-new-body {
  padding: 26px 24px 8px;
  overflow-y: auto;
}

.whats-new-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.whats-new-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  text-transform: uppercase;
}

.whats-new-tag.tag-new {
  background: #e8f1e6;
  color: #3a6b32;
}

.whats-new-tag.tag-polish {
  background: var(--accent-soft);
  color: var(--accent);
}

.whats-new-panel h2 {
  margin: 0 0 14px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
  padding-right: 36px; /* avoid the close button */
}

.whats-new-items {
  margin: 0;
  padding: 0 0 0 18px;
  list-style: disc;
}

.whats-new-items li {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.whats-new-items li:last-child {
  margin-bottom: 0;
}

.whats-new-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
