@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@700;800;900&display=swap');:root{--ink:#201b19;--orange:#ff8b32;--green:#49b77a;--purple:#7053e8}*{box-sizing:border-box}body{margin:0;background:linear-gradient(#fff5d5,#fffaf0);color:var(--ink);font-family:Nunito,system-ui,sans-serif;min-height:100vh}button{font:inherit;cursor:pointer}header{height:58px;display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:.5rem;padding:0 max(12px,calc((100vw - 620px)/2));background:#ffffffb8;backdrop-filter:blur(12px);border-bottom:1px solid #f0dfb3;position:sticky;top:0;z-index:3}header a{display:grid;place-items:center;width:38px;height:38px;border-radius:13px;background:#fff;color:var(--ink);text-decoration:none;font-size:2rem}header b{font-size:1.05rem}header span{padding:.4rem .65rem;border-radius:999px;background:#fff;font-size:.8rem}main{width:min(620px,100%);margin:auto;padding:1rem 12px 40px}.level-head{display:flex;align-items:center;justify-content:space-between}.level-head small{color:var(--orange);letter-spacing:.1em;font-weight:900}.level-head h1{margin:.15rem 0 .8rem;font-size:clamp(1.25rem,5vw,1.8rem)}#levels{width:44px;height:44px;border:0;border-radius:14px;background:#fff;box-shadow:0 5px 18px #593c1914}.world{display:grid;grid-template-columns:repeat(6,1fr);gap:5px;padding:8px;border-radius:24px;background:#a7db8d;box-shadow:0 9px 0 #72b262;touch-action:none}.cell{position:relative;aspect-ratio:1;border-radius:13px;background:#dff4bb;box-shadow:inset 0 -4px #c1e79b;display:grid;place-items:center;font-size:clamp(1.4rem,8vw,2.4rem)}.cell.rock{background:#9bb596;box-shadow:inset 0 -4px #789178}.actor{position:absolute;inset:0;display:grid;place-items:center;font-size:clamp(1.6rem,9vw,2.7rem);transition:transform .26s ease;z-index:2}.actor.north{transform:rotate(-90deg)}.actor.south{transform:rotate(90deg)}.actor.west{transform:rotate(180deg)}.actor.bump{animation:bump .35s}@keyframes bump{50%{transform:scale(.72)}}.code-panel{margin-top:12px;padding:12px;border-radius:22px;background:#fff;box-shadow:0 12px 35px #65481e14}.run-row{display:grid;grid-template-columns:1fr 56px;gap:.6rem}.program{display:flex;gap:.35rem;align-items:center;min-height:58px;overflow-x:auto;padding:.45rem;border:2px dashed #dfd6ec;border-radius:15px}.program span{color:#91889b;font-size:.75rem}.program i{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:11px;background:#eee9ff;color:var(--purple);font-size:1.2rem;font-style:normal;font-weight:900}.run{border:0;border-radius:17px;background:var(--green);color:#fff;font-size:1.4rem;box-shadow:0 5px 0 #278f56}.blocks{display:grid;grid-template-columns:repeat(5,1fr);gap:.4rem;margin-top:.7rem}.blocks button{display:grid;place-items:center;min-height:57px;border:0;border-radius:14px;background:#f3efff;color:var(--purple);font-size:1.25rem;font-weight:900}.blocks small{font-size:.52rem}#feedback{text-align:center;margin:.65rem 0 0;color:#716a75;font-size:.8rem}.success{color:#19844b!important}.try{color:#cc4e25!important}dialog{width:min(430px,calc(100% - 24px));border:0;border-radius:24px}dialog::backdrop{background:#211c1b88}dialog form{position:relative}.close{position:absolute;right:0;top:0;border:0;border-radius:50%;width:36px;height:36px;font-size:1.4rem}#level-list{display:grid;grid-template-columns:repeat(3,1fr);gap:.55rem}#level-list button{border:0;border-radius:16px;padding:1rem .4rem;background:#f5f2ff;font-weight:900}#level-list button.done{background:#e8fff1;color:#18834a}@media(max-width:390px){.cell{border-radius:9px}.world{gap:3px}.blocks button{min-height:52px}.blocks small{display:none}}
.actor.east{transform:scaleX(-1)}.actor.west{transform:none}.actor.north{transform:rotate(90deg)}.actor.south{transform:rotate(-90deg)}.head-actions{display:flex;gap:.4rem}.head-actions button{width:44px;height:44px;border:0;border-radius:14px;background:#fff;box-shadow:0 5px 18px #593c1914}.share-panel{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.45rem;margin-bottom:.6rem;padding:.5rem;border-radius:15px;background:#fff}.share-panel input{min-width:0;border:1px solid #e5ddce;border-radius:10px;padding:.55rem}.share-panel button,.share-submit{border:0;border-radius:10px;padding:.6rem .75rem;background:var(--purple);color:#fff;font-weight:900}.hidden{display:none!important}#name-form{display:grid;gap:.6rem;padding:.5rem}#name-form label{font-weight:900}#name-form input{width:100%;border:2px solid #e2d9ca;border-radius:13px;padding:.8rem;font:inherit}#call-dock:not(:empty){margin-bottom:.6rem}.program{scrollbar-width:none}.program::-webkit-scrollbar{display:none}
