/* FTUE v2 shared pieces (public/ftue.mjs). Promise lines: quiet facts under a box, each with a drawn tick. */
.promises{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:7px}
.promise{display:flex;align-items:flex-start;gap:9px;font-size:13px;line-height:1.45;color:#6f5c86}
.promise-mark{flex:none;position:relative;width:17px;height:17px;margin-top:1px;border-radius:50%;background:#e8daf2;border:1.5px solid #ac85c6}
.promise-mark::after{content:'';position:absolute;left:4.5px;top:1.5px;width:4px;height:8px;border:solid #5b4870;border-width:0 2px 2px 0;transform:rotate(45deg)}
.promise-text{min-width:0;overflow-wrap:anywhere}

/* FTUE v2 screens (public/ftue-screens.mjs). One centred column; the bottom nav is hidden until v2 is done. */
body.ftue-nav-hidden .bottom-nav{display:none}
/* One thing to read per screen: the header's tagline and the footer's trust lines say what the screens already say,
   so they wait until v2 is done. "How this works" on the letter screen still reaches the long version. */
body.ftue-nav-hidden .header-note,body.ftue-nav-hidden .site-footer{display:none}
/* Points and levels also wait (public/app.mjs scheduleLevelCelebration): no level chip until v2 is done. */
body.ftue-nav-hidden .site-header .xp-chip{display:none}
.ftue-screen{max-width:460px;margin:auto;text-align:center}
.ftue-screen h1{font-size:34px;letter-spacing:-.8px;margin:14px 0 10px}
.ftue-screen .lead{margin:0 auto 6px}
.ftue-screen .actions{justify-content:center}
.ftue-screen .actions .primary{min-width:220px}
/* One loud button per screen: filled and raised, so the eye lands on the next step (team feedback 2026-09-25: the
   important parts looked the same as everything else). Same fill as the Inbox Zero dialog's; it presses flat. */
.ftue-screen .primary{background:#76519c;border-color:#76519c;color:#fffaf2;box-shadow:0 4px 0 #5b3d7c,0 8px 16px #6042772a}
.ftue-screen .primary:hover{background:#68448e}
.ftue-screen .primary:active{transform:translateY(3px);box-shadow:0 1px 0 #5b3d7c}
.ftue-screen .promises{max-width:340px;margin:16px auto 0;text-align:left}
.ftue-status{min-height:1.5em;color:#873e50}
/* 1 · Egg: the egg is the tap target; it idles, wobbles on tap, splits, and Diplope rises out of it. */
.ftue-egg{display:grid;place-items:center;width:220px;height:240px;margin:8px auto 0;padding:0;border:0;border-radius:40px;background:radial-gradient(closest-side,#ffedccbf,#ffedcc00)}
.ftue-egg>*{grid-area:1/1}
.ftue-egg:disabled{cursor:default;opacity:1}
/* A playtester was not sure the egg itself could be tapped: a ring pulses out from it until it is. */
.ftue-egg{position:relative;cursor:pointer}
.ftue-egg::after{content:'';position:absolute;left:50%;top:52%;width:180px;height:180px;margin:-90px 0 0 -90px;border-radius:50%;border:3px solid #ac85c6;opacity:0;pointer-events:none;animation:ftue-tap-ring 1.8s ease-out infinite}
.ftue-egg:disabled::after{animation:none}
@keyframes ftue-tap-ring{0%{transform:scale(.7);opacity:.7}80%,100%{transform:scale(1.25);opacity:0}}
@media(prefers-reduced-motion:reduce){.ftue-egg::after{animation:none;opacity:.5;transform:scale(1.05)}.ftue-egg:disabled::after{opacity:0}}
.ftue-egg-shell{position:relative;z-index:1;width:170px;height:198px;transform-origin:50% 90%;animation:egg-idle 2.8s ease-in-out infinite}
.ftue-egg-shell .ftue-egg-whole{width:100%;height:100%}
.ftue-hatching .ftue-egg-shell{animation:egg-wobble .35s ease-in-out 3 alternate}
.ftue-egg-open .ftue-egg-shell{animation:none}
.ftue-egg-open .egg-top{transform:translate(-50px,-130px) rotate(-40deg);opacity:0}
.ftue-egg-open .egg-bottom{transform:translateY(110px) rotate(6deg);opacity:0}
.ftue-egg-monster.monster-art{width:190px;height:218px;opacity:0;transform:scale(.55) translateY(30px);transition:opacity .5s ease .15s,transform .6s cubic-bezier(.3,1.4,.6,1) .15s}
.ftue-egg-open .ftue-egg-monster.monster-art{opacity:1;transform:none}
/* 2 · Hatched: the carrying picture, large. */
.ftue-picture{display:grid;place-items:center;margin:4px auto 0;padding:12px;width:fit-content;max-width:100%;border-radius:22px;background:#fffcf8d9;border:1px solid #c8b4f04d;box-shadow:0 4px 12px #b4a0dc1a}
.ftue-picture .comic-monster{width:48%}
/* 1 · Story, before the egg (public/ftue-story.mjs): three beats, each a small looping scene. Reduced motion shows the end pose. */
.ftue-story-picture{width:min(320px,100%);padding:0;overflow:hidden}
.story-stage{position:relative;width:100%;height:210px;background:radial-gradient(ellipse at 50% 30%,#ffedccb3,transparent 65%),linear-gradient(180deg,#fff8ef00 55%,#eadff2 100%)}
.story-stage::after{content:'';position:absolute;left:10%;right:10%;bottom:18px;height:14px;border-radius:50%;background:radial-gradient(closest-side,#a592bb40,#a592bb00)}
.story-backdrop{position:absolute;inset:-4%;width:108%;height:108%;object-fit:cover;animation:story-pan 16s ease-in-out infinite alternate}
.story-painted{background:none}
.story-painted::after{bottom:14px}
img.story-envelope,img.story-mailbox,.story-open-letter{object-fit:contain}
.story-open-letter{position:absolute;left:18px;top:26px;width:70px;height:56px;opacity:0;animation:story-heart 4.2s ease-out infinite;animation-delay:.25s}
.story-actor{position:absolute;left:50%;bottom:20px;width:128px;height:148px;margin-left:-64px;z-index:1}
.story-actor .monster-art{width:100%;height:100%}
.story-envelope{position:absolute;width:44px;height:32px}
.story-carried{left:42px;top:64px;z-index:2}
.story-mailbox{position:absolute;bottom:22px;width:52px;height:70px}
.story-far{right:14px}
.story-near{left:14px}
.story-sparkles{position:absolute;inset:0}
.story-sparkle{position:absolute;color:#c9a6f2;font-size:22px;animation:monster-sparkle 1.8s ease-in-out infinite}
.story-sparkle.s0{left:22%;top:22%}.story-sparkle.s1{right:22%;top:14%;animation-delay:.6s;color:#f5a3b8}.story-sparkle.s2{right:26%;top:58%;animation-delay:1.2s}
.story-hop{animation:story-hop 1.6s ease-in-out infinite}
.story-pair-left{margin-left:-118px}.story-pair-right{margin-left:-6px;animation-delay:.4s}
.story-walk-out{animation:story-walk-out 4.2s ease-in-out infinite}
.story-walk-out .story-carried{animation:story-drop 4.2s ease-in-out infinite}
.story-walk-in{animation:story-walk-in 4.2s ease-in-out infinite}
.story-heart{position:absolute;left:30px;top:40px;color:#e25a9b;font-size:28px;opacity:0;animation:story-heart 4.2s ease-out infinite}
.ftue-story-dots{display:flex;justify-content:center;gap:8px;list-style:none;margin:12px 0 0;padding:0}
.ftue-story-dots li{width:8px;height:8px;border-radius:50%;background:#e1d2ea;transition:background .3s,transform .3s}
.ftue-story-dots li[data-on]{background:#ac85c6}
.ftue-story-dots li[data-current]{transform:scale(1.35)}
.ftue-story h1{font-size:30px;margin:10px 0 8px}
.ftue-story .lead{min-height:3.2em}
.ftue-story .ftue-skip{margin-top:0}
@keyframes story-pan{from{transform:translate(-1.5%,0) scale(1)}to{transform:translate(1.5%,-1%) scale(1.04)}}
@keyframes story-hop{0%,100%{transform:translateY(0) scale(1,1)}40%{transform:translateY(-16px) scale(.97,1.03)}55%{transform:translateY(0) scale(1.05,.95)}}
@keyframes story-drop{0%{transform:translateY(-120px) rotate(-18deg);opacity:0}20%{opacity:1}30%,100%{transform:none;opacity:1}}
@keyframes story-walk-out{0%,35%{transform:translateX(-30px)}80%{transform:translateX(62px) scale(.82);opacity:1}92%,100%{transform:translateX(70px) scale(.8);opacity:0}}
@keyframes story-walk-in{0%{transform:translateX(150px) scale(.8);opacity:0}12%{opacity:1}55%,100%{transform:translateX(-30px);opacity:1}}
@keyframes story-heart{0%,55%{opacity:0;transform:translateY(8px) scale(.6)}68%{opacity:1;transform:translateY(-6px) scale(1.15)}85%{opacity:1;transform:translateY(-14px) scale(1)}100%{opacity:0;transform:translateY(-24px)}}
@media(prefers-reduced-motion:reduce){.story-heart,.story-open-letter{opacity:1}.story-walk-out{transform:translateX(50px) scale(.85)}.story-walk-in{transform:translateX(-30px)}}
/* 3–5 · Letter, reply, sent (public/ftue-reply.mjs). The picture sits beside the heading; the letter is never cut. */
.ftue-head{display:flex;align-items:center;gap:12px;text-align:left;margin:4px 0 0}
.ftue-head .tutorial-panel{flex:none}
.ftue-head-text{min-width:0}
.ftue-head h1{margin:0}
.ftue-head .ftue-reply-ask{font-size:24px;letter-spacing:-.3px;line-height:1.2}
.ftue-letter{text-align:left;margin:16px 0 8px;padding:18px 20px}
.ftue-letter-pills{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.ftue-letter-pills .written-at{margin-left:auto;font-size:12px;color:#897389}
.ftue-letter .ftue-letter-text{overflow:visible;max-height:none;margin:10px 0 12px}
.ftue-letter-footer{margin:0;font-size:12px;color:#897389}
.ftue-count{margin:6px 0 0;font-size:14px;color:#6f5c86}
.ftue-count-tick{animation:ftue-tick .5s ease-out}
.ftue-how{display:block;margin:0 auto}
.ftue-openers{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-start;margin:14px 0 4px}
.ftue-opener{border:2px solid #cab1df;border-radius:18px;padding:8px 14px;min-height:44px;background:#fffaf5;color:#5b4870;box-shadow:0 2px 0 #cab1df;font-size:14px}
.ftue-opener:active{transform:translateY(2px);box-shadow:none}
.ftue-reply-form{text-align:left;margin-top:12px}
.ftue-reply-form textarea{display:block;width:100%;min-height:150px;resize:vertical;padding:14px 16px;border:1px solid #ebdfce;border-radius:8px;background:var(--cream);color:#51405a;font:22px/1.5 Caveat,'Noteworthy','Segoe Print',cursive}
.ftue-reply-form .paper-meta{margin-top:6px}
.ftue-coach{margin:10px 0 0;padding:10px 14px;border-radius:14px;background:#fff6e6;color:#6e537d;font-size:14px}
.ftue-reply-form .ftue-status:empty{min-height:0}
.ftue-sent .sent-banner{margin-top:0}
.ftue-sent .sent-banner-title{font-family:inherit;font-size:20px;font-weight:600;line-height:1.2;letter-spacing:.5px;margin:0}
.ftue-sent .travel-postcard{margin:12px auto 4px}
@keyframes ftue-tick{0%{transform:scale(1)}40%{transform:scale(1.12)}100%{transform:scale(1)}}
/* Today's question and everyone's answers, under the signal strip (public/ftue-daily.mjs). The wall reuses daily.css's
   answer cards; its one button stays in reach however long the wall gets. */
.ftue-screen .ftue-daily-question{font:clamp(26px,7vw,34px)/1.2 Georgia,serif;letter-spacing:-.3px;color:#4c3a5c;margin:18px auto 10px;max-width:22ch}
.ftue-daily-form{text-align:left;margin-top:14px}
.ftue-daily-form textarea{display:block;width:100%;min-height:120px;resize:vertical;padding:14px 16px;border:1px solid #ecdfc9;border-radius:8px;background:linear-gradient(180deg,#fffdf6,#fffaf0);color:#51405a;font:22px/1.5 Caveat,'Noteworthy','Segoe Print',cursive}
.ftue-daily-form textarea::placeholder{font:16px/1.4 inherit;font-family:inherit}
.ftue-daily-form .paper-meta{margin-top:6px}
.ftue-daily-form .ftue-status:empty{min-height:0}
.ftue-wall-heading{margin:14px 0 0;text-align:left}
.ftue-wall{text-align:left}
.ftue-wall .daily-answer[data-mine=true]{border:2px solid #ac85c6}
.ftue-wall .daily-answer-body{position:relative}
.ftue-report{position:absolute;top:-6px;right:-6px;min-height:36px;padding:4px 8px;text-decoration:none;color:#a28bb0;font-size:15px}
.ftue-wall-actions{position:sticky;bottom:0;margin:0 -16px;padding:12px 16px max(12px,env(safe-area-inset-bottom));background:linear-gradient(180deg,#f8ede800,#f8ede8 35%)}
/* The quiet "Skip" / "Not now" under a screen's main button. */
.ftue-skip{display:block;margin:4px auto 0}
/* 8 · Diplope's home (public/ftue-home.mjs). The live trip while it lasts, then the arrival confirmation. */
.ftue-home-travelling .travel-postcard{margin:12px auto 4px}
.ftue-home .ftue-status:empty{min-height:0}
.ftue-home-monster{display:grid;place-items:center;width:220px;height:230px;margin:8px auto 0;border-radius:40px;background:radial-gradient(closest-side,#ffedccbf,#ffedcc00)}
.ftue-home-monster .monster-art{width:190px;height:210px}
/* 9 · Your turn (public/ftue-letter.mjs). Reuses the reply form's box and the opener chips. */
.ftue-screen h1.ftue-prompt{font-size:30px}
.ftue-nudge{margin:6px 0 0;font-size:15px;color:#6e537d}
.ftue-nudge-alert{padding:8px 12px;border-radius:12px;background:#fff6e6;color:#873e50}
/* The kind of reply they'd like: a tag on the box, like a letter's, that opens the picker. */
.ftue-reply-like{display:inline-flex;align-items:center;gap:6px;min-height:36px;margin:0 0 8px;border:1px solid #cab1df;font-size:13px}
.ftue-reply-caret{font-size:11px}
/* Screen 10: read signals. Each line only exists while the server says it is true. The strip stays pinned while the
   player answers today's question under it, so a new line shows up like a toast without leaving the question. */
.ftue-signal-strip{position:sticky;top:8px;z-index:2}
.ftue-signal-strip .sent-banner{box-shadow:0 4px 12px #b4a0dc26}
.ftue-signal-strip .ftue-signals{margin-top:8px}
.ftue-signal-strip .ftue-signal{box-shadow:0 4px 12px #b4a0dc26}
.ftue-signals{display:grid;gap:8px;margin:14px auto 0;max-width:360px}
.ftue-signal{margin:0;padding:10px 14px;border-radius:16px;background:#fffaf5;border:1.5px solid #cab1df;color:#4c3a5c;font-size:16px;font-weight:600}
.ftue-signal-writing{background:#f3ecfb}
.ftue-room{margin:12px 0 0;font-size:14px;color:#6f5c86}
@media(prefers-reduced-motion:no-preference){.ftue-signal:not([hidden]){animation:ftue-tick .5s ease-out}}
/* 12 · Forest Slime (public/ftue-slime.mjs): who the new monster is, as two facts under its line. */
.ftue-monster-facts{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;list-style:none;margin:12px auto 4px;padding:0;max-width:340px}
/* 14 · The garden (public/ftue-garden.mjs): the real garden under one headline and one button. Its own heading and
   Edit button would repeat ours (our button opens the same tray). */
.ftue-garden .garden-heading{display:none}
.ftue-garden .garden-card{margin-top:8px;text-align:left}
/* 11 · Notifications (public/ftue-notify.mjs): Diplope with the envelope, the one ask, then v2 is over. */
.ftue-notify h1{max-width:18ch;margin-left:auto;margin-right:auto}
@media(prefers-reduced-motion:reduce){.ftue-count-tick{animation:none}.ftue-egg-shell{animation:none!important}.ftue-egg-monster.monster-art{transition:none}}
/* Visitor flow · 3 A visitor (public/ftue-visitor.mjs). The arrival is the flow's big moment: the stranger's monster
   hops in from the side, lands with a squash, stars burst out behind it, a "!" pops up and its letter wiggles.
   Resting styles are the finished scene, so reduced motion (which drops every animation) still shows all of it. */
.ftue-visit-stage{position:relative;display:block;width:min(300px,100%);height:270px;margin:6px auto 0;padding:0;border:0;border-radius:32px;background:radial-gradient(closest-side at 50% 52%,#fff4dcf0,#fdeef3b0 60%,#fdeef300);overflow:visible;cursor:pointer}
.ftue-visit-stage:focus-visible{outline:3px solid #9466bc;outline-offset:6px}
.ftue-visit-ground{position:absolute;left:18%;right:18%;bottom:26px;height:26px;border-radius:50%;background:radial-gradient(closest-side,#a592bb55,#a592bb00);animation:ftue-visit-shadow 1.3s ease-out both}
.ftue-visit-art{position:absolute;left:50%;bottom:34px;width:180px;height:190px;margin-left:-90px;transform-origin:50% 100%;animation:ftue-visit-hop-in 1.3s cubic-bezier(.3,.7,.4,1) both}
.ftue-visit-landed .ftue-visit-art{animation:ftue-visit-bob 2.6s ease-in-out infinite}
.ftue-visit-letter{position:absolute;right:calc(50% - 104px);bottom:40px;width:58px;height:auto;transform:rotate(-12deg);transform-origin:50% 80%;animation:ftue-visit-letter-in 1.3s cubic-bezier(.3,.7,.4,1) both}
.ftue-visit-landed .ftue-visit-letter{animation:ftue-visit-wiggle 1.8s ease-in-out infinite}
.ftue-visit-bubble{position:absolute;left:calc(50% + 46px);top:14px;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#f7c8d6;border:3px solid #3d2a4f;color:#3d2a4f;font:700 24px/1 Georgia,serif;box-shadow:0 4px 0 #3d2a4f22;animation:ftue-visit-pop .5s 1.15s cubic-bezier(.3,1.6,.5,1) both}
.ftue-visit-landed .ftue-visit-bubble{animation:ftue-visit-pulse 1.6s ease-in-out infinite}
.ftue-visit-sparkles{position:absolute;left:50%;top:48%;width:0;height:0}
.ftue-visit-sparkle{position:absolute;left:-10px;top:-12px;color:#c9a6f2;font-size:24px;opacity:.9;transform:translate(var(--x),var(--y));animation:ftue-visit-burst .9s 1.05s ease-out both}
.ftue-visit-landed .ftue-visit-sparkle{animation:ftue-visit-twinkle 2.2s ease-in-out infinite}
.ftue-visit-sparkle.s0{--x:-118px;--y:-78px}.ftue-visit-sparkle.s1{--x:104px;--y:-96px;color:#f5a3b8}.ftue-visit-sparkle.s2{--x:-134px;--y:18px;color:#f3c86a}
.ftue-visit-sparkle.s3{--x:128px;--y:6px}.ftue-visit-sparkle.s4{--x:-72px;--y:-118px;color:#f5a3b8}.ftue-visit-sparkle.s5{--x:4px;--y:-132px;color:#f3c86a}
.ftue-visit-landed .ftue-visit-sparkle.s1,.ftue-visit-landed .ftue-visit-sparkle.s4{animation-delay:.7s}.ftue-visit-landed .ftue-visit-sparkle.s2,.ftue-visit-landed .ftue-visit-sparkle.s5{animation-delay:1.4s}
.ftue-visit-heading{animation:ftue-visit-rise .5s 1.2s ease-out both}
.ftue-visit-actions{animation:ftue-visit-rise .5s 1.35s ease-out both}
@keyframes ftue-visit-hop-in{0%{transform:translateX(170px) scale(.8);opacity:0}12%{opacity:1}
 25%{transform:translate(110px,-34px) scale(.85)}38%{transform:translateX(70px) scale(.9,.84)}
 52%{transform:translate(34px,-30px) scale(.95)}66%{transform:translateX(8px) scale(1.04,.9)}
 80%{transform:translateY(-14px) scale(.97,1.04)}90%{transform:scale(1.08,.9)}100%{transform:none;opacity:1}}
@keyframes ftue-visit-letter-in{0%,60%{transform:translate(90px,10px) rotate(30deg) scale(.4);opacity:0}85%{transform:rotate(-24deg) scale(1.15);opacity:1}100%{transform:rotate(-12deg)}}
@keyframes ftue-visit-shadow{0%,60%{transform:scaleX(.4);opacity:0}100%{transform:none;opacity:1}}
@keyframes ftue-visit-bob{0%,100%{transform:none}50%{transform:translateY(-6px) scale(.99,1.01)}}
@keyframes ftue-visit-wiggle{0%,60%,100%{transform:rotate(-12deg)}68%{transform:rotate(-24deg) translateY(-3px)}76%{transform:rotate(0deg) translateY(-3px)}84%{transform:rotate(-18deg)}}
@keyframes ftue-visit-pop{0%{transform:scale(0) rotate(-30deg);opacity:0}100%{transform:none;opacity:1}}
@keyframes ftue-visit-pulse{0%,100%{transform:none}50%{transform:scale(1.1) rotate(6deg)}}
@keyframes ftue-visit-burst{0%{transform:translate(0,0) scale(.2);opacity:0}40%{opacity:1}100%{transform:translate(var(--x),var(--y)) scale(1);opacity:.9}}
@keyframes ftue-visit-twinkle{0%,100%{transform:translate(var(--x),var(--y)) scale(1);opacity:.9}50%{transform:translate(var(--x),var(--y)) scale(.7) rotate(20deg);opacity:.45}}
@keyframes ftue-visit-rise{0%{transform:translateY(10px);opacity:0}100%{transform:none;opacity:1}}
/* The note: the visitor above its line, which unfolds like paper being opened. A thanks floats a heart up. */
.ftue-visit-note-art-wrap{position:relative;width:130px;height:130px;margin:6px auto 0}
.ftue-visit-note-art{width:100%;height:100%}
.ftue-visit-paper{text-align:left;padding:22px 24px 16px;margin:12px 0 4px;transform-origin:50% 0;animation:ftue-visit-unfold .45s ease-out both}
.ftue-visit-paper .handwriting{margin:0;font-size:27px}
.ftue-visit-heart{position:absolute;right:6px;top:4px;color:#e46f94;font-size:34px;opacity:0;pointer-events:none}
.ftue-visit-thanked .ftue-visit-heart{animation:ftue-visit-heart 1s ease-out both}
.ftue-visit-report{display:block;margin:0 auto}
.ftue-visit-reasons{display:grid;gap:8px;max-width:340px;margin:0 auto}
@keyframes ftue-visit-unfold{0%{transform:scaleY(.2);opacity:0}100%{transform:none;opacity:1}}
@keyframes ftue-visit-heart{0%{transform:translateY(10px) scale(.4);opacity:0}30%{opacity:1;transform:translateY(-6px) scale(1.2)}100%{transform:translateY(-46px) scale(1);opacity:0}}
/* Visitor flow · 4 Pass it on: Diplope, the question and one line. */
.ftue-pass-on-art :is(.monster-art,img){width:150px;height:150px}
.ftue-line-form{text-align:left;margin-top:14px}
.ftue-line-field{width:100%;padding:13px 14px;border:1px solid #d6c3df;border-radius:12px;background:#fffaf0;color:var(--ink);font:24px/1.3 Caveat,'Noteworthy','Segoe Print',cursive}
.ftue-line-form .paper-meta{margin-top:8px}
.ftue-line-form .actions{justify-content:center}
