:root{--bg:#f8f7f2;--paper:#fff;--ink:#203b37;--muted:#536b63;--green:#176b54;--line:#e2e7dd;--yellow:#ffd66c;--radius:24px;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-size:16px}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;min-height:48px;border:0;border-radius:15px;font-weight:750;padding:10px 16px;color:var(--ink);touch-action:manipulation}button:disabled{cursor:default;opacity:.55}button:focus-visible,input:focus-visible{outline:3px solid #146bce;outline-offset:3px}button:not(:disabled):active{transform:scale(.97)}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:clamp(2rem,5vw,3.5rem);line-height:1.05;letter-spacing:-.045em}h2{font-size:clamp(1.45rem,3vw,2rem);letter-spacing:-.035em}p{line-height:1.55}.top,main,footer{max-width:1170px;margin:auto;padding-left:clamp(16px,4vw,42px);padding-right:clamp(16px,4vw,42px)}.top{min-height:84px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}.brand{display:flex;align-items:center;gap:9px;text-align:left;background:none;padding:0;font-size:1.3rem;letter-spacing:-.04em}.brand small{display:block;font-size:.57rem;letter-spacing:.12em;color:var(--muted)}.logo{display:grid;place-items:center;background:#ccebd7;border-radius:14px;width:46px;height:46px;font-size:32px;color:#176b54}.brand-accent{color:var(--green)}.tools,.filters,.controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.status,.muted{font-size:.83rem;color:var(--muted)}.primary{background:var(--green);color:white;box-shadow:0 4px 0 #0f4d3c}.secondary{background:#fff;border:1px solid var(--line)}.hero{position:relative;overflow:hidden;background:#dcefe0;border:1px solid #d0e8d3;border-radius:32px;display:grid;grid-template-columns:1.3fr 1fr;align-items:center;min-height:300px;padding:clamp(24px,5vw,55px);gap:15px}.hero h1{margin:14px 0}.hero em{font-style:normal;color:var(--green)}.hero p{max-width:470px;margin-bottom:22px;color:#385b4f}.eyebrow{font-size:.72rem;font-weight:850;letter-spacing:.13em;color:var(--green)}.hero-art{height:230px;position:relative;display:grid;place-items:center}.orbit{position:absolute;width:min(100%,270px);aspect-ratio:1;border:2px dashed #8ab99c;border-radius:50%;transform:rotate(-20deg) scaleY(.75)}.planet{display:grid;place-items:center;background:#ffd66c;color:#a65c13;width:155px;height:155px;border-radius:47% 53% 52% 48%;font-size:95px;transform:rotate(-12deg);box-shadow:inset -12px -10px #f7bc51,0 14px 0 #b7d8b9}.float{position:absolute;font-size:36px;line-height:1}.f1{top:8%;left:15%;color:#ec8476}.f2{right:7%;top:12%;color:#6977c6}.f3{bottom:8%;right:13%;color:#b175b6}.f4{bottom:12%;left:6%;color:white;font-size:64px}.progress-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0 36px}.progress-strip>div{background:var(--paper);border:1px solid var(--line);border-radius:20px;display:flex;gap:12px;align-items:center;padding:15px;min-width:0}.mini-icon{font-size:1.5rem;background:#f6f4e9;padding:9px;border-radius:12px}.progress-strip small,.progress-strip strong{display:block;overflow-wrap:anywhere}.progress-strip small{font-size:.78rem;color:var(--muted)}.progress-strip strong{font-size:1.15rem}.section-head{display:flex;align-items:end;justify-content:space-between;gap:10px;margin-bottom:15px}.filters{margin-bottom:18px}.filter{background:white;border:1px solid var(--line)}.filter[aria-pressed=true]{background:var(--ink);color:white}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.game-card{background:white;border:1px solid var(--line);padding:12px;border-radius:var(--radius);display:flex;flex-direction:column;gap:10px;min-width:0}.card-art{height:138px;display:grid;place-items:center;border-radius:17px;font-size:62px;position:relative;overflow:hidden}.card-art:before,.card-art:after{content:"";position:absolute;width:85px;height:85px;border:2px solid #ffffffa0;border-radius:50%;left:-20px;bottom:-30px}.card-art:after{left:auto;bottom:auto;right:-18px;top:-24px}.card-art span{transform:rotate(-7deg);filter:drop-shadow(0 5px 0 #00000014)}.card-meta{font-size:.72rem;font-weight:800;color:var(--green);text-transform:uppercase;letter-spacing:.06em}.game-card h3{font-size:1.19rem}.game-card p{font-size:.9rem;color:var(--muted);flex:1}.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}.stars{color:#956000;font-weight:800;letter-spacing:.03em}.play-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:24px 0}.play-head h1{font-size:clamp(1.8rem,4vw,2.9rem);margin:7px 0}.play-head p{color:var(--muted)}.game-icon{font-size:clamp(40px,8vw,75px)}.game-panel{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:clamp(16px,3vw,30px);min-height:280px}.game-panel h2{margin:6px 0 12px}.game-panel p{margin:7px 0 14px}.game-panel .controls{margin:14px 0}.hud{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:15px}.hud span{background:#edf4ed;padding:8px 13px;border-radius:12px;font-weight:750}.feedback{min-height:1.7em;color:var(--green);font-weight:750;margin:12px 0}.options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(120px,100%),1fr));gap:12px}.choice{background:#f3f5f0;min-height:100px;display:grid;place-items:center;gap:4px;border:2px solid transparent}.choice .symbol{font-size:48px;line-height:1}.choice.correct{border-color:#16804f;background:#dcf3e1}.choice.wrong{border-color:#c25b4a;background:#ffede9}.memory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,150px));gap:12px;justify-content:center;margin:20px auto}.memory-pad{height:110px;color:#182c26;font-size:36px;box-shadow:inset 0 -7px #0002;border:4px solid transparent}.memory-pad.lit{border-color:#172e28;filter:brightness(1.22);transform:scale(1.06)}.memory-pad:disabled{opacity:1}.trace-board{width:100%;max-width:700px;display:block;margin:auto;background:#f3f7ed;border-radius:20px;touch-action:none;user-select:none}.sort-stage{position:relative;height:260px;overflow:hidden;background:#edf5fb;border:2px solid #dbe8f2;border-radius:18px;touch-action:none;user-select:none}.falling{position:absolute;width:66px;height:66px;min-height:66px;display:grid;place-items:center;font-size:38px;background:white;border:3px solid #d3e1e9;box-shadow:0 4px 0 #bed0dd;padding:0;touch-action:none;z-index:2}.falling.selected{outline:4px solid #176b54}.baskets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}.basket{background:#f3f4ee;border:2px dashed #9bac9c;min-height:80px;padding:8px;font-size:clamp(.75rem,2.5vw,1rem)}.basket span{display:block;font-size:26px}.code-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}.board{display:grid;gap:4px;width:100%;max-width:420px;margin:auto;aspect-ratio:1;background:#e0e9e0;padding:7px;border-radius:15px}.cell{display:grid;place-items:center;background:#f9fbf7;border-radius:7px;font-size:clamp(18px,4vw,32px);min-width:0;min-height:0;position:relative}.cell.wall{background:#aabdb2}.cell.goal{background:#ffdc7b}.cell.robot{background:#d1eddc}.direction{position:absolute;right:2px;bottom:0;font-size:16px;color:#183d2f}.palette{display:flex;flex-wrap:wrap;gap:6px}.block{background:#dce6fa;border:1px solid #b6c8ee;min-height:44px;padding:8px 12px}.loop{background:#f9df9f;border-color:#edc36b}.program{display:flex;gap:6px;flex-wrap:wrap;min-height:58px;align-items:center;padding:10px;background:#f3f5ef;border:2px dashed #c3d0c1;border-radius:14px;margin:10px 0}.result{margin-top:15px;background:#fff7db;border:1px solid #efd78d;border-radius:20px;padding:22px;text-align:center;position:relative;overflow:hidden}.result h2{margin:8px}.result .stars{font-size:36px}.result .controls{justify-content:center}.confetti{position:absolute;top:0;width:10px;height:14px;pointer-events:none;animation:fall 1.2s ease-out forwards}@keyframes fall{to{transform:translateY(260px) rotate(400deg);opacity:0}}footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;padding-top:28px;padding-bottom:30px;font-size:.85rem;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:24px;max-width:min(520px,calc(100% - 24px));max-height:90dvh;padding:24px;color:var(--ink)}dialog::backdrop{background:#182f29aa}dialog form{display:grid;gap:12px}dialog label{font-weight:750}dialog input:not([type=checkbox]){width:100%;min-height:48px;border:1px solid #aebeb4;border-radius:12px;padding:10px}.check{display:flex;align-items:center;gap:10px;font-size:.9rem}.check input{width:24px;height:24px;flex-shrink:0}.danger{background:#fce9e4;color:#8b2e22} @media(max-width:780px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{grid-template-columns:1.5fr 1fr}.planet{width:115px;height:115px;font-size:70px}.hero-art{height:190px}.code-layout{grid-template-columns:1fr}.progress-strip>div{padding:10px;gap:7px}.mini-icon{padding:5px}}@media(max-width:480px){.top{justify-content:center}.tools{justify-content:center}.hero{grid-template-columns:1fr;min-height:0}.hero-art{display:none}.progress-strip{gap:5px;margin-bottom:25px}.progress-strip>div{display:block;text-align:center}.mini-icon{background:none}.progress-strip small{font-size:.67rem}.progress-strip strong{font-size:.95rem}.cards{grid-template-columns:1fr}.card-art{height:110px}.game-card{gap:7px}.memory-pad{height:90px}.section-head{align-items:start}.sort-stage{height:220px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;transition:none!important;scroll-behavior:auto!important}}
