:root{font-family:Arial,Noto Sans Arabic,sans-serif;color:#423c50;background:#fffcf8;font-synthesis:none;--purple:#7554aa;--muted:#746b7b;--line:#e7dfec}*{box-sizing:border-box}body{margin:0}button,select,input{font:inherit}button,a,select,input{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.48}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #6b4c9a;outline-offset:4px}a{color:inherit}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}.skip{position:absolute;top:-100px;z-index:20;background:#fff;padding:15px}.skip:focus{top:8px}.topbar{display:flex;align-items:center;justify-content:space-between;padding:18px max(24px,calc((100vw - 1180px)/2));border-bottom:1px solid #ede5e5;background:#fffdfb;gap:20px}.brand{font-weight:700;text-decoration:none;display:flex;align-items:center;gap:9px;white-space:nowrap}.brand svg{width:33px;height:33px}.top-actions{display:flex;gap:12px;align-items:center}.top-actions select,.teacher-button{border:1px solid #e5dce9;background:#fff;border-radius:13px;padding:10px 14px;color:#55496a;min-height:43px}.teacher-button{display:flex;align-items:center;gap:8px}.teacher-button svg{width:20px;height:20px}main{max-width:1200px;margin:auto;padding:36px 24px 18px}.intro{text-align:center;position:relative;max-width:850px;margin:0 auto 28px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;color:#8c729b;margin:0 0 10px}.intro h1{font-size:clamp(29px,4vw,44px);line-height:1.25;margin:0;font-weight:750;letter-spacing:-1.1px}.intro h1 span{display:inline-block;background:linear-gradient(90deg,#bd6575,#9272b5,#3d8e85);background-clip:text;-webkit-background-clip:text;color:transparent}.intro .headline{font-size:20px;color:#766087;margin:12px 0 6px}.intro p:last-child{margin:0;color:var(--muted);font-size:14px;line-height:1.65}.station{background:#fff;border:1px solid var(--line);border-radius:30px;overflow:hidden;box-shadow:0 16px 50px #9885aa0e}.station-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 26px 0}.station-head h2{font-size:15px;font-weight:600;margin:0}.recipe{display:flex;justify-content:center;gap:10px;align-items:center;min-height:58px;margin:12px 20px 0}.ingredient{min-width:145px;display:flex;align-items:center;gap:10px;background:#fffdf9;border:1px solid #ede2d9;border-radius:100px;padding:9px 15px;font-size:14px;color:#55495c;justify-content:center}.ingredient i{display:block;border-radius:50%;width:25px;height:25px;background:var(--paint);box-shadow:inset 2px 3px 4px #ffffff70,inset -2px -3px 3px #00000012;border:1px solid #00000010}.ingredient.empty{border-style:dashed;color:#a096a4;background:#fffdfb}.ingredient button{border:0;background:transparent;padding:2px 5px;color:#84758d}.plus{font-size:23px;color:#beaccc}.stage-wrap{position:relative;margin:0 12px;background:radial-gradient(ellipse at 50% 25%,#fffaf3,#fbf4eb 80%);border-radius:24px;overflow:hidden}.stage{height:480px;min-width:0;touch-action:none;cursor:grab;position:relative}.stage svg,.stage canvas{display:block;width:100%;height:100%;outline-offset:-4px}.stage:active{cursor:grabbing}.stage-note{position:absolute;bottom:16px;inset-inline-start:20px;pointer-events:none;font-size:12px;color:#897a82;max-width:170px;line-height:1.45}.brush-toggle{position:absolute;top:16px;inset-inline-end:18px;z-index:2;display:flex;align-items:center;gap:9px;background:#fffdf9ed;border:1px solid #ddc8b4;border-radius:100px;padding:10px 16px;color:#6e5545;font-size:13px;max-width:240px;box-shadow:0 4px 14px #a5877112}.brush-toggle[aria-pressed=true]{background:#f1e8fc;border-color:#b8a0d2;color:#66478e}.brush-toggle svg{width:21px;height:21px}.paint-badge{position:absolute;top:18px;inset-inline-start:20px;pointer-events:none;display:flex;align-items:center;gap:7px;font-size:11px;letter-spacing:1.2px;color:#a08a75;font-weight:700}.paint-badge span{width:5px;height:5px;border-radius:50%;background:#bbd9c2}.result-bar{text-align:center;padding:12px 20px 0;min-height:95px}.status{font-size:14px;line-height:1.5;margin:0;color:#77657f;min-height:22px}.result-name{font-size:23px;font-weight:700;margin:3px 0;color:#5b4675;min-height:28px}.progress{height:5px;border-radius:6px;background:#f0e8ef;margin:10px auto 0;width:180px;overflow:hidden}.progress span{display:block;background:linear-gradient(90deg,#e9a59c,#bca8dc,#87c9b6);height:100%;width:0;transition:width .1s linear}.controls{display:flex;justify-content:center;align-items:center;gap:10px;padding:10px 20px 22px;flex-wrap:wrap}.controls button{border-radius:100px;border:1px solid #dfd4e8;background:#fff;color:#6b5881;font-size:14px;min-height:46px;padding:10px 22px;display:flex;align-items:center;justify-content:center;gap:8px}.controls button svg{width:18px;height:18px}.controls .primary{background:#7c5ba3;color:#fff;border-color:#7c5ba3;box-shadow:0 5px 14px #7554aa20}.controls .save:not(:disabled){background:#e5f4ec;color:#3e705f;border-color:#c8e3d4}.palette-panel{border-top:1px solid #eee6ec;background:linear-gradient(135deg,#fffaf5,#faf6ff);padding:20px 28px 24px}.palette-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.palette-title h2{font-size:15px;margin:0}.palette-title span{font-size:12px;color:#94829f}.palette{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:8px;direction:ltr}.paint{border:1px solid transparent;background:none;min-width:0;display:flex;flex-direction:column;align-items:center;gap:8px;padding:7px 3px 9px;border-radius:16px;min-height:78px;color:#6b5b73;font-size:11px;line-height:1.25}.paint:hover{background:#fff}.paint[aria-pressed=true]{background:#ffffffd9;border-color:#c6b1dc;box-shadow:0 3px 10px #9272ad15}.paint i{width:36px;height:36px;border-radius:46% 54% 53% 47%;display:block;background:radial-gradient(circle at 35% 25%,#ffffff65,transparent 52%),var(--paint);box-shadow:inset -3px -4px 6px #00000012,0 4px #00000010,0 6px 6px #8f7b7520;border:1px solid #00000012}.paint:disabled{opacity:.66}.below{text-align:center;font-size:11px;line-height:1.65;color:#8b7c8b;margin:17px auto 0;max-width:850px}.below p{margin:4px}.save-status{min-height:22px;text-align:center;color:#5b7b67;font-size:13px}footer{text-align:center;padding:12px 20px 26px;color:#9d8da1;font-size:11px}dialog{color:#4f405d;border:1px solid #e2d3eb;border-radius:26px;padding:28px;max-width:630px;width:calc(100% - 28px);box-shadow:0 24px 100px #4e386640;max-height:88dvh;overflow:auto}dialog::backdrop{background:#51435c48;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}dialog h2{font-size:25px;margin:0 0 8px}dialog p{font-size:14px;line-height:1.6;color:#86728d}dialog .palette{grid-template-columns:repeat(6,1fr);gap:10px;margin:20px 0}.teacher-count{font-size:12px;color:#7a6089;margin:0}.dialog-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:20px}.dialog-actions button{padding:12px 18px;border:1px solid #d6c5e1;border-radius:100px;background:#fff;color:#73578c;min-height:44px}.dialog-actions .apply{background:#7554aa;color:#fff}.remember{display:flex;align-items:center;gap:9px;font-size:13px;line-height:1.5}.remember input{width:18px;height:18px;accent-color:#7554aa}.fallback-paint{display:none;width:210px;height:210px;border-radius:50%;margin:65px auto;background:#fffbf8;border:14px solid white;box-shadow:0 15px 25px #8d6d5118;position:relative}.fallback-paint i{display:block;position:absolute;top:40px;width:95px;height:95px;border-radius:50%;left:10px;background:var(--a,#f5ebe3)}.fallback-paint i+i{left:78px;background:var(--b,#f5ebe3)}.no-scene .fallback-paint{display:block}.no-scene{height:360px}.no-scene.mixing .fallback-paint{animation:swirl 1.6s linear infinite}@keyframes swirl{to{transform:rotate(360deg)}}.loading{position:absolute;top:40%;left:15%;right:15%;text-align:center;font-size:14px;color:#a68d78;pointer-events:none}[dir=rtl] .eyebrow{letter-spacing:0}[dir=rtl] .ingredient{direction:rtl}[dir=rtl] .intro h1{letter-spacing:0}[dir=rtl] .palette span{direction:rtl}@media(min-width:1450px){.stage{height:520px}}@media(max-width:850px){.palette{grid-template-columns:repeat(6,minmax(0,1fr))}.stage{height:420px}.topbar{padding:14px 18px}.top-actions{gap:7px}.teacher-button{padding:10px}.teacher-button span,.paint{font-size:12px}.paint i{width:34px;height:34px}.stage-note{display:none}}@media(max-width:500px){main{padding:25px 12px 10px}.brand{font-size:12px;gap:5px}.brand svg{width:26px;height:26px}.topbar{padding:12px;gap:7px}.top-actions select{max-width:85px;padding:9px 6px;font-size:12px}.teacher-button span{display:none}.intro{margin-bottom:20px}.intro h1{font-size:30px}.intro .headline{font-size:17px}.intro p:last-child{font-size:12px}.eyebrow{font-size:9px;letter-spacing:1.3px}.station{border-radius:23px}.station-head{padding:17px 17px 0}.station-head h2{font-size:12px}.recipe{gap:7px;margin:12px 10px 5px;min-height:48px}.ingredient{min-width:0;width:42%;padding:8px;font-size:12px;gap:6px}.ingredient i{width:19px;height:19px;flex-shrink:0}.ingredient button{padding:0 3px}.stage-wrap{margin:0 6px;border-radius:18px}.stage{height:260px}.paint-badge{display:none}.brush-toggle{top:9px;inset-inline-end:9px;font-size:11px;max-width:220px;padding:8px 12px}.palette-panel{padding:16px 12px}.palette{gap:5px}.paint{font-size:10px;min-height:70px;padding:5px 1px}.paint i{width:31px;height:31px}.controls{gap:7px;padding:9px 10px 18px}.controls button{font-size:12px;padding:10px 14px;min-height:45px}.controls button svg{width:16px}.result-bar{padding:10px 12px 0;min-height:90px}.status{font-size:12px}.result-name{font-size:21px}dialog{padding:23px 18px}dialog .palette{gap:7px}.below{font-size:10px}footer{padding-bottom:15px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.mode-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-width:490px;margin:0 auto 22px;padding:5px;border:1px solid #e3d9e9;border-radius:20px;background:#f7f1fa}.mode-tabs button{min-width:0;min-height:48px;display:flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:15px;padding:10px 16px;background:transparent;color:#756280;font-size:14px;font-weight:600}.mode-tabs button svg{width:20px;height:20px;flex-shrink:0}.mode-tabs button[aria-pressed=true]{background:#fffefd;color:#6b468e;box-shadow:0 3px 10px #89729815}.mode-tabs button:not(:disabled):hover{background:#fffefd}.mode-tabs button:disabled{opacity:.5}.challenge-panel{max-width:1152px;margin:0 auto 18px}.challenge-offer{display:flex;align-items:center;gap:9px;margin:auto;padding:10px 19px;border:1px solid #ead6b0;border-radius:100px;background:#fff8e8;color:#8b652d;font-size:13px;min-height:44px}.challenge-offer span{color:#bf8b2d;font-size:19px}.challenge-card{padding:20px 25px;border:1px solid #d5e8db;background:linear-gradient(110deg,#eff8f0,#fffaf0);border-radius:24px}.challenge-target{display:flex;align-items:center;gap:17px}.challenge-target>i{width:54px;height:54px;border-radius:45% 55% 47% 53%;background:radial-gradient(circle at 30% 25%,#ffffff80,transparent 60%),var(--paint);box-shadow:inset -3px -3px 7px #00000013,0 4px #0000000c;flex-shrink:0;border:1px solid #00000010}.challenge-card h2{font-size:21px;color:#446551;margin:0 0 6px}.challenge-card p:not(.eyebrow){font-size:12px;line-height:1.6;color:#6d796e;margin:0}.challenge-card .eyebrow{font-size:9px;color:#799275;margin-bottom:5px}.challenge-feedback:empty,.challenge-recipe:empty{display:none}.challenge-card .challenge-feedback{margin:13px 0 0!important;font-weight:600}.challenge-card .challenge-feedback.success{color:#36764e}.challenge-feedback.success:before{content:"✦ ";color:#c4933b}.challenge-card .challenge-recipe{margin-top:5px!important;font-size:13px!important;color:#4e6b57!important}.challenge-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:12px;flex-wrap:wrap}.challenge-actions button{padding:9px 14px;min-height:39px;font-size:12px;border:1px solid #d7e2d1;border-radius:100px;background:#ffffffc7;color:#65795c}.picture-panel{background:#fffdfb;border:1px solid #e5dce9;border-radius:28px;padding:25px 28px 18px;box-shadow:0 16px 50px #9885aa0e}.picture-head{display:flex;align-items:flex-start;gap:25px;justify-content:space-between}.picture-head h2{font-size:24px;line-height:1.3;margin:0 0 9px;color:#654c7d}.picture-head>div>p:last-child{font-size:13px;line-height:1.6;color:#86728c;max-width:650px;margin:0}.template-select{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#80678d;min-width:145px}.template-select select{min-height:44px;border:1px solid #dfd1e8;border-radius:12px;background:#fff;color:#655070;padding:9px 12px}.current-paint{display:flex;align-items:center;justify-content:center;gap:9px;margin:23px 0 15px;font-size:14px;color:#6e557c}.current-paint i{display:block;width:22px;height:22px;border:1px solid #00000015;box-shadow:inset 2px 2px 3px #ffffff50;border-radius:50%}.paper-wrap{position:relative;width:min(100%,650px);aspect-ratio:1;margin:auto;background:#fffefb;border:1px solid #e5d8c5;border-radius:16px;overflow:hidden;box-shadow:0 8px #f4ecdf,0 15px 24px #b8a38918}.paper-wrap canvas{display:block;width:100%;height:100%;touch-action:none;-webkit-user-select:none;user-select:none;cursor:none;outline-offset:-5px}.paper-wrap canvas:focus-visible{outline:3px solid #886aab}.paper-wrap #brush-cursor{position:absolute;width:3.2%;aspect-ratio:1;border-radius:50%;pointer-events:none;transform:translate(-50%,-50%);border:2px solid #ffffff;box-shadow:0 0 0 1px #75627a50;opacity:.75}.paper-wrap #brush-cursor.down{opacity:1;box-shadow:0 0 0 2px #75627a70}.picture-hint{text-align:center;color:#8a7591;font-size:12px;margin:20px 0 17px}.picture-palette h3{font-size:12px;font-weight:500;text-align:center;color:#9b85a2;margin:12px 0}.made-colors{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;direction:ltr}.made-color{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:58px;min-height:76px;padding:8px 10px;border:1px solid transparent;border-radius:15px;background:transparent;color:#70557e;font-size:11px;max-width:110px}.made-color i{width:32px;height:32px;border-radius:45% 55% 47% 53%;background:radial-gradient(circle at 30% 25%,#ffffff80,transparent 60%),var(--paint);border:1px solid #00000010;box-shadow:inset -2px -3px 4px #00000012,0 4px #0000000a}.made-color[aria-pressed=true]{border-color:#bca2ce;background:#f3eafa}.picture-controls{padding:18px 10px 9px}.picture-note{text-align:center;color:#97809f;font-size:11px;line-height:1.65;margin:8px 0}.keyboard-help{max-width:650px;margin:15px auto 0;color:#9a82a1;font-size:11px;text-align:center}.keyboard-help summary{cursor:pointer}.keyboard-help p{line-height:1.7}.picture-panel .save-status{margin-bottom:0}[dir=rtl] .made-color span{direction:rtl}@media(max-width:650px){.mode-tabs{margin-bottom:18px}.mode-tabs button{font-size:12px;padding:9px 10px;gap:6px;min-height:50px}.mode-tabs button svg{width:17px}.challenge-card{padding:17px;border-radius:19px}.challenge-target{gap:12px;align-items:flex-start}.challenge-target>i{width:40px;height:40px}.challenge-card h2{font-size:17px}.challenge-card p:not(.eyebrow){font-size:11px}.challenge-actions{justify-content:flex-start;gap:7px}.challenge-actions button{font-size:11px;min-height:40px}.picture-panel{padding:20px 14px 15px;border-radius:22px}.picture-head{flex-direction:column;gap:16px}.picture-head h2{font-size:20px}.picture-head>div>p:last-child{font-size:12px}.template-select{flex-direction:row;align-items:center;justify-content:space-between;width:100%;font-size:12px}.template-select select{min-width:150px}.current-paint{font-size:12px;margin:20px 0 13px}.paper-wrap{border-radius:12px}.picture-hint{font-size:11px}.made-color{max-width:90px;min-width:52px;font-size:10px;min-height:70px;padding:8px 7px}.made-color i{width:30px;height:30px}.picture-note,.keyboard-help{font-size:10px}.picture-controls button{font-size:12px;padding:10px 14px}.picture-controls{gap:8px}.picture-panel .save-status{font-size:12px}.intro{margin-bottom:20px}}
