:root{--ink:#343147;--dim:#746c7e;--sky:#d9eef8;--violet:#bfa0df;--peach:#ffd8b0;--pink:#ffd6e0;--cream:#fff8eb;--paper:#fffefd;--line:#eae1db;--shadow:0 14px 38px rgba(65,49,58,.08);font-family:ui-rounded,'Avenir Next','Trebuchet MS',system-ui,sans-serif;color:var(--ink);background:var(--cream)}
*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 12% -4%,#fce8d6 0,transparent 42%),radial-gradient(circle at 88% 8%,#e4f1fa 0,transparent 37%),#fff8eb}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,input:focus-visible{outline:3px solid #8974cf;outline-offset:3px}a{color:inherit}.container{max-width:1080px;margin:auto;padding:0 22px 110px}.topbar{max-width:1120px;margin:auto;padding:22px 22px 14px;display:flex;justify-content:space-between;align-items:center;gap:15px}.brand{display:flex;align-items:center;gap:10px;font-weight:900;letter-spacing:-.045em;font-size:1.3rem;background:none;border:0;color:var(--ink);text-align:left}.brand .mark{display:grid;place-items:center;background:#f1d6aa;border-radius:16px;width:45px;height:45px;font-size:1.4rem;box-shadow:0 4px 0 #d9b789}.topnav{display:flex;gap:7px;flex-wrap:wrap}.navbtn{border:1.5px solid transparent;background:transparent;color:#595166;padding:10px 15px;border-radius:18px;font-weight:800}.navbtn.active{background:white;border-color:#e8d6d9;box-shadow:0 5px 16px #b4a1a51c}.navbtn:hover{background:#fffefd}.hero{position:relative;margin:25px 0 30px;background:#fffcf5;border:2px solid #fff;box-shadow:var(--shadow);border-radius:32px;padding:48px 48px 42px;overflow:hidden}.hero:after{content:'✦   ✧    ✦';position:absolute;right:25px;top:8px;transform:rotate(-18deg);font-size:5rem;letter-spacing:21px;color:#e9dcec;opacity:.55;pointer-events:none}.eyebrow{text-transform:uppercase;font-weight:900;letter-spacing:.12em;font-size:.77rem;color:#ad7182}.hero h1{max-width:590px;font-size:clamp(2.2rem,5.8vw,4.55rem);line-height:1.08;letter-spacing:-.06em;margin:9px 0 16px;font-weight:950;position:relative;z-index:1}.hero p{font-size:1.13rem;color:var(--dim);line-height:1.6;max-width:570px;margin:0 0 23px;position:relative;z-index:1}.sparkle{color:#f19e4b}.hero-animals{display:flex;gap:10px;font-size:3rem;position:absolute;bottom:24px;right:27px}.primary{border:0;background:#554f78;color:#fff;padding:13px 21px;font-weight:900;border-radius:18px;box-shadow:0 5px 0 #3c375c;min-height:48px}.primary:hover{background:#6a608e}.secondary{border:2px solid #e9dce3;background:#fff;color:#5c5071;padding:11px 16px;border-radius:17px;font-weight:850;min-height:45px}.secondary:hover,.small-button:hover{border-color:#c5a9d5}.primary:active,.secondary:active{transform:translateY(2px)}.buttonrow{display:flex;flex-wrap:wrap;align-items:center;gap:11px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:24px 0 14px}.section-heading h2,h2{font-size:1.7rem;letter-spacing:-.045em;margin:0 0 4px}.section-heading p,.muted{color:var(--dim);margin:0;line-height:1.5}.feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.feature{padding:25px;text-align:left;background:var(--paper);border:2px solid #fff;border-radius:28px;box-shadow:var(--shadow);min-height:212px;display:flex;flex-direction:column;align-items:flex-start;gap:13px;transition:transform .14s}.feature:hover{transform:translateY(-3px)}.feature h3{font-size:1.3rem;letter-spacing:-.035em;margin:0}.feature p{font-size:.93rem;color:var(--dim);line-height:1.5;margin:0}.feature .big-icon{font-size:3.3rem;line-height:1}.feature.pink{background:#fff2f3}.feature.blue{background:#edf8fb}.feature.yellow{background:#fff3d9}.pill{display:inline-block;padding:8px 13px;background:#fff;border:1.5px solid #eee0db;border-radius:999px;font-size:.88rem;font-weight:800}.pill:hover,.pill.selected{background:#f3e5f2;border-color:#c8abd0}.pills{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0}.question-grid,.lesson-grid,.gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.question-tile,.lesson-tile,.gallery-tile{border:2px solid #fff;background:white;text-align:left;border-radius:22px;padding:18px;box-shadow:0 7px 22px #4a2e4010;display:flex;gap:12px;align-items:center}.question-tile:hover,.lesson-tile:hover{border-color:#d9c0e5}.question-tile .emoji{font-size:2.2rem}.question-tile strong,.lesson-tile strong{font-size:1.02rem}.question-tile small,.lesson-tile small{display:block;color:var(--dim);margin-top:4px}.card{background:#fff;border:2px solid #fff;box-shadow:var(--shadow);border-radius:28px;padding:24px;margin-bottom:18px}.ask-row{display:flex;gap:10px}.ask-row input{flex:1;min-width:0;border:2px solid #e4d9e2;background:#fff;border-radius:18px;padding:15px 17px;font-size:1rem;outline:none}.ask-row input:focus{border-color:#a08abf}.answer-main{background:linear-gradient(135deg,#fff,#fff7e8);border:2px solid #f1dfbe;border-radius:28px;padding:28px}.answer-main .emoji{font-size:3.3rem}.answer-main h2{font-size:clamp(1.7rem,4vw,2.5rem);margin:8px 0 12px}.answer-main .lead{font-size:1.28rem;line-height:1.6;color:#413c4d;margin:0 0 19px}.answer-detail{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:15px}.detail{background:#fff;border:1px solid #e9dfe7;border-radius:21px;padding:20px}.detail h3{margin:0 0 9px;font-size:1.05rem}.detail p{margin:0;color:#555061;line-height:1.6}.note{border-left:4px solid #ccb2e3;padding:9px 15px;color:#5b5264;background:#faf6ff;border-radius:0 14px 14px 0;margin:15px 0}.tag{font-size:.75rem;font-weight:900;letter-spacing:.06em;color:#8b7a91;text-transform:uppercase}.tiny{font-size:.81rem;color:var(--dim);line-height:1.5}.soft{color:var(--dim)}.spaced{margin:20px 0}.lesson-tile{padding:0;overflow:hidden;align-items:stretch;flex-direction:column}.lesson-tile .thumb{height:160px;display:flex;align-items:center;justify-content:center;background:linear-gradient(150deg,#fef2df,#f5eafb)}.lesson-tile .thumb svg{height:155px;width:100%}.lesson-tile .info{padding:17px 19px 22px}.lesson-tile .info p{color:var(--dim);margin:6px 0 0;font-size:.9rem}.studio-head{display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap}.studio-tools{display:flex;gap:8px;flex-wrap:wrap;margin:13px 0}.tool{padding:10px 14px;border-radius:17px;border:2px solid #eadce5;color:#66596e;background:#fff;font-weight:800}.tool.active{background:#6b5b89;color:white;border-color:#6b5b89}.studio-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:17px;align-items:start}.drawing-paper{position:relative;background:linear-gradient(#fffefa,#fffaf2);border:3px solid #efdecf;border-radius:27px;min-height:280px;overflow:hidden;box-shadow:0 10px 26px #796d5d1a}.drawing-paper svg{width:100%;height:auto;display:block;touch-action:none;user-select:none;-webkit-user-select:none}.drawing-paper svg.active-pen{cursor:crosshair}.drawing-paper .gridline{stroke:#eadbda;stroke-width:1;opacity:.22}.drawing-sidebar{background:#fff;border:1.5px solid #eadfe2;border-radius:24px;padding:20px}.drawing-sidebar h3{margin:0 0 8px}.drawing-sidebar p{line-height:1.5;color:var(--dim)}.progress-track{height:9px;background:#f1e9ef;border-radius:99px;overflow:hidden;margin:14px 0}.progress-fill{height:100%;background:#c69ab7;border-radius:99px;transition:width .2s}.draw-controls{display:flex;flex-wrap:wrap;gap:9px;margin:14px 0}.small-button{background:#fff;border:2px solid #e9dce3;color:#5d556e;border-radius:14px;padding:10px 13px;font-weight:850}.palette{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.swatch{width:36px;height:36px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1px #cfc2c7;cursor:pointer}.swatch.active{box-shadow:0 0 0 3px #6b5b89}.trace-demo{stroke-dasharray:1;stroke-dashoffset:1;animation:drawLine 2.4s ease-in-out forwards}@keyframes drawLine{to{stroke-dashoffset:0}}.paper-note{background:#f4ecfb;border-radius:16px;padding:13px;margin:10px 0;font-size:.9rem;line-height:1.5;color:#61536f}.music-pads{display:grid;grid-template-columns:repeat(8,1fr);gap:8px}.music-pad{border:0;border-radius:20px 20px 14px 14px;height:180px;box-shadow:inset 0 -12px #00000010,0 5px 12px #71617322;font-size:1.5rem;font-weight:900;color:#463753;touch-action:manipulation}.music-pad:active{transform:translateY(4px)}.gallery-tile{flex-direction:column;align-items:stretch}.gallery-thumb{background:#fdf6ec;border-radius:14px;overflow:hidden}.gallery-thumb svg{width:100%}.gallery-tile .row{display:flex;justify-content:space-between;align-items:center;gap:8px}.footer{padding:40px 20px;text-align:center;color:#837b82;font-size:.81rem}.footer button{border:0;background:transparent;color:#786a86;text-decoration:underline}.offline{display:inline-flex;align-items:center;gap:7px;background:#ebf6e9;color:#396f44;padding:7px 12px;border-radius:999px;font-weight:850;font-size:.77rem}.empty{padding:28px;background:#fff;border:2px dashed #e6d9de;border-radius:24px;color:#685e6d;line-height:1.6}.kbd{padding:1px 6px;background:#f2edf5;border-radius:5px}.parent-card{background:#fff;border:1.5px solid #eee0e5;border-radius:21px;padding:20px;margin:15px 0}.parent-card h3{margin:0 0 7px}.parent-card p{color:var(--dim);line-height:1.6;margin:0}.parents-lock{max-width:650px}.gallery-actions{display:flex;gap:8px;flex-wrap:wrap}.is-hidden{display:none!important}@media(max-width:800px){.studio-layout{grid-template-columns:1fr}.studio-tools{justify-content:center}.music-pad{height:130px}.hero-animals{opacity:.35;right:10px}.hero{padding:35px 30px}}@media(max-width:620px){.topbar{padding:14px 14px 6px;display:block}.brand{justify-content:center;margin:0 auto 11px}.topnav{justify-content:center;gap:3px}.navbtn{font-size:.83rem;padding:9px 11px}.container{padding:0 13px 85px}.hero{margin-top:16px;border-radius:26px;padding:30px 24px 35px}.hero h1{font-size:2.35rem}.hero p{font-size:1rem}.hero-animals{display:none}.feature-grid{grid-template-columns:1fr}.feature{min-height:unset;padding:18px;flex-direction:row;align-items:center}.feature .big-icon{font-size:2.5rem}.feature h3{font-size:1.15rem}.feature p{font-size:.85rem}.feature .feature-text{flex:1}.question-grid,.lesson-grid,.gallery-grid{grid-template-columns:1fr}.ask-row{flex-direction:column}.answer-detail{grid-template-columns:1fr}.answer-main{padding:21px}.answer-main .lead{font-size:1.1rem}.music-pads{grid-template-columns:repeat(4,1fr)}.music-pad{height:116px}.studio-head h2{font-size:1.4rem}.card{padding:18px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition-duration:.001ms!important}}

/* Luna's original offline mood-and-dance mini activity */
.feature.lilac{background:#f5ecff}
.luna-world{position:relative;isolation:isolate;text-align:center;max-width:780px;margin:0 auto;padding:20px 24px 28px;border:2px solid #f1e1ed;border-radius:32px;background:radial-gradient(circle at 50% 30%,#fff9f6,#f4ebfa);box-shadow:var(--shadow)}
.luna-stage{height:min(60vw,350px);min-height:245px;max-width:440px;margin:auto;display:grid;place-items:center}
.luna-art{height:100%;width:100%;overflow:visible;filter:drop-shadow(0px 10px 11px #b7a4c43a)}
.luna-character{transform-origin:50% 80%}
.luna-stars{transform-origin:50% 50%}
.luna-caption{font-size:clamp(1.05rem,3vw,1.3rem);font-weight:800;color:#624e76;margin:6px auto 18px;min-height:2.2em;display:flex;justify-content:center;align-items:center}
.luna-moods{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}
.luna-mood{border-radius:18px;min-width:102px;min-height:78px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:2px solid #e9dce8;background:#fff;color:#534662;font-weight:850;box-shadow:0 3px 0 #e5d2e6}
.luna-mood span{font-size:1.65rem}
.luna-mood.picked{border-color:#9671c0;background:#f3e9ff}
.luna-options{justify-content:center;margin-top:20px}
.mood-happy .luna-character{animation:luna-bounce .6s ease-in-out 6 alternate}
.mood-silly .luna-character{animation:luna-wiggle .52s ease-in-out 7}
.mood-curious .luna-character{animation:luna-tilt 1.1s ease-in-out 4}
.mood-calm .luna-character{animation:luna-sway 1.8s ease-in-out 3}
.mood-brave .luna-character{animation:luna-stomp .65s ease-in-out 6}
.mood-happy .luna-stars,.mood-brave .luna-stars{animation:luna-twinkle 1.1s ease-in-out 4}
@keyframes luna-bounce{0%{transform:translateY(0) rotate(-3deg)}100%{transform:translateY(-27px) rotate(4deg)}}
@keyframes luna-wiggle{0%,100%{transform:rotate(-12deg) translateX(-7px)}50%{transform:rotate(13deg) translateX(9px)}}
@keyframes luna-tilt{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(10deg) translateY(-7px)}}
@keyframes luna-sway{0%,100%{transform:rotate(-5deg) translateY(-4px)}50%{transform:rotate(5deg) translateY(3px)}}
@keyframes luna-stomp{0%,100%{transform:translateY(0) rotate(-3deg)}35%{transform:translateY(-18px) rotate(3deg)}60%{transform:translateY(0) rotate(-1deg)}}
@keyframes luna-twinkle{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(1.08)}}
@media(max-width:620px){.luna-world{padding:14px 12px 22px;border-radius:26px}.luna-mood{min-width:92px;min-height:76px}.luna-stage{height:280px;min-height:220px}}
@media(prefers-reduced-motion:reduce){.luna-character,.luna-stars{animation:none!important}}

/* The six familiar ways Luna answered a question in the recovered v2 artifact */
.six-ways{grid-template-columns:repeat(2,minmax(0,1fr))}
.six-ways .detail{border-color:#fff;box-shadow:0 5px 14px #4a2e4010}
.six-ways .detail ul{margin:0;padding-left:22px;line-height:1.6}
.six-ways .detail-pink{background:#ffe6f1}
.six-ways .detail-purple{background:#eee5ff}
.six-ways .detail-blue{background:#e5f2ff}
.six-ways .detail-green{background:#def8ec}
.six-ways .detail-yellow{background:#fff2cb}
.six-ways .detail-peach{background:#ffeadd}
.vocabulary{margin:15px 0;background:#fffdf7}
/* Offline recorded arrangement controls and Luna's matching dances */
.music-playlist{background:#fff6fc;border:2px solid #f1deea;border-radius:28px;padding:22px;margin-bottom:18px}
.music-playlist h3{margin:0 0 5px;font-size:1.4rem}
.track-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}
.track-tile{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;text-align:center;padding:20px 12px;border:2px solid #eadce5;background:#fff;border-radius:22px;min-height:170px;color:#5a4d69}
.track-tile small{font-size:.83rem;color:#7b7082;line-height:1.35}
.track-tile span:last-child{color:#6b528a;font-size:.85rem;font-weight:850}
.track-tile.playing{background:#f2e3ff;border-color:#9671c0;box-shadow:0 5px 0 #d8bced}
.track-icon{font-size:2.5rem;line-height:1.3}
.music-dancing{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:0;background:#fff;border-radius:20px;margin:14px 0;padding:8px 10px 18px;color:#76558c}
.music-luna{height:200px;width:240px}
.music-luna svg{height:100%;width:100%}
.music-dancing .luna-character{transform-origin:50% 80%}
.music-dancing.track-classical .luna-character{animation:luna-sway 2.1s ease-in-out infinite}
.music-dancing.track-rock .luna-character{animation:luna-bounce .46s ease-in-out infinite alternate}
.music-dancing.track-dreamy .luna-character{animation:luna-sway 3.5s ease-in-out infinite}
@media(max-width:620px){.six-ways{grid-template-columns:1fr}.track-grid{grid-template-columns:1fr}.track-tile{min-height:98px;display:grid;grid-template-columns:48px 1fr;align-items:center;justify-items:start;text-align:left}.track-tile small,.track-tile span:last-child{grid-column:2}.track-icon{grid-row:1/4}}
@media(prefers-reduced-motion:reduce){.music-dancing .luna-character{animation:none!important}}
/* WO-02: ask flow, grown-up area, gallery-full guard */
.miss{text-align:left}.miss .offer-grid{margin:12px 0}
.saved-note{font-weight:800;color:#6b528a;margin:10px 0 0}
.hold-button{position:relative;overflow:hidden;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:manipulation}
.hold-button::after{content:'';position:absolute;left:0;bottom:0;height:5px;width:0;background:#9671c0}
.hold-button.holding::after{width:100%;transition:width 1.5s linear}
.asked-list{list-style:none;padding:0;margin:14px 0 0;display:grid;gap:8px}
.asked-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff;border-radius:14px;padding:10px 12px}
.gallery-full{margin-top:12px}.gallery-full .buttonrow{margin-top:10px}
@media(prefers-reduced-motion:reduce){.hold-button.holding::after{transition:none}}
/* WO-08: Seeds under a leaf */
.feature.green{background:#eef8ea}
.seeds{background:#fffcf5;border:2px solid #fff;box-shadow:var(--shadow);border-radius:28px;padding:24px}.seeds-total{font-size:1.15rem;margin:0 0 10px}
.seeds-luna{display:flex;gap:12px;align-items:center;background:#f4ecfb;border-radius:18px;padding:12px 16px;margin-bottom:16px}.seeds-luna-face{font-size:2rem}.seeds-luna p{margin:0;font-size:1.1rem;font-weight:800;color:#4b4360}
.seeds-ground{display:flex;gap:18px;align-items:center;flex-wrap:wrap;background:linear-gradient(#f6efe2,#efe2c9);border-radius:22px;padding:22px;min-height:150px}
.seeds-visible,.seeds-hidden,.counters{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.seeds-hidden{min-width:180px;min-height:110px;justify-content:center}.seeds-hidden.lifted{background:#e6f3df;border-radius:18px;padding:10px}
.seed{display:inline-block;width:30px;height:21px;border-radius:50%;background:#9a6a3a;box-shadow:inset -4px -4px 0 #7d5329}.seed-hidden{background:#b07c45}
.leaf{width:200px;height:140px}.seeds-tray{margin:16px 0;padding:14px;border:2px dashed #e6d9de;border-radius:18px;background:#fff}.counters{min-height:34px;margin:8px 0}
.counter{display:inline-block;width:26px;height:26px;border-radius:50%;background:#c4c5f1;border:2px solid #8f90cf}
.seeds-actions{margin:6px 0 12px}.seeds-totals{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:14px 0}.seeds-totals .tag{margin-right:4px}
/* WO-08 fixes: guess number, rows of 5, equation, seed count on top */
.guess{display:flex;align-items:center;justify-content:space-between;gap:12px}.guess-number{font-size:2.6rem;font-weight:950;line-height:1;color:#554f78;min-width:56px;text-align:center;background:#f1ecfa;border-radius:16px;padding:6px 10px}
.seeds .counters{display:grid;grid-template-columns:repeat(5,26px);gap:10px;min-height:26px}
.seeds-equation{font-size:2.2rem;font-weight:950;text-align:center;letter-spacing:.04em;color:#3f6a3c;margin:14px 0 4px}
.seeds .seeds-totals{margin:0 0 14px;padding-bottom:12px;border-bottom:1.5px solid #eee0e5}.seeds .seeds-totals .tiny{margin-left:4px}
/* WO-06: My own picture, brushes, mirror line, gallery tags, backup */
.own-tile .thumb{background:linear-gradient(150deg,#fffdf7,#f3ecfa)}.own-icon{font-size:4rem}
.brush-row{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 14px}.tool.brush{display:flex;align-items:center;gap:8px;min-height:48px}
.brush-dot{display:inline-block;border-radius:50%;background:currentColor}
.drawing-sidebar h3{margin:12px 0 4px}.drawing-sidebar .swatch{width:44px;height:44px}
.draw-controls button{min-height:48px}.draw-controls button[disabled]{opacity:.45;cursor:default}
.draw-prompt{font-size:1rem}.about{margin-top:3px}
.file-button{display:inline-flex;align-items:center;cursor:pointer;position:relative}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.file-button:focus-within{outline:3px solid #6b5b89;outline-offset:2px}

.feature.rose{background:#ffeaf4}
.track-tile.special{grid-column:1/-1;min-height:150px;background:#fff0f7;border-color:#e9b8d3}
.track-tile.special strong{font-size:1.25rem}
.track-tile.special.playing{background:#f2e3ff;border-color:#9671c0}
.music-dancing.track-princess-peas .luna-character{animation:luna-bounce .6s ease-in-out infinite alternate}
@media(prefers-reduced-motion:reduce){.music-dancing.track-princess-peas .luna-character{animation:none!important}}
