/* Mary's Book: WHAT'S NEW (DESIGN.md 6.7).  Adapted from 79. Mike's Map/app/shared/whatsnew.css on November 29, 2026:
   the same card, stage and buttons, in the book's paper, plum and candlelight; the scenes are the book's own (an
   ornament opening, a card sliding into the Rolodex, a lantern lifting).  Nothing under 18 px.  Every move stops
   under reduced motion (the script draws beat 3 at once). */
.mmnew-scrim { position: fixed; inset: 0; z-index: 2500; background: rgba(42,27,46,.55); display: flex; align-items: center; justify-content: center; padding: 12px; }
.mmnew { width: min(40rem, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; background: var(--paper); color: var(--ink); border-radius: 20px; padding: 1rem 1.2rem 1.2rem;
  display: flex; flex-direction: column; gap: .7rem; box-shadow: 0 24px 60px rgba(42,27,46,.4); font: 400 1rem/1.5 var(--sans); }
.mmnew-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.mmnew-k { margin: 0; font-weight: 700; color: var(--ink-2); }
.mmnew-x { width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--line); border-radius: 14px; background: var(--card); color: var(--plum); cursor: pointer; }
.mmnew-stage { position: relative; overflow: hidden; height: clamp(120px, 24vh, 200px); background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom)); border-radius: 14px; color: var(--ink); font: 600 18px/1.2 var(--sans); }
.mmnew-t { margin: 0; font: 600 1.6rem/1.2 var(--serif); color: var(--plum); }
.mmnew-say { margin: 0; min-height: 4.5rem; }
.mmnew-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.mmnew-dots { display: flex; gap: 8px; } .mmnew-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); } .mmnew-dots i.on { background: var(--plum); }
.mmnew-btns { display: flex; gap: .6rem; margin-left: auto; }
.mmnew-go { background: var(--accent) !important; color: var(--accent-ink) !important; border-color: var(--accent) !important; min-width: 7rem; }
@media (max-width: 599px) { .mmnew-scrim { align-items: flex-end; padding: 0; } .mmnew { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; } }
@keyframes mmnew-in { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
.mmnew.go .mmnew-stage { animation: mmnew-in .3s ease-out both; }
.mmnew.go .mmnew-t { animation: mmnew-in .3s ease-out .04s both; }
.sc { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.sc * { transition: transform .5s ease, opacity .5s ease; }
.sc-ball { width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #F1C27D, #A3202E 70%); box-shadow: 0 0 20px 6px rgba(243,201,139,.7); }
.sc-card { position: absolute; background: var(--card); border-radius: 12px; padding: .5rem 1rem; font-family: var(--serif); color: var(--plum); opacity: 0; transform: translateY(16px); }
[data-beat="2"] .sc-card, [data-beat="3"] .sc-card { opacity: 1; transform: none; }
[data-beat="2"] .sc-ball, [data-beat="3"] .sc-ball { transform: scale(.6) translateY(-50px); }
.sc-c { position: absolute; width: 120px; height: 72px; background: var(--card); border-radius: 10px; box-shadow: var(--shadow); border-top: 4px solid var(--rose); }
.sc-c.c1 { transform: translateX(-60px) rotate(-6deg); } .sc-c.c2 { transform: translateX(60px) rotate(5deg); }
.sc-c.new { display: flex; align-items: center; justify-content: center; color: var(--plum); transform: translateY(-140px); }
[data-beat="2"] .sc-c.new, [data-beat="3"] .sc-c.new { transform: none; }
.sc-lantern { width: 34px; height: 44px; border-radius: 10px; background: radial-gradient(#FFF3C4, var(--glow) 60%, var(--amber)); box-shadow: 0 0 20px 8px rgba(243,201,139,.7); }
[data-beat="2"] .sc-lantern, [data-beat="3"] .sc-lantern { transform: translateY(-60px) scale(.6); opacity: .8; }
.sc-star { position: absolute; top: 18%; width: 10px; height: 10px; border-radius: 50%; background: #FFF3C4; opacity: 0; }
[data-beat="3"] .sc-star { opacity: 1; }
.sc-word { font: italic 600 1.6rem var(--serif); color: var(--plum); background: rgba(255,253,248,.94); padding: .3rem 1rem; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .mmnew.go .mmnew-stage, .mmnew.go .mmnew-t { animation: none; } .sc * { transition: none; } }
