@font-face{font-family:Kota;src:url('../assets/kota-book.woff')}@font-face{font-family:Kota;src:url('../assets/kota-demi.woff');font-weight:700}
:root{--ink:#173f45;--muted:#607b7d;--teal:#0b7d7c;--teal2:#0a9187;--cream:#fff8df;--paper:#fffdf5;--line:#dfe9df;--yellow:#ffd24a;--coral:#ff7867;--sky:#45aee6;--green:#46ac68;--violet:#8e71d7;--shadow:0 12px 30px rgba(45,89,82,.12)}
*{box-sizing:border-box}html,body{margin:0;height:100%;font-family:Kota,system-ui,sans-serif;color:var(--ink);background:#f7fbf4}button,select{font:inherit}button{touch-action:manipulation}.app-shell{min-height:100vh;display:flex;flex-direction:column;background:radial-gradient(circle at 10% 0,#fff2bc 0 12%,transparent 38%),linear-gradient(180deg,#fffdf6,#f2fbf5)}
.topbar{min-height:96px;padding:14px clamp(18px,3vw,42px);display:flex;align-items:center;justify-content:space-between;gap:20px;background:rgba(255,255,255,.9);border-bottom:1px solid #e1eadf;box-shadow:0 4px 20px rgba(40,80,70,.06);z-index:5}.brand-wrap{display:flex;align-items:center;gap:14px}.back-button{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;text-decoration:none;font-size:36px;color:var(--teal);background:#edf8f4;border:1px solid #d9ebe5}.brand-icon{width:58px;height:58px;border-radius:19px;background:#fff2ae;display:flex;align-items:center;justify-content:center;gap:3px;box-shadow:inset 0 -5px 0 rgba(255,185,52,.18)}.brand-icon span:nth-child(1){color:var(--coral)}.brand-icon span:nth-child(2){color:var(--sky)}.brand-icon span:nth-child(3){color:var(--green)}.brand h1{font-size:clamp(25px,2.4vw,38px);margin:0;line-height:1}.brand p{margin:5px 0 0;font-size:15px;color:#66807d}.header-tools{display:flex;gap:10px;align-items:center}.tool-button,.icon-button{border:0;border-radius:15px;background:#edf7f4;color:#205c5b;font-weight:700;min-height:48px;padding:0 16px;cursor:pointer}.teacher{background:#0b7d7c;color:#fff}.icon-button{width:50px;padding:0;font-size:24px}
.workspace{flex:1;padding:20px clamp(18px,3vw,42px) 16px;display:flex;flex-direction:column;gap:16px}.instruction-card{background:#fff;border:1px solid #e2e8d8;border-radius:24px;padding:17px 22px;box-shadow:var(--shadow)}.mission-kicker{display:flex;gap:9px;align-items:center}.mission-kicker span{font-size:13px;font-weight:700;padding:6px 10px;border-radius:999px;background:#eef8f4;color:#2c716c}.mission-kicker span:last-child{background:#fff1b8;color:#765b00}.mission-copy{display:flex;align-items:end;justify-content:space-between;gap:28px;margin-top:7px}.mission-copy h2{font-size:clamp(26px,2.5vw,38px);margin:0 0 4px}.mission-copy p{font-size:19px;color:var(--muted);margin:0}.progress-wrap{min-width:190px;text-align:right}.progress-wrap strong{font-size:18px}.progress-track{height:10px;background:#edf1e7;border-radius:999px;overflow:hidden;margin-top:7px}.progress-track span{display:block;height:100%;width:0;background:linear-gradient(90deg,#58b96f,#14a8a1);border-radius:inherit;transition:width .25s}
.play-zone{position:relative;flex:1;min-height:520px;display:grid;grid-template-columns:minmax(350px,.8fr) minmax(520px,1.4fr);gap:18px}.garden-strip{position:absolute;left:0;right:0;bottom:-4px;height:48px;overflow:hidden;display:flex;justify-content:space-around;align-items:end;font-size:27px;opacity:.75;pointer-events:none}.item-area,.basket-area{position:relative;background:rgba(255,255,255,.82);border:1px solid #e1ebe1;border-radius:26px;padding:18px;box-shadow:var(--shadow);overflow:hidden}.section-label{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-bottom:12px}.section-label>span{font-size:21px;font-weight:700}.section-label small{font-size:14px;color:var(--muted)}.item-tray{display:grid;grid-template-columns:repeat(3,minmax(92px,1fr));gap:12px;align-content:start}.item-card{position:relative;min-height:118px;border:2px solid #e7eee6;background:#fff;border-radius:22px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;cursor:grab;user-select:none;transition:transform .16s,border-color .16s,box-shadow .16s}.item-card:hover,.item-card:focus-visible{transform:translateY(-2px);border-color:#94d5c2;outline:none}.item-card.selected{border:4px solid #0da293;box-shadow:0 0 0 5px rgba(13,162,147,.13);transform:scale(1.025)}.item-card.placed{display:none}.item-visual{display:grid;place-items:center;line-height:1}.item-label{font-size:14px;color:#567272}.geometric{filter:drop-shadow(0 5px 3px rgba(0,0,0,.08))}.geo-circle{border-radius:50%}.geo-square{border-radius:7px}.geo-triangle{width:0!important;height:0!important;background:transparent!important;border-left-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-color:transparent!important;border-right-color:transparent!important}.empty-tray{height:calc(100% - 50px);min-height:250px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#477069}.empty-tray>span{font-size:50px}.empty-tray strong{font-size:22px;margin-top:8px}.empty-tray small{font-size:15px;margin-top:5px;color:#6b8480}.basket-grid{height:calc(100% - 44px);display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.basket-grid.two{grid-template-columns:repeat(2,1fr)}.basket{min-height:330px;border:3px dashed #c9ddd4;border-radius:28px;background:linear-gradient(180deg,#fbfffc,#f3f9f5);display:flex;flex-direction:column;align-items:center;position:relative;padding:16px 10px 14px;transition:.16s border-color,.16s background,.16s transform}.basket:hover,.basket.drop-target,.basket:focus-visible{border-color:#1a9f91;background:#ecfaf5;outline:none}.basket.selected-target{transform:scale(1.015);border-color:#0f9288}.basket-title{display:flex;align-items:center;gap:8px;font-weight:700;font-size:20px;padding:7px 12px;background:#fff;border:1px solid #e0ebe5;border-radius:999px;z-index:2}.basket-color-dot{width:18px;height:18px;border-radius:50%}.basket-visual{font-size:54px;margin:13px 0 5px}.basket-items{display:flex;align-content:flex-start;justify-content:center;flex-wrap:wrap;gap:7px;width:100%;padding:8px}.mini-item{width:72px;height:72px;border-radius:16px;background:#fff;box-shadow:0 4px 10px rgba(34,81,69,.1);display:grid;place-items:center;animation:pop .22s ease-out}.mini-item .item-label{display:none}.mini-item .item-visual{transform:scale(.66)}@keyframes pop{from{transform:scale(.5);opacity:0}to{transform:scale(1);opacity:1}}
.bottom-dock{padding:12px clamp(18px,3vw,42px);display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff;border-top:1px solid #dfe9e2;box-shadow:0 -6px 22px rgba(45,89,82,.06)}.feedback{display:flex;align-items:center;gap:10px;font-size:17px;color:#4b6766}.feedback-icon{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;background:#fff5ca}.feedback.good{color:#126b5f}.feedback.bad{color:#a04b3e}.actions{display:flex;gap:10px}.secondary-button,.primary-button{border:0;border-radius:16px;min-height:50px;padding:0 19px;font-weight:700;cursor:pointer}.secondary-button{background:#edf5f2;color:#2d6460}.secondary-button:disabled{opacity:.45;cursor:default}.primary-button{background:#0a8b82;color:#fff;box-shadow:0 7px 15px rgba(10,139,130,.18)}footer{text-align:center;padding:8px 12px 10px;color:#69817e;background:#fff;font-size:13px}
.dialog{border:0;border-radius:28px;padding:0;max-width:620px;width:min(620px,calc(100vw - 32px));box-shadow:0 28px 80px rgba(24,65,60,.3);color:var(--ink)}.dialog::backdrop{background:rgba(20,52,51,.42);backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;padding:24px 26px 16px;border-bottom:1px solid #e5ece6}.dialog-head h2{font-size:30px;margin:4px 0 0}.eyebrow{font-size:12px;color:#0e8179;letter-spacing:.12em;font-weight:700}.close-button{border:0;background:#eff6f3;border-radius:14px;width:44px;height:44px;font-size:28px;color:#45706b;cursor:pointer}.dialog-body{padding:12px 26px 26px}.setting{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid #edf1ec}.setting span{display:flex;flex-direction:column;gap:4px}.setting small{color:#718682;font-size:13px}.setting select{border:1px solid #cfe0da;background:#fff;border-radius:13px;padding:10px 36px 10px 12px;font-weight:700;color:#285f5b;min-width:150px}.toggle-setting input{width:24px;height:24px;accent-color:#0b8c82}.apply-button{width:100%;border:0;border-radius:17px;background:#0b827b;color:#fff;font-weight:700;padding:15px;margin-top:20px;cursor:pointer}.success-dialog{text-align:center;padding:28px;max-width:560px}.success-burst{font-size:70px}.success-dialog h2{font-size:38px;margin:4px 0}.success-dialog>p{font-size:18px;color:#5e7674}.reflection{text-align:left;display:flex;gap:13px;background:#fff7d4;border-radius:18px;padding:15px 17px;margin:20px 0}.reflection>span{font-size:28px}.reflection b{font-size:17px}.reflection p{margin:4px 0 0;color:#665f3b}.success-actions{display:flex;justify-content:center;gap:10px}.success-actions button{min-width:150px}
@media(max-width:1050px){.play-zone{grid-template-columns:1fr}.item-tray{grid-template-columns:repeat(4,1fr)}.basket{min-height:250px}.basket-grid{min-height:320px}.header-tools .tool-button span{display:none}}@media(max-width:720px){.topbar{align-items:flex-start}.brand-icon{display:none}.brand p{display:none}.tool-button{padding:0 12px}.workspace{padding:12px}.mission-copy,.bottom-dock{align-items:stretch;flex-direction:column}.progress-wrap{text-align:left}.item-tray{grid-template-columns:repeat(3,1fr)}.basket-grid,.basket-grid.two{grid-template-columns:1fr}.basket{min-height:180px}.actions button{flex:1}.actions{width:100%}.section-label small{display:none}}@media(max-height:800px) and (min-width:1000px){.topbar{min-height:78px}.workspace{padding-top:12px}.instruction-card{padding:12px 18px}.play-zone{min-height:420px}.item-card{min-height:94px}.basket{min-height:260px}.basket-visual{font-size:42px;margin:7px 0}.bottom-dock{padding-top:8px;padding-bottom:8px}}
