/* Preserve the original film recovery; only its following Canva scenes change. */
.welcome-film-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#03070b;opacity:0;pointer-events:none}
.welcome[data-welcome-phase='film'][data-welcome-playback='waiting'] .welcome-film-poster{opacity:1}
.welcome .welcome-actions{z-index:3}
.welcome-intro{position:absolute;inset:0;overflow:hidden;background:#01030a;color:#dfb87a}
/* Reuse the complete approved guide without unloading a customer's result. */
.welcome-illustrated-guide{position:absolute;inset:0;z-index:30;display:block;width:100%;height:100%;border:0;background:#01030a;color-scheme:dark}
.welcome-guide-fallback{position:absolute;inset:0;z-index:31;display:grid;align-content:center;justify-items:center;gap:24px;padding:32px;text-align:center;background:#01030a;color:#f5f2ec}
.welcome-guide-fallback p{max-width:420px}
.intro-scene{position:absolute;inset:0 0 max(82px,calc(70px + env(safe-area-inset-bottom)));overflow:hidden}
.intro-scene-one{display:grid;place-items:center;isolation:isolate}
.intro-scene-backdrop{position:absolute;inset:-5%;width:110%;height:110%;max-width:none;object-fit:cover;filter:blur(24px) brightness(.4);z-index:-1;pointer-events:none}
.intro-artwork{position:relative;aspect-ratio:720/1405;width:min(100%,calc((100dvh - max(82px,calc(70px + env(safe-area-inset-bottom)))) * .5124555));max-height:100%;isolation:isolate}
.intro-artwork img{display:block;width:100%;height:100%;object-fit:contain;margin:0;border:0;border-radius:0;pointer-events:none}
.intro-art-base{position:relative}
.intro-artwork .intro-original-gold{position:absolute;inset:0;animation:intro-original-gold-pulse 4.8s ease-in-out infinite;transform:none}
.intro-artwork .intro-gold-shimmer{opacity:.38;filter:brightness(1.3);mask-image:linear-gradient(115deg,transparent 35%,#fff 49%,transparent 62%);mask-size:300% 100%;animation:intro-source-shimmer 5.4s ease-in-out infinite}
@keyframes intro-original-gold-pulse{0%,100%{opacity:.8;filter:brightness(1)}50%{opacity:1;filter:brightness(1.15)}}
@keyframes intro-source-shimmer{0%{mask-position:100% 0}100%{mask-position:0 0}}
.intro-hand-magic{position:absolute;inset:0;display:block;width:100%;height:100%;overflow:hidden;pointer-events:none;color:#dfb87a;mix-blend-mode:screen}
.intro-magic-sources{fill:url(#intro-hand-glow);animation:intro-hand-glow 3.6s ease-in-out infinite}
.intro-magic-stream path{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}
.intro-magic-ribbon{stroke-width:2.8;opacity:.72;filter:drop-shadow(0 0 2px #ffe4ae)}
.intro-magic-particles{stroke-width:6.5;stroke-dasharray:.15 5.85 .6 9.4 .25 8.75;filter:drop-shadow(0 0 3px #dfb87a);animation:intro-glitter-flow var(--magic-duration) linear infinite;animation-delay:var(--magic-delay)}
.intro-magic-comet{stroke:#fff3cf!important;stroke-width:7.5;stroke-dasharray:1.8 98.2;filter:drop-shadow(0 0 4px #dfb87a);animation:intro-glitter-comet var(--magic-duration) ease-in-out infinite;animation-delay:var(--magic-delay)}
@keyframes intro-hand-glow{0%,100%{opacity:.6}50%{opacity:1}}
@keyframes intro-glitter-flow{from{stroke-dashoffset:0}to{stroke-dashoffset:-100}}
@keyframes intro-glitter-comet{0%{stroke-dashoffset:1.8;opacity:0}12%{opacity:1}80%{opacity:.85}100%{stroke-dashoffset:-100;opacity:0}}
.intro-scene-two{display:grid;place-items:safe center;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:clamp(12px,2vh,20px) 20px;isolation:isolate}
.intro-scene-two:focus{outline:none}
.intro-description{position:relative;z-index:1;display:grid;grid-template-areas:'heading' 'copy' 'collage' 'instructions' 'start';justify-items:center;align-content:center;gap:14px;width:100%;max-width:620px;margin:0 auto;text-align:center}
.intro-source-window{position:relative;overflow:hidden;width:100%;pointer-events:none}
.intro-source-window img{position:absolute;left:0;display:block;width:100%!important;height:auto!important;max-width:none!important;border:0!important;border-radius:0!important;margin:0!important;padding:0!important}
.intro-canva-heading{grid-area:heading;aspect-ratio:637/309;width:min(340px,calc(100vw - 80px));max-width:100%;margin:0 auto;pointer-events:none}
.intro-canva-heading img{position:relative;display:block;width:100%!important;height:auto!important;max-width:none!important;border:0!important;border-radius:0!important;margin:0!important;padding:0!important}
/* Editable feedback headline; the original approved lettering stays archived. */
body.storybook .intro-dom-heading{grid-area:heading;width:min(100%,540px);max-width:100%;margin:0;padding:8px 0;font-family:var(--font-display);font-size:clamp(30px,5vw,44px)!important;font-weight:400!important;line-height:1.08;color:var(--brand-heading-ink,#f5f2ec)!important;text-align:center;text-wrap:balance}
#welcome-intro-text{grid-area:copy;max-width:540px}
.intro-canva-collage{grid-area:collage;aspect-ratio:720/550;width:min(260px,31dvh);max-width:100%;margin:0 auto}
.intro-canva-collage img{top:-96.363636%}
.intro-instructions{grid-area:instructions;display:grid;gap:8px;max-width:560px}
body.storybook #welcome-intro-text,body.storybook .intro-instructions p{color:#dfb87a;font-family:inherit;font-size:20px!important;line-height:1.25;margin:0 auto;background:none;border:0;box-shadow:none;text-wrap:pretty}
body.storybook .intro-description #intro-start-creating{grid-area:start;display:inline-flex;width:fit-content!important;max-width:100%;margin:0 auto;padding:10px 28px;min-height:48px;font-family:inherit;font-size:20px!important}
.intro-scene-twinkles{position:absolute;inset:0;pointer-events:none;z-index:0;opacity:.85}
.intro-scene-twinkles i{position:absolute;width:3px;height:3px;border-radius:50%;background:#dfb87a;box-shadow:0 0 9px #dfb87aaa;animation:intro-scene-twinkle 8.4s ease-in-out infinite}
.intro-scene-twinkles i::before,.intro-scene-twinkles i::after{content:'';position:absolute;left:50%;top:50%;width:13px;height:1px;transform:translate(-50%,-50%);background:linear-gradient(90deg,transparent,#dfb87a,transparent)}
.intro-scene-twinkles i::after{transform:translate(-50%,-50%) rotate(90deg)}
.intro-scene-twinkles i:nth-child(1){left:4%;top:9%}.intro-scene-twinkles i:nth-child(2){right:4%;top:28%;animation-delay:-2.4s;animation-duration:9.4s}.intro-scene-twinkles i:nth-child(3){left:3%;top:47%;animation-delay:-5.6s;animation-duration:7.8s}.intro-scene-twinkles i:nth-child(4){right:4%;top:67%;animation-delay:-3.1s;animation-duration:8.8s}.intro-scene-twinkles i:nth-child(5){left:4%;top:87%;animation-delay:-.6s;animation-duration:9.8s}.intro-scene-twinkles i:nth-child(6){right:3%;top:93%;animation-delay:-6.4s;animation-duration:8s}.intro-scene-twinkles i:nth-child(7){right:3%;top:5%;animation-delay:-4.2s;animation-duration:9s}
@keyframes intro-scene-twinkle{0%,100%{opacity:.14;scale:.65}50%{opacity:.95;scale:1}}
.welcome:is([data-welcome-phase='introduction'],[data-welcome-phase='how-to']) .welcome-video{visibility:hidden}
.welcome:is([data-welcome-phase='introduction'],[data-welcome-phase='how-to']) .welcome-actions{display:flex;align-items:center;justify-content:center;gap:24px;width:calc(100% - 40px);max-width:700px;padding:0}
body.storybook .welcome:is([data-welcome-phase='introduction'],[data-welcome-phase='how-to']) .welcome-actions .back{margin:0;padding:10px 4px;min-height:48px;background:none;border:0;border-radius:0;color:#dfb87a;font-size:18px!important;text-shadow:none}
.welcome-intro[data-motion='paused'] *, .welcome-intro[data-motion='reduced'] *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.intro-artwork .intro-original-gold,.intro-scene-twinkles i{animation:none!important;filter:none}.intro-artwork .intro-gold-shimmer,.intro-hand-magic{display:none}.intro-scene-twinkles{display:none}}
@media(min-width:900px) and (min-height:650px){body.storybook #welcome-intro-text,body.storybook .intro-instructions p{font-size:22px!important}.intro-description{gap:16px}}
/* Keep a complete, readable page above the existing controls on short phones. */
@media(max-width:600px) and (max-height:680px){
 .intro-scene-two{padding:8px 14px}
 .intro-description{gap:6px}
 .intro-canva-heading{width:240px}
 body.storybook .intro-dom-heading{font-size:30px!important;padding-block:6px}
 .intro-canva-collage{width:150px}
 body.storybook #welcome-intro-text{font-size:17px!important;line-height:1.18}
 body.storybook .intro-instructions p{font-size:16px!important;line-height:1.18}
 .intro-instructions{gap:6px}
 body.storybook .intro-description #intro-start-creating{font-size:18px!important;padding:8px 24px}
}
/* A wide, short viewport gives the artwork and reading their own columns. */
@media(min-width:601px) and (max-height:600px){
 .intro-scene-two{padding:10px 20px}
 .intro-description{max-width:900px;grid-template-columns:minmax(200px,260px) minmax(280px,460px);grid-template-areas:'heading copy' 'collage instructions' 'collage start';column-gap:24px;row-gap:8px;align-items:center;justify-content:center}
 .intro-canva-heading{width:240px;align-self:end}
 body.storybook .intro-dom-heading{max-width:260px;font-size:30px!important;align-self:end}
 .intro-canva-collage{width:196px;align-self:start}
 body.storybook #welcome-intro-text{font-size:20px!important;line-height:1.2}
 body.storybook .intro-instructions p{font-size:18px!important;line-height:1.2}
 .intro-instructions{gap:6px}
}
