.animationStudio{--anim-ink:#3e3355;--anim-soft:#eee7f8;max-width:1120px;margin:12px auto;color:var(--anim-ink);min-width:0}.animationHeader{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.animationHeader h2{font-size:clamp(26px,3.5vw,40px);line-height:1.2;margin:8px 0;overflow-wrap:anywhere}.animationEyebrow{font-size:10px;font-weight:850;letter-spacing:1.7px;color:#85729e}.animationWelcome{display:grid;grid-template-columns:1.2fr 1fr;gap:24px;align-items:center;background:linear-gradient(130deg,#f3eafb,#e5eaf8 65%,#e5f1ef);border:1px solid #ddd2ed;border-radius:32px;padding:38px 32px;overflow:hidden}.animationWelcome h3{font-size:clamp(30px,4vw,47px);letter-spacing:-1px;margin:16px 0;line-height:1.15}.animationWelcome p{line-height:1.65;font-size:17px;color:#766b8a}.animationWelcome .primary{margin-top:8px}.flipbookIllustration{position:relative;width:min(100%,290px);aspect-ratio:1.1;justify-self:center;isolation:isolate}.flipPaper{position:absolute;inset:25px 10px 25px 20px;border-radius:22px;background:#fffdf7;border:2px solid #b9a7d6;box-shadow:0 10px 0 #c8b9df44;display:grid;place-items:center}.flipPaper.back{transform:rotate(-14deg);background:#bcdad6}.flipPaper.middle{transform:rotate(-4deg);background:#dac7ef}.flipPaper.front{transform:rotate(8deg)}.flipPaper small{position:absolute;bottom:12px;right:16px;color:#a89bb9;letter-spacing:3px;font:12px monospace}.flipBall{width:100px;height:100px;border-radius:50%;background:#baa6e1;box-shadow:inset -9px -10px 0 #a58ace55,0 26px 12px -20px #8069a177;display:flex;flex-direction:column;align-items:center;justify-content:center;animation:flipBounce 2s ease-in-out infinite}.flipBall b{font-size:33px;letter-spacing:7px;margin-left:8px;line-height:1}.flipBall em{font-style:normal;font-size:33px;line-height:.7}.flipSpark{position:absolute;right:-4px;top:4px;font-size:42px;color:#d1a858;transform:rotate(12deg)}.flipOrbit{position:absolute;left:-5px;bottom:0;font-size:46px;color:#9c8dba}.animationStarter{display:flex;align-items:center;gap:20px;background:#fffaf0;border:1px solid #e6dac4;border-radius:24px;padding:20px 24px;margin:24px 0}.animationStarter>div:nth-child(2){flex:1}.animationStarter strong{font-size:19px}.animationStarter p{font-size:14px;color:#8f7f66;margin:8px 0 0}.animationBounceIcon{position:relative;min-width:72px;font-size:62px;color:#ab98d5;text-align:center;line-height:1}.animationBounceIcon span{font-size:22px;display:block;color:#c7b6e0}.animationShelfHeading{display:flex;align-items:center;justify-content:space-between;margin-top:32px}.animationShelfHeading h3{font-size:23px}.animationShelfHeading>span{font-size:13px;color:#90849f}.animationCards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.animationCard{background:#fff;border:1px solid #dfd5e9;border-radius:24px;overflow:hidden;text-align:left;box-shadow:0 6px 0 #d8cde742;padding:0 0 20px;color:var(--anim-ink)}.animationCard canvas{display:block;width:100%;height:auto;background:#fffefa;border-bottom:1px solid #eee7f3}.animationCard strong,.animationCard span,.animationCard b{display:block;margin:14px 20px 0;overflow-wrap:anywhere}.animationCard strong{font-size:20px}.animationCard span{font-size:13px;color:#887992}.animationCard b{font-size:13px;color:var(--accent)}.animationEmpty{padding:36px;background:#ffffff99;border:1px dashed #d6c8e7;border-radius:24px;grid-column:1/-1;line-height:1.7;text-align:center;color:#887993}.animationNote{font-size:13px;line-height:1.7;color:#887b94;margin:22px 0}.animationMeta{display:grid;grid-template-columns:1fr minmax(180px,260px);gap:18px}.animationMeta input,.animationMeta select{width:100%;min-width:0}.animationSteps{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:18px;padding:16px;border:1px solid #e2d7ed;background:#f2edf8;border-radius:18px;font-size:14px;font-weight:750;margin:12px 0 22px}.animationSteps b{color:#b6a7c9}.animationToolbar{display:flex;gap:16px;flex-wrap:wrap;align-items:center;background:#ffffffb8;border:1px solid #ded5e7;border-radius:20px;padding:12px;margin-bottom:16px}.animationTools,.animationColours,.animationSizes{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.animationToolbar button{min-height:44px}.animationTools .secondary,.animationSizes .secondary{padding:11px 13px;border-radius:12px;font-size:13px}.animationToolbar [aria-pressed=true]{border-color:var(--accent);background:var(--soft);box-shadow:0 0 0 1px var(--accent)}.animationSwatch{width:44px;min-width:44px;height:44px;border:2px solid transparent;border-radius:50%;background:none;position:relative}.animationSwatch:before{content:'';position:absolute;inset:7px;background:var(--swatch);border-radius:50%;border:1px solid #29344722}.animationCustom{display:grid;place-items:center;font-size:11px;min-width:44px;gap:3px}.animationCustom input{width:35px;height:28px;border:0;border-radius:8px;background:none;padding:0}.animationStageHeader{display:flex;align-items:center;gap:14px;justify-content:space-between;margin:16px 0;font-size:13px;color:#7d6e8b}.animationGuide{display:flex;align-items:center;gap:8px;min-height:44px;font-weight:650}.animationGuide input{width:22px;height:22px;accent-color:var(--accent)}.animationStageHeader .secondary{min-height:44px;font-size:13px}.animationStage{position:relative;display:grid;place-items:center;background:#e6dfef;padding:12px;border:1px solid #d3c6e2;border-radius:24px;overflow:hidden}.animationStage canvas{display:block;width:100%;max-width:960px;height:auto;aspect-ratio:3/2;background:#fffefa;border-radius:12px;touch-action:none;user-select:none;-webkit-user-select:none;box-shadow:0 8px 25px #49385d0a}.animationStage #animationPlaying{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#493b64e8;color:white;padding:8px 15px;border-radius:30px;font-size:12px;pointer-events:none}.animationStage [hidden]{display:none!important}.animationTransport{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:20px 0 12px}.animationTransport button{min-height:48px}.animationHint{font-size:14px;color:#82738f;text-align:center;line-height:1.6;min-height:24px}.animationTimeline{display:flex;gap:10px;overflow-x:auto;padding:12px 3px 16px;scroll-snap-type:x proximity}.animationFrame{flex:0 0 112px;border:2px solid #e1d8e9;border-radius:14px;padding:5px;background:#fff;overflow:hidden;scroll-snap-align:center;min-height:96px;color:#78678b}.animationFrame[aria-pressed=true]{border-color:var(--accent);background:var(--soft)}.animationFrame canvas{display:block;width:100%;height:auto;border-radius:9px}.animationFrame span{display:block;font-size:12px;font-weight:800;padding-top:6px}.animationFrameActions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:22px}.animationFrameActions .secondary{font-size:12px;min-height:44px;padding:10px 14px}.animationFrameActions>span{margin-left:auto;font-size:12px;color:#8e809b}.animationExtras{background:#ffffffaa;border:1px solid #e2d7ec;border-radius:20px;padding:0 20px;margin:18px 0}.animationExtras summary{padding:18px 0;min-height:48px;font-weight:750;cursor:pointer}.animationExtras p{font-size:14px;line-height:1.6;color:#80738c}.animationPictureChoices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}.animationPictureChoices button{min-width:0;border:1px solid #ddd2e7;background:#fff;border-radius:16px;padding:8px;color:#736183}.animationPictureChoices img{width:100%;height:110px;object-fit:contain}.animationPictureChoices span{font-size:12px;display:block;padding:8px;overflow-wrap:anywhere}.animationKeep{padding:20px;border:1px solid #d9cce5;border-radius:22px;background:#f4eefb;display:flex;gap:12px;flex-wrap:wrap;align-items:center}.animationKeep p{flex:1 1 100%;margin:0;color:#7b6a8c;font-size:13px;line-height:1.6}.animationExport{position:sticky;bottom:12px;z-index:5;padding:20px;background:#fff9e9;border:2px solid #dfc38a;border-radius:20px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0}.animationEditor .downloadReady{margin-top:20px}.animationStudio button:focus-visible,.animationStudio input:focus-visible,.animationStudio select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.animationStudio.animationWide{position:fixed;inset:0;max-width:none;margin:0;z-index:999;background:#f5f0fa;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));overflow:auto}.animationWide .animationHeader{margin:0 0 12px}.animationWide .animationHeader h2{font-size:24px}.animationWide .animationMeta,.animationWide .animationSteps{display:none}.animationWide .animationToolbar{padding:8px;margin-bottom:8px}.animationWide .animationStageHeader{margin:8px 0}.animationWide .animationStage{padding:6px;border-radius:18px}.animationWide .animationStage canvas{width:min(100%,1080px,90dvh);max-width:100%;height:auto}.animationWide .animationTransport{margin:12px 0}.animationWide .animationTimeline{padding-top:3px}.animationWide .animationFrame{flex-basis:90px;min-height:80px}body:has(.animationWide) .sidebar,body:has(.animationWide) .topbar{visibility:hidden}.noMotion .flipBall{animation:none}@keyframes flipBounce{0%,100%{transform:translateY(6px) scaleY(.95)}50%{transform:translateY(-15px) scaleY(1.02)}}@media(prefers-reduced-motion:reduce){.flipBall{animation:none}}@media(max-width:900px){.animationCards{grid-template-columns:repeat(2,minmax(0,1fr))}.animationWelcome{padding:26px 22px}.animationToolbar{gap:10px}.animationWide .animationStage canvas{width:min(100%,75dvh);height:auto}}@media(max-width:550px){.animationHeader{gap:10px;margin-bottom:18px}.animationHeader h2{font-size:25px}.animationHeader .secondary{font-size:12px;padding:12px}.animationWelcome{grid-template-columns:1fr;padding:24px}.flipbookIllustration{width:190px;grid-row:1;aspect-ratio:1.3}.flipBall{width:66px;height:66px}.flipBall b,.flipBall em{font-size:25px}.animationWelcome h3{font-size:32px}.animationWelcome p{font-size:15px}.animationStarter{flex-wrap:wrap;gap:12px;padding:18px}.animationStarter .secondary{width:100%}.animationBounceIcon{min-width:55px;font-size:42px}.animationStarter strong{font-size:17px}.animationCards{gap:12px}.animationCard strong,.animationCard span,.animationCard b{margin:12px 14px 0}.animationCard strong{font-size:16px}.animationCard span,.animationCard b{font-size:11px}.animationMeta{grid-template-columns:1fr;gap:0}.animationSteps{gap:8px;font-size:12px;padding:12px}.animationToolbar{padding:10px}.animationTools .secondary,.animationSizes .secondary{font-size:12px;padding:9px 12px}.animationSwatch{width:40px;min-width:40px;height:44px}.animationStageHeader{gap:7px;flex-wrap:wrap}.animationGuide{font-size:12px}.animationStageHeader>span{margin-left:auto;font-size:12px}.animationStageHeader>.secondary{width:100%}.animationStage{padding:7px;border-radius:18px}.animationTransport{gap:8px}.animationTransport button{padding:12px;font-size:13px}.animationTransport .animationCopy{min-width:140px}.animationHint{font-size:12px}.animationFrame{flex-basis:88px;min-height:80px}.animationKeep{padding:16px}.animationKeep button{width:100%}.animationPictureChoices{grid-template-columns:repeat(2,minmax(0,1fr))}.animationWide .animationStage canvas{width:100%;height:auto;max-height:none}.animationWide .animationHeader h2{font-size:19px}.animationWide .animationEyebrow{font-size:8px}.animationExport{flex-wrap:wrap}.animationExport strong{font-size:14px}}
