:root{--ink:#29334b;--muted:#718096;--purple:#7058c4}*{box-sizing:border-box}html{background:#faf8f5}body{margin:0;min-height:100vh;color:var(--ink);font-family:ui-rounded,"Trebuchet MS",system-ui,sans-serif;background:radial-gradient(ellipse at 10% 7%,#fff0e5,transparent 42%),radial-gradient(ellipse at 95% 23%,#e7f2fc,transparent 46%),#faf8f5}button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible{outline:4px solid #7656bf;outline-offset:4px}.shell{width:min(100% - 34px,980px);margin:0 auto}.topbar{display:flex;align-items:center;justify-content:space-between;padding:22px 0 15px}.brand{display:flex;align-items:center;gap:8px;color:#32334d;text-decoration:none;font-weight:1000;font-size:20px;letter-spacing:-.7px}.brand-eight{background:#7159c6;color:white;display:grid;place-items:center;height:35px;width:35px;border-radius:11px;font:900 25px monospace}.brand-dot{color:#9384c0;margin-left:-8px}.sound-btn{background:white;border:1px solid #e8e3ef;border-radius:80px;padding:11px 16px;font-size:13px;font-weight:900;color:#6b5d86}.welcome{text-align:center;padding:15px 0}.eyebrow{color:#886bb7;font-size:11px;letter-spacing:1.7px;font-weight:1000}.welcome h1{font-size:clamp(49px,8vw,82px);letter-spacing:-3.6px;margin:10px 0 6px;line-height:1.1}.welcome h1 span{color:#f98464}.subtitle{font-size:clamp(15px,2.2vw,19px);color:#788097;line-height:1.5;max-width:610px;margin:0 auto}.hero-shapes{display:flex;justify-content:center;align-items:center;gap:26px;height:111px}.hero-circle,.hero-square,.hero-triangle{display:block;width:66px;height:66px;filter:drop-shadow(0 9px 1px #29203c12)}.hero-circle{border-radius:50%;background:#f37872}.hero-square{background:#85aef0;border-radius:13px}.hero-triangle{width:0;height:0;border-left:38px solid transparent;border-right:38px solid transparent;border-bottom:70px solid #ffc45c;transform:translateY(-7px)}.pill{border-radius:100px;background:#eee8ff;color:#7054b5;font-size:11px;font-weight:1000;letter-spacing:1px;padding:9px 14px;display:inline-block}.section-title h2{font-size:30px;letter-spacing:-1px;margin:10px 0 18px}.level-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;text-align:left}.level-card{display:flex;flex-direction:column;min-height:278px;overflow:hidden;padding:0;border:2px solid #ece8ef;border-radius:23px;background:white;text-align:left;color:var(--ink);box-shadow:0 13px 24px #463d4d11;transition:transform .16s}.level-card:hover{transform:translateY(-4px);border-color:#ccb5ee}.level-banner{height:108px;position:relative;display:grid;place-items:center;background:#e5f6eb}.level-banner.second{background:#e7efff}.level-banner.third{background:#fff0dd}.card-illustration{font-size:43px}.age{position:absolute;right:10px;top:10px;font-size:10px;font-weight:1000;background:#ffffffc9;color:#73718b;padding:6px 9px;border-radius:99px}.level-copy{display:flex;flex-direction:column;flex:1;padding:18px}.level-number{color:#8a6cb4;font-size:10px;font-weight:1000;letter-spacing:1.3px}.level-copy strong{font-size:22px;letter-spacing:-.7px;margin:6px 0}.level-copy>span:nth-child(3){font-size:13px;line-height:1.5;color:#7c8094}.card-cta{margin-top:auto;padding-top:14px;border-top:1px solid #eee9f4;color:#7259b5;font-weight:1000}.welcome-note{font-size:13px;color:#838495;margin:21px auto}.game-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.back-btn{border:0;background:transparent;padding:11px 3px;color:#705e92;font-weight:900}.level-title{font-size:20px;font-weight:1000}.round-label{background:white;border:1px solid #e9e5ed;border-radius:90px;padding:10px 14px;color:#736c8a;font-weight:1000;font-size:12px}.progress{display:flex;justify-content:center;gap:5px;margin:7px auto 13px}.progress span{height:8px;flex:1;max-width:29px;border-radius:99px;background:#e6e4ee}.progress .done{background:#9aceaa}.progress .active{background:#8069d0}.board{background:linear-gradient(165deg,#fff,#fffdf7);border:2px solid #eee9de;border-radius:28px;box-shadow:0 11px 29px #34333e0c;text-align:center;padding:19px clamp(10px,3vw,30px) 15px}.board-heading{display:flex;justify-content:center;align-items:center;gap:18px}.board-heading>span{font-size:18px;color:#e1b564}.board-heading h2{font-size:clamp(20px,3vw,28px);letter-spacing:-.8px;margin:2px 0}.axis-hint{font-size:13px;color:#888699;margin:7px 0 0}.matrix{--count:2;display:grid;grid-template-columns:minmax(50px,74px) repeat(var(--count),minmax(0,1fr));gap:9px;max-width:635px;margin:17px auto 10px}.matrix[data-count="3"]{grid-template-columns:minmax(43px,64px) repeat(3,minmax(0,1fr));gap:7px}.axis-label{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px;padding:7px 4px;min-height:42px;border-radius:14px;background:#f3effe;color:#68558d;font-size:13px;font-weight:1000}.axis-label.row-head{background:#f1f5fb;color:#62718c;flex-direction:column}.corner{font-size:12px;font-weight:1000;color:#9992a7;align-self:center}.swatch{width:15px;height:15px;border-radius:50%;border:2px solid white;box-shadow:0 0 0 1px #b9b6c9}.shape-mark{font-size:26px;line-height:1}.grid-cell{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-height:107px;min-width:0;padding:8px 3px;background:#fcfcff;border:2px dashed #d9d7e7;border-radius:21px;transition:transform .15s,border-color .15s,background .15s}.cell-art{height:68px;width:100%;display:grid;place-items:center}.shape-svg{height:65px;width:65px}.cell-art .shape-svg{opacity:.35;filter:saturate(.8)}.cell-art .shape-svg.mini{height:32px;width:32px}.cell-art .shape-svg.midi{height:48px;width:48px}.cell-art .shape-svg.maxi{height:68px;width:68px}.cell-label{font-size:10px;font-weight:900;color:#8b8aa0;text-align:center}.grid-cell.is-hover,.grid-cell:focus-visible{background:#f1ecff;border-color:#977bd7;transform:scale(1.04)}.grid-cell.just-correct{border:2px solid #6cc187;background:#e8fbea;box-shadow:0 0 0 6px #b9e9c6ab;animation:snap .45s ease}.grid-cell.is-wrong{animation:wrong .38s ease;border-color:#e0a48e}.board-tip{font-size:12px;color:#96919f;margin:8px auto 0}.delivery{background:white;border:2px solid #ede7f0;border-radius:25px;padding:15px 20px 13px;margin:14px auto 0;box-shadow:0 9px 22px #453b5510}.delivery-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.delivery-head h2{margin:3px 0 0;font-size:clamp(18px,3vw,23px)}.score{border-radius:90px;background:#fff6dc;color:#967325;padding:10px 15px;font-size:15px;font-weight:1000;white-space:nowrap}.conveyor{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:13px;min-height:130px;border-radius:20px;background:repeating-linear-gradient(90deg,#dce6eb 0,#dce6eb 21px,#d2dfe5 21px,#d2dfe5 25px);border:3px solid #c0d1d9;overflow:visible}.belt-end{color:#a4b7c3;font-size:26px;font-weight:1000;user-select:none}.parcel{position:relative;z-index:2;touch-action:none;user-select:none;-webkit-user-select:none;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:1px;min-height:116px;min-width:159px;background:white;border:3px solid #a69ad9;border-bottom-width:7px;border-radius:18px;box-shadow:0 7px 0 #776ca728,0 11px 25px #5b5b881f;transition:box-shadow .13s}.parcel:disabled{cursor:default}.parcel:not(:disabled){cursor:grab}.parcel.selected{border-color:#7d5ddb;box-shadow:0 0 0 6px #9475e35d,0 11px 20px #5c4f871f}.parcel.dragging{z-index:10;transition:none;box-shadow:0 13px 33px #5c4f8755;cursor:grabbing}.parcel.is-returning{animation:wrong .36s ease}.parcel-art{height:74px;width:85px;display:grid;place-items:center}.parcel-art .shape-svg{height:72px;width:72px;filter:drop-shadow(0 5px 2px #24252b16)}.parcel-art .shape-svg.mini{height:36px;width:36px}.parcel-art .shape-svg.midi{height:55px;width:55px}.parcel-art .shape-svg.maxi{height:77px;width:77px}.parcel-label{color:#43455d;font-size:13px;font-weight:1000;padding-bottom:6px}.feedback{text-align:center;color:#726f89;font-size:14px;font-weight:900;min-height:24px;line-height:1.4;margin:12px 0}.feedback.success{color:#30845c}.feedback.try{color:#ab6a44}.game-actions{display:flex;justify-content:center;align-items:center;gap:11px}.game-action{border:1px solid #e6def5;border-radius:90px;background:#f7f3ff;color:#735bb4;padding:10px 17px;font-size:12px;font-weight:1000}.complete{max-width:580px;margin:24px auto;text-align:center;border:2px solid #ede5f4;background:white;border-radius:30px;padding:38px 20px 46px;box-shadow:0 14px 30px #57436712}.medal{font-size:96px}.complete h2{font-size:clamp(35px,6vw,53px);letter-spacing:-1.8px;margin:12px 0 4px}.complete p{color:#79758d;line-height:1.55}.final-stars{font-size:22px;color:#a78335;font-weight:1000;margin:15px}.best{font-size:12px}.finish-buttons{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:21px}.primary,.secondary{border:0;border-radius:99px;background:#7157c6;color:white;font-weight:1000;padding:15px 24px;box-shadow:0 5px 0 #4e3d98}.secondary{border:2px solid #e0d6f2;background:white;color:#6f57a7;box-shadow:0 5px 0 #e9e3f3}.footer{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap;border-top:1px solid #eee9f0;margin-top:25px;padding:20px 0 30px;color:#9493a3;font-size:12px}.offline{color:#4b9369;font-weight:1000}.switcher{position:fixed;inset:0;z-index:30;background:#4d3275dd;display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(7px)}.switch-content{max-width:465px;width:100%;text-align:center;border:5px solid #e4d5ff;background:white;border-radius:32px;padding:30px 20px 36px;box-shadow:0 20px 48px #27133a5c}.switch-glyph{display:block;font-size:85px}.switch-content h2{font-size:clamp(38px,7vw,56px);letter-spacing:-1.6px;margin:12px 0}.switch-content p{font-size:18px;color:#6b6884;line-height:1.6}.switch-icons{color:#9479ca;font-size:27px;margin:16px auto 24px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;margin:-1px;padding:0;white-space:nowrap;clip:rect(0,0,0,0)}[hidden]{display:none!important}@keyframes snap{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}@keyframes wrong{0%,100%{transform:translateX(0)}25%{transform:translateX(-6px)}50%{transform:translateX(6px)}75%{transform:translateX(-3px)}}@media(max-width:700px){.shell{width:min(100% - 22px,620px)}.welcome{padding-top:9px}.welcome h1{letter-spacing:-2px}.level-grid{grid-template-columns:1fr;gap:11px}.level-card{min-height:130px;display:grid;grid-template-columns:104px 1fr}.level-banner{height:100%;min-height:128px}.card-illustration{font-size:27px}.age{top:auto;right:auto;bottom:9px;font-size:9px}.level-copy{padding:14px}.level-copy strong{font-size:21px}.level-copy>span:nth-child(3){font-size:12px}.card-cta{padding-top:7px}.hero-shapes{height:88px}.hero-circle,.hero-square{width:52px;height:52px}.hero-triangle{border-left-width:30px;border-right-width:30px;border-bottom-width:58px}.section-title h2{font-size:26px;margin-bottom:13px}.board{padding:14px 8px 12px;border-radius:23px}.matrix{grid-template-columns:minmax(45px,56px) repeat(var(--count),minmax(0,1fr));gap:6px}.matrix[data-count="3"]{grid-template-columns:minmax(36px,45px) repeat(3,minmax(0,1fr));gap:5px}.grid-cell{min-height:92px;border-radius:14px;padding:5px 2px}.matrix[data-count="3"] .grid-cell{min-height:82px}.cell-art{height:52px}.cell-art .shape-svg{height:51px;width:51px}.cell-art .shape-svg.mini{height:24px;width:24px}.cell-art .shape-svg.midi{height:36px;width:36px}.cell-art .shape-svg.maxi{height:54px;width:54px}.axis-label{min-height:35px;font-size:11px;border-radius:11px;padding:4px 2px}.cell-label{font-size:10px}.matrix[data-count="3"] .cell-label{font-size:9px}.level-title{font-size:16px}.round-label{font-size:11px}.delivery{margin-top:10px;padding:13px 10px}.conveyor{min-height:112px}.parcel{min-height:101px;min-width:141px}.parcel-art{height:63px}.parcel-art .shape-svg{height:62px;width:62px}.parcel-art .shape-svg.maxi{height:66px;width:66px}.board-heading h2{font-size:20px}.board-tip{font-size:11px}}@media(max-width:375px){.shell{width:calc(100% - 12px)}.matrix{gap:4px}.matrix[data-count="3"]{grid-template-columns:34px repeat(3,minmax(0,1fr));gap:4px}.axis-label{font-size:10px}.grid-cell{border-radius:11px}.matrix[data-count="3"] .cell-label{font-size:8px}.game-action{padding:9px 12px}.brand{font-size:18px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
.advanced-levels{padding:24px;margin:22px auto;max-width:1000px}.advanced-levels h2{font-size:24px}.advanced-levels p{line-height:1.6}.advanced-level{padding:14px;margin:6px;border-radius:14px;border:2px solid #c7bcdf;background:#fff;font:inherit;cursor:pointer}.memory-tools{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin:18px}.memory-tools button{padding:12px;font:inherit;border-radius:12px}.memory-hidden #parcel-art{visibility:hidden}.memory-hidden{background:#ece6fa!important}.headers-hidden .axis-head{color:transparent!important;user-select:none}.headers-hidden .axis-head::after{content:'?';color:#6a567f;font-size:24px}.headers-hidden .grid-cell{color:inherit}
