/* Dot and the Shape Friends. Fredoka font: SIL Open Font License. */ @font-face{font-family:"Fredoka";font-style:normal;font-weight:500;font-display:swap;src:url(./fonts/fredoka-500.woff2) format("woff2")} @font-face{font-family:"Fredoka";font-style:normal;font-weight:600;font-display:swap;src:url(./fonts/fredoka-600.woff2) format("woff2")} @font-face{font-family:"Fredoka";font-style:normal;font-weight:700;font-display:swap;src:url(./fonts/fredoka-700.woff2) format("woff2")} :root{--ink:#2b2140;--font:"Fredoka","Baloo 2",ui-rounded,"SF Pro Rounded","Arial Rounded MT Bold","Nunito",system-ui,sans-serif} *{box-sizing:border-box;-webkit-tap-highlight-color:transparent} html,body{height:100%;margin:0;overflow:hidden;overscroll-behavior:none} body{font-family:var(--font);color:var(--ink);background:radial-gradient(circle at 22% 16%,rgba(255,244,190,.9) 0,rgba(255,244,190,0) 26%),linear-gradient(#58b8ff 0%,#a9dcff 42%,#e9f7ff 70%,#fff3d1 100%);touch-action:none;user-select:none;-webkit-user-select:none} body.disco{animation:disco 1s linear infinite} @keyframes disco{0%{filter:hue-rotate(0)}100%{filter:hue-rotate(360deg)}} #night{position:fixed;inset:0;pointer-events:none;opacity:0;background:radial-gradient(circle at 26% 18%,rgba(255,240,190,.35) 0,rgba(255,240,190,0) 18%),linear-gradient(#0b1033 0%,#26206a 55%,#5a3584 100%)} #c{position:fixed;inset:0;width:100%;height:100%;display:block;touch-action:none} button{font:inherit;color:inherit;border:0;cursor:pointer;padding:0} button:focus-visible{outline:4px solid #2b2140;outline-offset:3px} [hidden]{display:none !important} #top{position:fixed;left:0;right:0;top:0;padding:max(10px,env(safe-area-inset-top)) 66px 0;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none} #cap{background:#fff;border-radius:22px;padding:9px 18px 10px;max-width:560px;text-align:center;box-shadow:0 5px 0 rgba(43,33,64,.14);border:3px solid #2b2140} #cap.pop{animation:cap .45s cubic-bezier(.3,1.6,.5,1)} @keyframes cap{0%{transform:scale(.8) rotate(-2deg)}100%{transform:none}} #capT{font-size:21px;line-height:1.2;font-weight:600;text-wrap:balance} #capS{font-size:12.5px;line-height:1.3;color:#6d6485;font-weight:500;margin-top:2px} #capS:empty{display:none} #stickers{display:flex;gap:5px;background:rgba(255,255,255,.75);border-radius:999px;padding:5px 8px} #stickers span{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#e8edf5;transition:background .3s} #stickers svg{width:20px;height:20px;fill:#c2cbd9;transition:fill .3s} #stickers span.got{background:#fff;animation:got .6s cubic-bezier(.3,1.8,.5,1)} #stickers span.got svg{fill:var(--c)} @keyframes got{0%{transform:scale(.3) rotate(-40deg)}100%{transform:none}} #tools{position:fixed;right:10px;top:max(10px,env(safe-area-inset-top));display:flex;flex-direction:column;gap:8px;align-items:center} #tools button{width:46px;height:46px;border-radius:50%;background:#fff;border:3px solid #2b2140;display:grid;place-items:center;box-shadow:0 4px 0 rgba(43,33,64,.14)} #tools svg{width:24px;height:24px;fill:#2b2140} #stars{min-width:46px;background:#fff6c9;border:3px solid #2b2140;border-radius:16px;padding:3px 6px 4px;text-align:center;font-weight:700;font-size:15px;line-height:1.05;box-shadow:0 4px 0 rgba(43,33,64,.14)} #stars .s{display:block;color:#f5a400;font-size:19px} #stars.bump{animation:got .55s cubic-bezier(.3,1.8,.5,1)} .fly{position:fixed;left:50%;top:45%;font-size:64px;color:#ffc93c;text-shadow:0 3px 0 #2b2140;pointer-events:none;animation:fly .9s cubic-bezier(.5,0,.3,1) forwards} @keyframes fly{0%{transform:translate(-50%,-50%) scale(.2) rotate(-40deg);opacity:0}25%{transform:translate(-50%,-50%) scale(1.3) rotate(10deg);opacity:1}100%{transform:translate(calc(50vw - 60px),calc(-45vh + 130px)) scale(.3) rotate(200deg);opacity:.9}} #panel{position:fixed;inset:0;background:rgba(43,33,64,.45);display:grid;place-items:center;padding:14px;z-index:5} .sheet{background:#fff;border:4px solid #2b2140;border-radius:26px;padding:18px 20px 20px;max-width:440px;width:100%;max-height:100%;overflow:auto;box-shadow:0 10px 0 rgba(43,33,64,.25)} .sheet h2{margin:0 0 12px;font-size:22px;font-weight:700} .sheet h3{margin:16px 0 6px;font-size:15px;font-weight:700} .toggles{display:flex;flex-wrap:wrap;gap:8px} .toggles button,#close{min-height:44px;padding:0 16px;border-radius:999px;border:3px solid #2b2140;background:#fff;font-weight:600;font-size:15px} .toggles button[aria-pressed="true"]{background:#c9f5d3} .toggles button[aria-pressed="false"]{background:#e6e6ee;color:#7c7691;text-decoration:line-through} .sheet dl{margin:0;display:grid;grid-template-columns:58px 1fr;gap:10px 8px;align-items:center} .sheet dt{display:flex;gap:4px} .sheet dt i{width:14px;height:14px;border-radius:50%;background:#ff6fa5;border:2px solid #2b2140} .sheet dd{margin:0;font-size:14px;line-height:1.4;font-weight:500} .sheet p{margin:12px 0 0;font-size:13.5px;line-height:1.4;color:#6d6485;font-weight:500} .sheet .cr{font-size:12px} #close{margin-top:16px;background:#ff6fa5;color:#fff;width:100%} .toggles button svg{width:20px;height:20px;vertical-align:-4px;margin-right:6px} .sheet .note{margin:8px 0 0} .appbtn{display:flex;align-items:center;justify-content:center;gap:8px;margin:18px auto 0;min-height:46px;padding:0 18px 0 14px;border-radius:999px;border:3px solid #2b2140;background:#fff6d6;font-family:inherit;font-weight:600;font-size:15px;color:#2b2140;box-shadow:0 4px 0 rgba(43,33,64,.14)} .appbtn svg{width:22px;height:22px} #guide{position:fixed;inset:0;background:rgba(43,33,64,.45);display:grid;place-items:center;padding:14px;z-index:6} .sheet .lead{margin:0 0 4px;color:#2b2140;font-size:15px} .steps{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:12px} .steps li{display:grid;grid-template-columns:30px 40px 1fr;gap:10px;align-items:center;font-size:15px;line-height:1.35;font-weight:500} .steps b{width:30px;height:30px;border-radius:50%;background:#ff6fa5;color:#fff;display:grid;place-items:center;font-weight:700;font-size:15px;border:3px solid #2b2140;box-sizing:border-box} .steps svg{width:40px;height:40px} .steps em{font-style:normal;font-weight:700} .tip{margin-top:16px;padding:12px 14px;border-radius:16px;background:#eef7ff;border:2px dashed #4db8ff;font-size:14px;line-height:1.4;font-weight:500} .tip b{display:block;margin-bottom:3px} #guideClose{margin-top:16px;min-height:46px;width:100%;border-radius:999px;border:3px solid #2b2140;background:#ff6fa5;color:#fff;font-family:inherit;font-weight:600;font-size:16px} #gear{position:relative} #teamPop{position:fixed;inset:0;background:rgba(43,33,64,.38);display:flex;overflow:auto;padding:max(14px,env(safe-area-inset-top)) 14px max(14px,env(safe-area-inset-bottom));z-index:5} .sheet.tp{margin:auto;max-width:560px;position:relative;border-top-width:10px;border-top-color:var(--c,#ff6fa5);padding-top:16px} .tp h2{margin:0 52px 0 0;font-size:26px} #tpX{position:absolute;top:10px;right:10px;width:46px;height:46px;border-radius:50%;border:3px solid #2b2140;background:#fff;display:grid;place-items:center;padding:0} #tpX svg{width:22px;height:22px} #tpGrid{display:grid;grid-template-columns:repeat(var(--cols,3),minmax(0,1fr));gap:12px;margin-top:14px} .tpb{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 6px 10px;border-radius:24px;border:3px solid #2b2140;background:#fff;font-family:inherit;font-weight:600;font-size:14px;line-height:1.2;color:#2b2140;box-shadow:0 5px 0 var(--c,#ff6fa5);cursor:pointer} .tpb img{width:100%;max-width:128px;height:auto;aspect-ratio:1;display:block} .tpb.on{background:#fff6d6} .tpb:active{transform:translateY(3px);box-shadow:0 2px 0 var(--c,#ff6fa5)} @media (max-width:359px){#tpGrid{grid-template-columns:repeat(2,minmax(0,1fr))}} @media (max-height:520px){.sheet.tp{max-width:720px}.tp h2{font-size:21px}.tpb img{max-width:76px}#tpGrid{grid-template-columns:repeat(var(--colsS,6),minmax(0,1fr));gap:8px;margin-top:10px}} #gear::after{content:'';position:absolute;inset:-7px;border-radius:50%;background:conic-gradient(#ff6fa5 calc(var(--p,0)*1turn),rgba(255,111,165,.15) 0);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px));mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px));opacity:0;transition:opacity .15s;pointer-events:none} #gear.hold::after{opacity:1} #gearTip{position:fixed;right:68px;top:max(14px,env(safe-area-inset-top));background:#2b2140;color:#fff;border-radius:14px;padding:9px 13px;font-size:14px;font-weight:600;z-index:4;pointer-events:none;box-shadow:0 4px 0 rgba(43,33,64,.18)} #wipe{position:fixed;inset:0;background:#fff6c9;pointer-events:none;opacity:0;z-index:4} #wipe.go{animation:wipe .62s ease-out} @keyframes wipe{0%{opacity:1;clip-path:circle(0% at 50% 55%)}40%{opacity:1;clip-path:circle(80% at 50% 55%)}100%{opacity:0;clip-path:circle(80% at 50% 55%)}} .bar{height:10px;border-radius:999px;background:#e8edf5;overflow:hidden;margin:0 6px 6px;border:2px solid #2b2140} #bar{height:100%;width:0;background:#4fd08a;transition:width .2s} #load{font-size:12.5px;color:#6d6485;font-weight:500;margin-bottom:28px} #nav{position:fixed;left:0;right:0;bottom:max(12px,env(safe-area-inset-bottom));display:flex;justify-content:center;gap:8px;pointer-events:none} #nav button{pointer-events:auto;width:clamp(36px,calc((100vw - 96px) / 7),66px);height:clamp(36px,calc((100vw - 96px) / 7),66px);border-radius:50%;background:#fff;border:4px solid #2b2140;display:grid;place-items:center;box-shadow:0 6px 0 rgba(43,33,64,.2);transition:transform .15s} #nav button:active{transform:translateY(4px) scale(.95);box-shadow:0 2px 0 rgba(43,33,64,.2)} #nav svg{width:62%;height:62%} #nav button.on{background:#fff6c9;transform:translateY(-6px) scale(1.08)} #nav button.beg{animation:beg .7s ease-in-out infinite alternate} @keyframes beg{to{transform:translateY(-14px) scale(1.18) rotate(6deg)}} #boo{margin-left:10px} #start{position:fixed;inset:0;display:flex;overflow:auto;background:rgba(110,198,255,.35);padding:max(14px,env(safe-area-inset-top)) 14px max(14px,env(safe-area-inset-bottom))} #start .card{margin:auto} .card{background:#fff;border:4px solid #2b2140;border-radius:34px;padding:26px 26px 30px;text-align:center;max-width:380px;box-shadow:0 10px 0 rgba(43,33,64,.18)} .card h1{margin:0;font-size:34px;line-height:1.05;font-weight:700} .card p{margin:10px 0 14px;font-size:15px;line-height:1.4;color:#6d6485;font-weight:500} #play{width:112px;height:112px;border-radius:50%;background:#ff6fa5;border:5px solid #2b2140;display:inline-grid;place-items:center;box-shadow:0 8px 0 #2b2140;animation:beg .8s ease-in-out infinite alternate} #play svg{width:60px;height:60px;margin-left:6px} #fail{position:fixed;inset:0;margin:0;display:grid;place-items:center;font-size:18px;padding:30px;text-align:center} #cap.mun{border-color:#7c5cff;background:#f3eeff} #giggle{display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.85);border-radius:999px;padding:4px 10px 4px 5px;align-self:center} #giggle svg{width:30px;height:30px} #giggle .gbar{width:120px;height:14px;border-radius:999px;background:#ece6ff;border:2px solid #2b2140;overflow:hidden} #gfill{height:100%;width:0;background:linear-gradient(90deg,#ff6fa5,#ffc93c,#4fd08a);transition:width .5s cubic-bezier(.3,1.6,.5,1)} #giggle.bump{animation:got .5s cubic-bezier(.3,1.8,.5,1)} #kidName{width:100%;min-height:44px;border:3px solid #2b2140;border-radius:14px;padding:0 12px;font:600 16px var(--font);color:#2b2140} #chips{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;background:rgba(255,255,255,.82);border-radius:22px;padding:5px 7px;pointer-events:auto;align-self:center} #chips button{width:40px;height:40px;border-radius:50%;background:#eef1f7;display:grid;place-items:center;border:3px solid transparent;transition:transform .15s} #chips svg{width:22px;height:22px;fill:var(--c)} #chips button.on{background:#fff;border-color:#2b2140;transform:scale(1.12)} #dims{position:fixed;right:12px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:12px;z-index:2} #dims button{width:66px;height:66px;border-radius:22px;background:#fff;border:4px solid #2b2140;font:700 23px/1 var(--font);color:#2b2140;box-shadow:0 5px 0 rgba(43,33,64,.2)} #dims button.on{background:#ffc93c;transform:scale(1.08)} #dims button:active{transform:translateY(3px)} #vig{position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse 85% 75% at 50% 46%,rgba(0,0,0,0) 58%,rgba(18,28,70,.2) 100%)} #build{position:fixed;left:12px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:9px;z-index:2} #build button{width:56px;height:56px;border-radius:18px;background:#fff;border:4px solid #2b2140;display:grid;place-items:center;box-shadow:0 4px 0 rgba(43,33,64,.2)} #build svg{width:62%;height:62%} #build button.on{background:#fff1b8;transform:scale(1.08)} #build .sep{height:6px} #fartb.on{background:#e6f7d4;animation:beg .5s ease-in-out infinite alternate} #dance.on{background:#ffe0f0;animation:beg .45s ease-in-out infinite alternate} @media (max-width:420px){#capT{font-size:18px}#top{padding-left:10px;padding-right:62px;align-items:stretch}#stickers{align-self:center}#nav{gap:7px}#nav button{border-width:3px}#boo{margin-left:4px}#dims button{width:58px;height:58px;font-size:20px}#build button{width:46px;height:46px;border-width:3px}#build{gap:7px}#chips{gap:3px;padding:4px 5px}#chips button{width:31px;height:31px;border-width:2px}#chips svg{width:18px;height:18px}} @media (max-height:480px){#nav button{width:54px;height:54px}#nav svg{width:34px;height:34px}#capT{font-size:17px}} @media (max-height:520px) and (orientation:landscape){ #nav{left:max(10px,env(safe-area-inset-left));right:auto;top:0;bottom:0;flex-direction:column;justify-content:center;gap:8px} #nav button{width:42px;height:42px;border-width:3px} #nav svg{width:28px;height:28px} #build{top:auto;left:50%;bottom:max(10px,env(safe-area-inset-bottom));transform:translateX(-50%);flex-direction:row} #build .sep{width:6px;height:auto} #build button{width:46px;height:46px} #dims{top:auto;bottom:max(10px,env(safe-area-inset-bottom));transform:none;flex-direction:row} #dims button{width:54px;height:54px;font-size:19px} #nav button.on{transform:translateX(6px) scale(1.06)} #boo{margin-left:0;margin-top:6px} #top{padding-left:76px} #stickers{position:fixed;left:50%;bottom:max(8px,env(safe-area-inset-bottom));transform:translateX(-50%)} } @media (max-height:520px){.card{padding:14px 22px 16px;border-radius:26px}.card h1{font-size:24px}.card p{margin:6px 0 8px;font-size:13px}#play{width:78px;height:78px;box-shadow:0 6px 0 #2b2140}#play svg{width:42px;height:42px}.appbtn{margin-top:10px;min-height:40px;font-size:14px}#load{margin-bottom:22px}} @media (prefers-reduced-motion:reduce){#play,#nav button.beg,#dance.on,#fartb.on{animation:none}} .back{display:block;margin-top:14px;font-size:13px;font-weight:600;color:#6d6485;text-decoration:none} .back:hover{color:#2b2140} .sheet .back{text-align:center}