/* "What's new" (public/whatsnew.js): a dark scene with floating logos over a rising glow, then the
   three things that are new. The scene stays dark in both themes; the body follows the theme. */
.wn { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 28px; overflow: hidden; background: var(--surface); color: var(--body);
  box-shadow: 0 0 0 1px var(--line-2), 0 40px 120px -30px rgba(0, 0, 0, 0.7); }
.wn[open] { display: flex; flex-direction: column; animation: wn-in 520ms var(--ease-reveal); }
.wn::backdrop { background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: wn-fade 400ms ease both; }
@keyframes wn-in { from { opacity: 0; transform: translateY(18px) scale(0.97); } }
@keyframes wn-fade { from { opacity: 0; } }

.wn-scene { position: relative; flex: none; height: 250px; overflow: hidden; isolation: isolate; background: #050608; }
.wn-glow { position: absolute; inset: 0; z-index: -1;
  /* Anticode's light: the blue pen line over a blue glow rising from below */
  background: linear-gradient(90deg, transparent, rgba(79, 140, 255, 0.8), transparent) 50% 82% / 64% 2px no-repeat,
    radial-gradient(70% 55% at 50% 118%, rgba(140, 185, 255, 0.6), transparent 75%),
    radial-gradient(110% 80% at 50% 125%, rgba(47, 107, 255, 0.6), rgba(47, 107, 255, 0.15) 55%, transparent 80%);
  animation: wn-rise 1400ms var(--ease-reveal) both; }
.wn-glow::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1.3px); background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(#000, transparent 70%); mask-image: linear-gradient(#000, transparent 70%); }
@keyframes wn-rise { from { opacity: 0; transform: translateY(40px); } }

.wn-mark { position: absolute; left: var(--x); top: var(--y); display: grid; place-items: center; width: 52px; height: 52px; translate: -50% -50%; border-radius: 16px;
  background: rgba(20, 20, 22, 0.78); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 14px 30px -10px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: wn-pop 700ms var(--ease-reveal) both, wn-float 6s ease-in-out infinite alternate; animation-delay: calc(300ms + var(--d) * -120ms), var(--d); }
.wn-mark svg { width: 26px; height: 26px; fill: var(--c); }
@keyframes wn-pop { from { opacity: 0; scale: 0.6; } }
@keyframes wn-float { to { transform: translateY(-9px) rotate(-3deg); } }
.wn-center { position: absolute; left: 50%; top: 46%; width: 44px; height: auto; translate: -50% -50%; filter: brightness(0) invert(1) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5)); animation: wn-pop 900ms var(--ease-reveal) 200ms both; }

.wn-x { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.wn-x:hover { background: rgba(255, 255, 255, 0.24); }
.wn-x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wn-x svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.wn-body { display: grid; gap: var(--s-5); padding: var(--s-6) var(--s-6) var(--s-6); overflow: auto; }
.wn-body h2 { font-size: clamp(22px, 3vw, 27px); font-weight: 600; letter-spacing: -0.02em; color: var(--text); text-wrap: balance; }
.wn-lede { margin-top: calc(var(--s-3) * -1); font-size: 15px; line-height: 1.55; color: var(--muted); }
.wn-list { display: grid; gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
.wn-list li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.wn-list li > svg { width: 36px; height: 36px; padding: 9px; border-radius: 10px; background: var(--raised); fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.wn-list b { display: block; font-size: 15px; font-weight: 600; color: var(--text); }
.wn-list span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.wn-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.wn-actions .btn { min-height: 44px; justify-content: center; }
@media (max-width: 480px) { .wn-scene { height: 190px; } .wn-mark { width: 42px; height: 42px; } .wn-mark svg { width: 21px; height: 21px; } .wn-actions { grid-template-columns: 1fr; } .wn-body { padding: var(--s-5); } }
@media (prefers-reduced-motion: reduce) { .wn[open], .wn::backdrop, .wn-glow, .wn-mark, .wn-center { animation: none !important; } }
