.whats-new-overlay {
  position: fixed;
  z-index: 100050;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--body-background);
  color: var(--text);
  overscroll-behavior: contain;
}

.whats-new-shell {
  position: relative;
  width: min(760px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(64px, calc(env(safe-area-inset-top) + 42px)) 18px calc(30px + env(safe-area-inset-bottom));
}

.whats-new-close {
  position: fixed;
  z-index: 2;
  top: max(14px, env(safe-area-inset-top));
  right: max(16px, calc((100vw - 724px) / 2));
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--heading);
  box-shadow: var(--shadow);
}

.whats-new-close svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
}

.whats-new-close:focus-visible,
.whats-new-done:focus-visible {
  outline: 3px solid var(--accent-glow);
  outline-offset: 3px;
}

.whats-new-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 6vw, 46px);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--card-border));
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 12%, var(--accent-glow), transparent 35%),
    linear-gradient(145deg, var(--accent-soft), transparent 58%),
    var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
}

.whats-new-hero::after {
  content: "";
  position: absolute;
  right: -76px;
  bottom: -94px;
  width: 240px;
  height: 240px;
  border: 32px solid var(--accent-soft);
  border-radius: 50%;
  pointer-events: none;
}

.whats-new-hero > * {
  position: relative;
  z-index: 1;
}

.whats-new-hero .eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.whats-new-hero h2 {
  max-width: 620px;
  margin: 0;
  color: var(--heading) !important;
  font-size: clamp(2.15rem, 8vw, 4rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.whats-new-hero p {
  max-width: 580px;
  margin: 18px 0 0;
  color: var(--text-secondary) !important;
  font-size: clamp(.94rem, 3vw, 1.08rem);
  line-height: 1.55;
}

.whats-new-store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 24px;
  padding: 0 20px;
  border-radius: 14px;
  text-decoration: none;
  font: inherit;
  font-weight: 850;
}

.whats-new-transfer {
  margin-top: 14px;
  padding: clamp(20px, 5vw, 30px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
}

.whats-new-transfer .eyebrow { color: var(--accent-text); font-size: .72rem; font-weight: 850; letter-spacing: .12em; }
.whats-new-transfer h3 { margin: 8px 0 20px; color: var(--heading) !important; font-size: clamp(1.3rem, 5vw, 1.8rem); }
.whats-new-steps { display: grid; gap: 12px; margin: 0; padding-left: 27px; }
.whats-new-steps li { padding: 13px 15px; border: 1px solid var(--card-border); border-radius: 15px; background: var(--surface); color: var(--text-secondary); line-height: 1.55; }
.whats-new-steps li::marker { color: var(--accent-text); font-weight: 900; }
.whats-new-steps strong { display: block; margin-bottom: 3px; color: var(--heading); }
.whats-new-steps b, .whats-new-safety b { color: var(--heading); }
.whats-new-safety { margin: 18px 0 0; padding: 14px 16px; border-radius: 15px; background: var(--accent-soft); color: var(--text-secondary); line-height: 1.5; }

.whats-new-view-count {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 24px;
}

.whats-new-view-count span {
  width: 24px;
  height: 5px;
  border-radius: 999px;
  background: var(--line);
}

.whats-new-view-count span.is-active {
  background: var(--accent);
}

.whats-new-view-count b {
  margin-left: 3px;
  color: var(--muted) !important;
  font-size: .68rem;
  letter-spacing: .04em;
}

.whats-new-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 14px;
}

.whats-new-card {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  align-items: start;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--card-border);
  border-radius: 21px;
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
}

.whats-new-card-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 15px;
  background: var(--accent-soft);
  color: var(--accent-text);
}

.whats-new-card-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.whats-new-card:nth-child(3) .whats-new-card-icon svg,
.whats-new-card:nth-child(6) .whats-new-card-icon svg {
  fill: currentColor;
  stroke: none;
}

.whats-new-card h3 {
  margin: 2px 0 7px;
  color: var(--heading) !important;
  font-size: 1rem;
  line-height: 1.18;
  letter-spacing: -.02em;
}

.whats-new-card p {
  margin: 0;
  color: var(--text-secondary) !important;
  font-size: .78rem;
  line-height: 1.5;
}

.whats-new-footer {
  display: grid;
  grid-template-columns: 1fr minmax(170px, 230px);
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  padding: 18px 20px;
  border: 1px solid var(--card-border);
  border-radius: 21px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.whats-new-footer p {
  margin: 0;
  color: var(--muted) !important;
  font-size: .76rem;
  line-height: 1.45;
}

.whats-new-done {
  min-height: 50px;
  border-radius: 14px;
  font: inherit;
  font-weight: 850;
}

@media (max-width: 620px) {
  .whats-new-shell { padding-inline: 14px; }
  .whats-new-close { right: 14px; }
  .whats-new-hero { border-radius: 24px; }
  .whats-new-grid { grid-template-columns: 1fr; gap: 10px; }
  .whats-new-card { padding: 17px; }
  .whats-new-footer { grid-template-columns: 1fr; }
  .whats-new-footer p { text-align: center; }
  .whats-new-transfer { padding: 18px 14px; }
  .whats-new-steps { padding-left: 23px; }
  .whats-new-steps li { padding: 12px; }
}

@media (prefers-reduced-motion: no-preference) {
  .whats-new-overlay { animation: whats-new-enter .22s ease-out both; }
  .whats-new-hero, .whats-new-card { animation: whats-new-rise .32s ease-out both; }
  .whats-new-card:nth-child(2) { animation-delay: .03s; }
  .whats-new-card:nth-child(3) { animation-delay: .06s; }
  .whats-new-card:nth-child(4) { animation-delay: .09s; }
  .whats-new-card:nth-child(5) { animation-delay: .12s; }
  .whats-new-card:nth-child(6) { animation-delay: .15s; }
}

@keyframes whats-new-enter { from { opacity: 0; } }
@keyframes whats-new-rise { from { opacity: 0; transform: translateY(10px); } }
