:root{--ink:#302746;--muted:#81798f;--purple:#7660d8;--indigo:#5543ad;--teal:#299c91;--coral:#f69281;--yellow:#ffd575;--paper:#fffdf9;--border:#e7e1ef;--shadow:0 12px 40px #42305a0c}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f8f5fc;color:var(--ink);font-family:'Trebuchet MS','Avenir Next',Arial,sans-serif;font-size:15px;line-height:1.5;overflow-x:hidden}button,a,canvas{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid var(--teal);outline-offset:4px}button{transition:transform .18s,background .18s,box-shadow .18s}button:active{transform:translateY(2px) scale(.98)}button:disabled{opacity:.4;cursor:default}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.16;letter-spacing:-.04em}.ambient{position:fixed;border-radius:50%;z-index:-1;filter:blur(20px);pointer-events:none}.a1{width:600px;height:600px;background:#ece5ff88;top:150px;right:-250px}.a2{width:500px;height:500px;background:#ffe8dc55;left:-230px;top:800px}.topbar{height:102px;max-width:1220px;padding:0 35px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:10px;font-size:24px;font-weight:900;letter-spacing:-1.2px;line-height:1.1}.brand-icon{display:flex;align-items:center;justify-content:center;border-radius:15px;width:44px;height:44px;background:var(--purple);color:white;transform:rotate(-7deg)}.brand-icon svg{width:37px}.purple{color:var(--purple)}.brand small{display:block;color:#9689ad;font-size:8px;letter-spacing:2.4px;margin-top:6px}.topbar nav{display:flex;align-items:center;gap:28px}.nav-link{border:0;background:none;color:#6d617e;font-size:13px;font-weight:bold;padding:10px 0}.nav-link:hover{color:var(--purple)}.icon-button{width:39px;height:39px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border);background:#ffffff80;border-radius:50%;color:#716483}.icon-button svg,.button svg,.tool svg{width:19px;height:19px;vertical-align:middle}.eyebrow{font-size:11px;font-weight:bold;letter-spacing:2px;text-transform:uppercase;color:var(--purple);display:flex;align-items:center;gap:8px}.eyebrow i{width:7px;height:7px;border-radius:50%;background:#a696e8;display:inline-block}.hero{max-width:1180px;min-height:535px;margin:24px auto 0;padding:28px 42px 48px;display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:15px}.hero h1{font-size:clamp(47px,5.2vw,72px);font-weight:900;line-height:1.04;margin:25px 0 23px}.hero h1 em{font-style:normal;color:var(--purple);position:relative;white-space:nowrap}.hero h1 em:after{content:'';position:absolute;height:7px;background:#f4bf7855;left:0;right:0;bottom:1px;border-radius:100%;transform:rotate(-2deg)}.hero-copy>p{max-width:380px;color:var(--muted);font-size:16px;line-height:1.8}.button{display:inline-flex;gap:10px;align-items:center;justify-content:center;padding:14px 23px;border:0;border-radius:13px;background:var(--purple);color:#fff;font-weight:bold;font-size:14px;box-shadow:0 6px 0 #5543ad14;min-height:49px}.button:hover{background:#6851ca;box-shadow:0 8px 22px #7660d830;transform:translateY(-2px)}.button.secondary{color:#746589;background:#f0eaf9;box-shadow:none}.button.white{background:white;color:var(--ink);border:1px solid var(--border);box-shadow:none}.button.teal{background:var(--teal)}.hero .cta{display:flex;align-items:center;gap:20px;margin-top:30px}.scribble-note{color:#a193ad;font-size:12px;transform:rotate(-5deg)}.trust{display:flex;gap:17px;margin-top:22px;font-size:11px;color:#9a90a7}.trust span:before{content:'✓';color:var(--teal);margin-right:5px}.hero-art{position:relative;min-width:0}.hero-art svg{width:100%;overflow:visible;filter:drop-shadow(0 18px 20px #8170aa12)}.floating{animation:float 6s ease-in-out infinite}.hero-art .small-label{position:absolute;background:#fff;padding:9px 15px;border-radius:11px;box-shadow:var(--shadow);font-size:11px;letter-spacing:.3px;font-weight:bold;color:#847497;right:0;top:35px;transform:rotate(7deg)}.mini-progress{max-width:1080px;margin:4px auto 64px;border:1px solid #e8e0f0;border-radius:20px;background:#ffffff8f;padding:23px 30px;display:flex;align-items:center;gap:24px;box-shadow:0 5px 20px #42305a03}.progress-icon{width:42px;height:42px;border-radius:13px;background:#f3ecfc;color:var(--purple);display:grid;place-items:center;font-size:23px}.mini-progress .progress-copy{min-width:190px}.mini-progress strong{font-size:14px}.mini-progress p{font-size:12px;color:var(--muted);margin-top:3px}.progress-track{height:7px;border-radius:5px;background:#ede7f5;overflow:hidden;flex:1}.progress-fill{height:100%;background:linear-gradient(90deg,#a594ed,#7560d7);border-radius:5px;transition:width .5s}.fraction{font-size:12px;font-weight:bold;color:#8e7eaa;white-space:nowrap}.section{max-width:1080px;margin:0 auto 66px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:25px}.section-heading h2{font-size:30px;margin-top:9px}.section-heading p{font-size:13px;color:var(--muted);margin-top:10px}.section-heading .pill{align-self:end}.pill{display:inline-flex;padding:6px 11px;border-radius:8px;font-size:10px;letter-spacing:.6px;font-weight:bold;background:#eee8fa;color:#8b77b6;white-space:nowrap}.how{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.how-card{padding:26px 25px 27px;border:1px solid #e9e3ef;background:#ffffff70;border-radius:19px;display:flex;gap:17px}.how-card .step-art{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;font-size:25px;flex-shrink:0;transform:rotate(-5deg)}.how-card:nth-child(1) .step-art{background:#eee6fc}.how-card:nth-child(2) .step-art{background:#ffeadc}.how-card:nth-child(3) .step-art{background:#def2ee}.how-card h3{font-size:15px;letter-spacing:-.3px;margin:3px 0 8px}.how-card p{font-size:12px;line-height:1.7;color:var(--muted)}.level-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:15px}.level-card{border:1px solid #e9e2f0;background:#fffefa;padding:20px 17px 16px;text-align:left;border-radius:17px;position:relative;overflow:hidden;min-height:145px}.level-card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:#baa9e8}.level-card .level-num{font-size:11px;color:#b1a5c3;letter-spacing:1.5px;font-weight:bold}.level-card .level-glyph{font-size:30px;line-height:1.5;color:var(--purple);margin:3px 0 6px;height:43px}.level-card strong{font-size:12px;display:block;letter-spacing:-.2px}.level-card .status{font-size:10px;color:#a699b5;display:block;margin-top:6px}.level-card.solved{border-color:#a9d8cc;background:#f4fcf8}.level-card.solved .status{color:var(--teal)}.level-card.skipped{background:#fffbf3;border-color:#f1dfb9}.level-card.skipped .status{color:#bb8b3f}.level-card .tick{position:absolute;right:14px;top:16px;font-size:14px;color:var(--teal)}.bottom-note{text-align:center;color:#a79ab9;font-size:12px;margin-top:25px}footer{max-width:1150px;margin:0 auto;padding:26px 35px 30px;border-top:1px solid #e9e0f0;display:flex;justify-content:space-between;color:#a79cb5;font-size:11px}.heart{color:#e59a9c;font-size:17px;margin-left:5px}.game-shell{max-width:1080px;margin:24px auto 60px;padding:0 26px}.game-top{display:flex;align-items:center;gap:17px;margin-bottom:29px}.back-link{color:#8c7d9e;background:none;border:none;font-size:12px;padding:5px 0;white-space:nowrap}.game-top .progress-track{max-width:245px;margin-left:auto}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 234px;gap:25px;align-items:start}.play-card{border:1px solid #e3dcec;border-radius:25px;background:#fff;box-shadow:var(--shadow);overflow:hidden;animation:enter .35s ease-out}.puzzle-header{padding:25px 30px 17px}.puzzle-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.stroke-badge{font-size:11px;color:#a197ac}.puzzle-header h1{font-size:26px;margin-bottom:9px}.puzzle-header p{font-size:15px;color:#85768f;max-width:590px;line-height:1.6;min-height:48px}.canvas-wrap{position:relative;aspect-ratio:600/360;margin:0 20px;border-radius:18px;background-color:#fffdf7;background-image:radial-gradient(#c8bddc55 .8px,transparent .8px);background-size:19px 19px;overflow:hidden;border:1px solid #eee8dc}.canvas-wrap svg,.canvas-wrap canvas{position:absolute;inset:0;width:100%;height:100%;display:block}.canvas-wrap svg{pointer-events:none}.canvas-wrap canvas{touch-action:none;cursor:crosshair;user-select:none}.canvas-wrap.solved canvas{cursor:default}.canvas-caption{font-size:10px;color:#b3a7bd;display:flex;justify-content:space-between;margin:10px 28px 0;gap:10px}.canvas-caption span:first-child:before{content:'●';color:var(--purple);margin-right:5px}.tools{display:flex;align-items:center;gap:7px;border-bottom:1px solid #eee7f2;padding:15px 22px 17px;flex-wrap:wrap}.tool{border:1px solid #e8e1ef;background:white;color:#8a7c9b;padding:9px 11px;border-radius:9px;font-size:11px;display:flex;gap:6px;align-items:center;min-height:38px}.tool:hover{background:#f4effb}.tool.active{color:var(--purple);background:#eee7fc;border-color:#b8a9e1}.tool.hint{margin-left:auto;color:#a68740;background:#fffbef;border-color:#f0e4bc}.submit-row{display:flex;align-items:center;justify-content:space-between;padding:20px 26px;gap:15px}.submit-row .button{min-width:180px}.skip{border:none;background:none;color:#a698b4;font-size:12px;padding:9px}.feedback{margin:16px 24px 0;padding:14px 17px;border-radius:13px;background:#fff1ea;color:#ad765b;font-size:13px;animation:enter .25s}.feedback.success{background:#e7f6ef;color:#298b75}.feedback strong{display:block;font-size:16px;margin-bottom:5px;letter-spacing:-.4px}.feedback.hint-box{background:#fff9e8;color:#a5843f}.feedback[hidden]{display:none}.side-card{border:1px solid #e3dcec;border-radius:20px;padding:23px 21px;background:#ffffff88}.side-card h2{font-size:16px;margin-bottom:6px}.side-card>p{font-size:11px;color:#9a8ba9;line-height:1.8}.side-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:20px 0}.level-dot{aspect-ratio:1;border:1px solid #e8e1f0;border-radius:8px;background:white;color:#ac9dbb;font-size:10px;padding:0}.level-dot.current{background:var(--purple);color:white;border-color:var(--purple)}.level-dot.solved{background:#ddf3e9;color:#389c7d;border-color:#c0e2d1}.level-dot.skipped{background:#fff4db;color:#b99345;border-color:#eee0bc}.level-dot.current{box-shadow:0 0 0 2px #b8a4e455}.legend{display:flex;gap:12px;font-size:9px;color:#ab9db9;flex-wrap:wrap;margin-bottom:17px}.legend i{width:6px;height:6px;border-radius:50%;background:#b4decd;display:inline-block;margin-right:4px}.legend i.gold{background:#efdb9d}.side-card .button{width:100%;font-size:11px;padding:9px;min-height:38px}.brain-note{text-align:center;color:#ab9eb9;font-size:12px;line-height:1.8;padding:28px 14px}.brain-note .note-icon{font-size:28px;display:block;margin-bottom:7px}.results{max-width:1000px;margin:24px auto 60px;padding:15px 30px}.results-head{text-align:center;max-width:550px;margin:0 auto 30px}.results-head .eyebrow{justify-content:center}.trophy{font-size:49px;margin:10px 0}.results-head h1{font-size:42px;margin-bottom:15px}.results-head p{color:var(--muted);line-height:1.8}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:28px 0}.stat{background:#fff;border:1px solid var(--border);border-radius:18px;text-align:center;padding:25px 10px}.stat strong{display:block;font-size:33px;color:var(--purple);letter-spacing:-2px}.stat span{font-size:11px;color:var(--muted)}.result-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:25px 0 50px}.result-actions .button{font-size:12px}.results .level-grid{margin-top:25px}.results .level-card{min-height:126px}.accuracy-note{text-align:center;color:#a194ac;font-size:10px;margin-top:12px}.toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);z-index:100;background:var(--ink);color:white;border-radius:12px;padding:12px 20px;font-size:12px;opacity:0;pointer-events:none;transition:.2s;max-width:90%;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}#modal:not([hidden]){position:fixed;inset:0;background:#30274666;z-index:50;display:grid;place-items:center;backdrop-filter:blur(7px);padding:24px}.modal-card{background:#fffdfb;padding:34px;border-radius:24px;max-width:420px;box-shadow:0 30px 80px #30274633}.modal-card h2{font-size:27px;margin-bottom:13px}.modal-card p{color:var(--muted);font-size:14px;line-height:1.8;margin-bottom:24px}.modal-actions{display:flex;gap:10px;justify-content:end}#confetti{position:fixed;inset:0;pointer-events:none;z-index:60;overflow:hidden}.confetto{position:absolute;top:-20px;width:8px;height:13px;animation:confetti 1.8s ease-in forwards}.shake{animation:shake .35s}.success-stamp{position:absolute;right:22px;top:20px;background:#e5f6ec;color:var(--teal);padding:7px 11px;border-radius:10px;transform:rotate(7deg);font-weight:bold;font-size:12px;animation:enter .3s}.game-hint{margin:18px 8px 0;text-align:center;font-size:11px;color:#ad9db9}.mobile-levels{display:none}@keyframes float{50%{transform:translateY(-10px) rotate(1deg)}}@keyframes enter{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}@keyframes shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}@keyframes confetti{to{transform:translateY(110vh) rotate(650deg);opacity:0}}@media(min-width:1500px){.hero{margin-top:50px}}@media(max-width:1150px){.section,.mini-progress{margin-left:35px;margin-right:35px}.hero{padding-left:35px;padding-right:35px}.game-layout{grid-template-columns:minmax(0,1fr) 210px;gap:18px}.puzzle-header{padding:22px}.game-shell{padding:0 28px}.side-card{padding:20px 15px}.level-grid{gap:11px}}@media(max-width:800px){.topbar{height:84px;padding:0 23px}.topbar nav{gap:18px}.brand{font-size:20px}.brand-icon{width:38px;height:38px;border-radius:12px}.brand small{font-size:6px;letter-spacing:2px}.nav-link{font-size:11px}.hero{margin-top:12px;padding:20px 28px 35px;min-height:0;gap:4px}.hero h1{font-size:48px}.hero-copy>p{font-size:13px}.hero .cta{gap:12px;margin-top:23px}.hero .button{padding:13px 20px}.scribble-note{font-size:10px}.trust{gap:10px;font-size:9px}.hero-art .small-label{font-size:9px;padding:7px 10px}.mini-progress{margin:20px 28px 48px;padding:20px;gap:16px}.mini-progress .progress-copy{min-width:150px}.section{margin:0 28px 48px}.how{gap:12px}.how-card{display:block;padding:20px}.how-card .step-art{margin-bottom:15px}.level-grid{grid-template-columns:repeat(4,1fr)}.game-layout{display:block;max-width:700px;margin:auto}.game-sidebar{display:none}.puzzle-header h1{font-size:25px}.game-top{margin-bottom:22px}.game-shell{margin-top:15px}.mobile-levels{display:inline-block}.game-top .progress-track{max-width:none}.game-top .fraction{font-size:11px}.game-top .eyebrow{font-size:9px}.game-top .back-link{font-size:10px}.game-hint{font-size:10px}}@media(max-width:560px){.topbar{padding:0 18px;height:80px}.topbar nav{gap:12px}.topbar .nav-link{font-size:10px}.topbar #levels-top{display:none}.icon-button{width:40px;height:40px}.hero{display:flex;flex-direction:column;padding:22px 24px 14px;text-align:center}.hero .eyebrow{justify-content:center;font-size:9px}.hero h1{font-size:clamp(32px,10.5vw,53px);margin-top:19px;margin-bottom:20px}.hero-copy>p{font-size:14px;max-width:320px;margin:auto}.hero .cta{justify-content:center;margin-top:24px}.trust{justify-content:center;font-size:10px;margin-top:18px}.hero-art{max-width:350px;width:100%;margin:16px auto 0}.hero-art .small-label{right:9px;top:23px}.mini-progress{margin:4px 20px 42px;gap:13px;padding:18px 17px;flex-wrap:wrap;border-radius:17px}.progress-icon{width:36px;height:36px}.mini-progress .progress-copy{min-width:0;flex:1}.mini-progress strong{font-size:12px}.mini-progress p{font-size:10px}.mini-progress .progress-track{order:4;min-width:100%;height:5px}.fraction{font-size:11px}.section{margin:0 20px 40px}.section-heading{margin-bottom:20px}.section-heading h2{font-size:26px}.section-heading p{font-size:12px}.pill{font-size:8px;padding:5px 8px}.how{grid-template-columns:1fr;gap:10px}.how-card{display:flex;padding:18px 20px;gap:15px}.how-card .step-art{margin:0;width:39px;height:39px;font-size:23px}.how-card h3{font-size:14px}.how-card p{font-size:11px}.level-grid{grid-template-columns:repeat(3,1fr);gap:10px}.level-card{padding:15px 12px 14px;min-height:135px}.level-card strong{font-size:11px;line-height:1.4;min-height:30px}.level-card .level-glyph{font-size:27px;margin-bottom:3px}.level-card .level-num{font-size:9px}.level-card .status{font-size:9px}.level-card .tick{top:12px;right:10px;font-size:11px}.section-heading .pill{display:none}footer{padding:22px 20px;font-size:9px}.game-shell{padding:0 12px;margin-top:11px;margin-bottom:35px}.game-top{gap:10px;padding:0 5px;margin-bottom:17px}.game-top .eyebrow{display:none}.game-top .progress-track{margin-left:5px}.game-top .fraction{font-size:10px}.play-card{border-radius:19px}.puzzle-header{padding:20px 20px 13px}.puzzle-header h1{font-size:23px;margin-bottom:9px}.puzzle-header p{font-size:13px;line-height:1.6;min-height:43px}.puzzle-meta{margin-bottom:13px}.puzzle-meta .pill{font-size:9px}.stroke-badge{font-size:10px}.canvas-wrap{margin:0 10px;border-radius:13px;aspect-ratio:600/390}.canvas-wrap svg{height:100%;}.canvas-caption{margin:9px 17px 0;font-size:8px}.tools{padding:12px 12px 14px;gap:5px}.tool{font-size:10px;padding:8px 9px;gap:4px;min-height:42px}.tool svg{width:15px;height:15px}.tool.hint{margin-left:auto}.submit-row{padding:17px}.submit-row .button{min-width:164px;font-size:13px;padding:13px 16px}.skip{font-size:11px}.feedback{margin:13px 14px 0;font-size:12px;padding:12px 14px}.feedback strong{font-size:14px}.game-hint{font-size:9px;margin-top:17px}.results{padding:10px 20px;margin-top:14px}.results-head h1{font-size:34px}.results-head p{font-size:13px}.stat-grid{gap:8px}.stat{padding:17px 5px;border-radius:13px}.stat strong{font-size:27px}.stat span{font-size:9px}.result-actions{gap:8px;margin-bottom:35px}.result-actions .button{font-size:10px;padding:11px 13px;min-height:40px}.results .level-grid{grid-template-columns:repeat(3,1fr)}.results .level-card{min-height:125px}.modal-card{padding:27px}.modal-card h2{font-size:23px}.modal-card p{font-size:13px}.modal-actions .button{font-size:12px;padding:12px 17px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
