/* Shape & Colour Hunt (2026-10-24). Loads after /learn/add-subtract/as.css (shared Fuzz & Cola look) and /css/langmenu.css. */
.top{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;max-width:720px;margin:0 auto;padding:10px 14px}
.top .brand{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:6px 14px;border-radius:999px;background:#fff;text-decoration:none;color:var(--ink);font-weight:700;box-shadow:0 2px 8px var(--line);min-width:0;flex:0 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.sh-snd{flex:0 0 auto;min-width:44px;min-height:44px;border-radius:999px;background:#fff;box-shadow:0 2px 8px var(--line);font-size:20px}
.sh-badge{display:block;width:max-content;max-width:100%;margin:2px auto 0;font-weight:800;color:var(--coral);background:#fff;padding:6px 14px;border-radius:999px;box-shadow:0 2px 8px var(--line);font-size:18px}
.sh-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin:8px 0 6px}
.sh-step{display:grid;grid-template-columns:auto 1fr auto;grid-template-areas:"i n s" "i d s";align-items:center;gap:2px 12px;text-align:start;
 min-height:76px;padding:12px 14px;border-radius:20px;background:#F3FBFF;border:2px solid #BFE3FA;box-shadow:0 3px 0 #BFE3FA;transition:transform .12s}
.sh-step:active{transform:translateY(2px);box-shadow:0 1px 0 #BFE3FA}
.sh-step:focus-visible,.sh-opt:focus-visible,.sh-btn:focus-visible,.sh-say:focus-visible,.sh-back:focus-visible,.sh-snd:focus-visible,.top .brand:focus-visible{outline:3px solid var(--lilac);outline-offset:3px}
.sh-si{grid-area:i;font-size:24px;letter-spacing:-2px}
.sh-sn{grid-area:n;font-weight:700;font-size:18px}
.sh-sd{grid-area:d;color:var(--soft);font-size:15px}
.sh-ss{grid-area:s;color:#F5B400;font-size:20px;letter-spacing:1px}
.dim{color:#E7D9E2}
.sh-total{text-align:center;font-weight:700;margin:12px 0 4px}
.sh-grown{font-size:14px;color:var(--soft);margin:10px 0 0;text-align:center}
.sh-top{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.sh-back{min-height:44px;padding:8px 14px;border-radius:999px;background:#EAF6FF;font-weight:700}
.sh-round{color:var(--soft);font-weight:600}
.sh-dots{display:flex;justify-content:center;gap:8px;margin:10px 0 4px}
.sh-dots span{width:12px;height:12px;border-radius:50%;background:#E3EEF5}
.sh-dots span.on{background:var(--mint)}.sh-dots span.now{background:var(--sky);transform:scale(1.25)}
.sh-ask{display:flex;align-items:center;justify-content:center;gap:10px;margin:8px 0 6px}
.sh-cat{width:64px;height:64px;flex:0 0 auto;filter:drop-shadow(0 4px 6px rgba(74,46,62,.18))}
.sh-q{font-size:clamp(22px,5.6vw,30px);line-height:1.2;margin:0;outline:none;background:#FFF7FB;border:2px solid #FFC2D8;border-radius:18px;padding:8px 14px}
.sh-say{display:flex;margin:6px auto 10px;min-height:44px;padding:8px 18px;border-radius:999px;background:#EAF6FF;font-weight:700;color:#2C6FA8;align-items:center;gap:6px}
.sh-shadow,.sh-hint{width:110px;height:110px;margin:4px auto 14px;padding:10px;border-radius:24px;background:linear-gradient(180deg,#FFFDF5,#FFF5E1);border:3px dashed #FFD7A3}
.sh-hint{width:84px;height:84px;padding:8px;border-style:solid;border-color:#BFE3FA;background:#fff}
.sh-shadow svg,.sh-hint svg{width:100%;height:100%}
.sh-shadow.filled{border-color:var(--ok);border-style:solid;animation:pop .4s ease-out both}
.sh-scene{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;padding:14px 10px;margin:0 0 14px;border-radius:20px;background:linear-gradient(180deg,#FFFDF5,#FFF5E1);border:2px dashed #FFD7A3}
.sh-sc{position:relative;width:clamp(40px,11vw,56px);height:clamp(40px,11vw,56px);rotate:var(--r,0deg);animation:pop .35s ease-out both;animation-delay:var(--d,0ms)}
.sh-sc svg{width:100%;height:100%}
.sh-sc.lit{filter:drop-shadow(0 0 6px rgba(95,216,169,.95))}
.sh-sc.lit::after{content:attr(data-n);position:absolute;top:-8px;inset-inline-end:-8px;min-width:24px;height:24px;border-radius:999px;background:var(--ok);color:#fff;font-weight:800;font-size:15px;display:grid;place-items:center;rotate:calc(-1 * var(--r,0deg))}
.sh-opts{display:flex;justify-content:center;gap:14px;flex-wrap:wrap}
.sh-opt{width:clamp(66px,19vw,96px);height:clamp(66px,19vw,96px);padding:12px;border-radius:24px;background:#fff;border:3px solid #BFE3FA;box-shadow:0 5px 0 #BFE3FA;display:grid;place-items:center;transition:transform .12s}
.sh-opt svg{width:100%;height:100%}
.sh-opts.nums .sh-opt b{font-size:42px;line-height:1;color:var(--ink)}
.sh-opt:active{transform:translateY(3px);box-shadow:0 2px 0 #BFE3FA}
.sh-opt.ok{border-color:var(--ok);box-shadow:0 5px 0 var(--ok);animation:pop .4s}
.sh-opt.no{opacity:.35;animation:shake .35s}
.sh-fb{min-height:64px;display:flex;align-items:center;justify-content:center;gap:8px;text-align:center;font-weight:700;font-size:20px;margin:12px 0 0}
.sh-fb img{width:56px;height:56px}
.sh-bigstars{text-align:center;font-size:48px;color:#F5B400;margin:0;letter-spacing:4px}
.sh-btn{min-height:52px;padding:10px 20px;border-radius:999px;background:#fff;border:2px solid #FFC2D8;font-weight:700}
.sh-btn.main{background:linear-gradient(135deg,var(--sky),var(--lilac));border:0;color:#fff;box-shadow:0 4px 0 rgba(0,0,0,.08)}
.sh-more{max-width:720px;margin:8px auto;padding:0 14px}
.sh-more ul{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.sh-more a{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:8px 14px;border-radius:999px;background:#fff;text-decoration:none;font-weight:700;color:var(--ink);box-shadow:0 2px 8px var(--line)}
@keyframes pop{0%{transform:scale(.6);opacity:0}70%{transform:scale(1.08);opacity:1}100%{transform:scale(1)}}
@keyframes shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
@media(prefers-reduced-motion:reduce){.sh-sc,.sh-shadow.filled,.sh-opt.ok,.sh-opt.no{animation:none}}
@media(max-width:420px){.sh-opts{gap:8px}.top .brand{padding:6px 10px}}
