@import "https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700;800&family=JetBrains+Mono:wght@600;700&display=swap";:root{--bg:#f8fbff;--card:#fff;--ink:#20324a;--subtle:#4c6785;--brand:#ff7a59;--brand-dark:#f45b3a;--accent:#4dc8ff;--accent-2:#7ddc7a;--outline:#dce8f7}*{box-sizing:border-box}body{color:var(--ink);background:linear-gradient(180deg, #e7f6ff 0%, var(--bg) 35%, #fff8e8 100%);margin:0;font-family:"Baloo 2",Trebuchet MS,Segoe UI,sans-serif}a{color:inherit;text-decoration:none}.page{max-width:1100px;margin:0 auto;padding:1.25rem}.landing{place-items:center;min-height:100vh;display:grid}.hero-card,.panel,.level-card,.result{background:var(--card);border:3px solid var(--outline);border-radius:20px;box-shadow:0 8px #d9e8f8}.hero-card{text-align:center;max-width:640px;padding:2rem}.badge{background:#fff0d1;border-radius:999px;padding:.35rem .8rem;font-weight:700;display:inline-block}.intro-card{background:var(--card);border:3px solid var(--outline);border-radius:20px;flex-direction:column;gap:1rem;margin-bottom:1rem;padding:1rem;display:flex;box-shadow:0 8px #d9e8f8}.intro-main{grid-template-columns:1.4fr 1fr;align-items:center;gap:1rem;display:grid}.intro-text{color:var(--subtle);margin-top:.4rem;font-size:1.08rem;font-weight:500}.intro-image{border:3px solid #b8d8fb;border-radius:16px;min-height:170px;overflow:hidden}.intro-image img{object-fit:cover;object-position:center;width:100%;height:100%;min-height:170px;display:block}h1{margin:.5rem 0 1rem;font-size:clamp(1.75rem,4vw,2.75rem)}h2{margin:0 0 .5rem}h1,h2,.primary-btn,.ghost-btn,.top-action-btn{letter-spacing:.01em;font-family:"Baloo 2",Trebuchet MS,Segoe UI,sans-serif}.badge,.queue-index,.character-arrow,.level-stars{font-family:JetBrains Mono,Consolas,Courier New,monospace}.topbar{justify-content:space-between;align-items:center;gap:1rem;display:flex}.row{gap:.5rem;display:flex}.top-actions{flex-wrap:wrap;justify-content:center;gap:.6rem;display:flex}.top-action-btn{text-align:center;cursor:pointer;border:0;border-radius:12px;justify-content:center;align-items:center;min-width:146px;padding:.55rem .9rem;font-size:.98rem;font-weight:500;transition:background-color .18s,border-color .18s,transform .18s;display:inline-flex}.rewards-btn{color:#fff;background:#46b66a;box-shadow:0 4px #359355}.rewards-btn:hover{background:#55c476}.parent-btn{color:#fff;background:#5b93e6;box-shadow:0 4px #3f74c2}.parent-btn:hover{background:#6aa0ef}.primary-btn,.ghost-btn{cursor:pointer;border:0;border-radius:12px;justify-content:center;align-items:center;padding:.7rem 1rem;font-size:1.08rem;font-weight:500;transition:background-color .18s,border-color .18s,transform .18s;display:inline-flex}.primary-btn{background:var(--brand);color:#fff;box-shadow:0 4px 0 var(--brand-dark)}.primary-btn:disabled{opacity:.45;cursor:not-allowed}.ghost-btn{color:var(--ink);background:#edf4ff;border:2px solid #d3e2f5}.primary-btn:hover:not(:disabled){background:#ff8b6d}.ghost-btn:hover:not(:disabled){background:#e2efff;border-color:#bdd3ef}.level-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));align-items:stretch;gap:1rem;margin-top:1rem;display:grid}.level-card{flex-direction:column;gap:.45rem;height:100%;padding:1rem;display:flex}.level-card.locked{opacity:.65}.level-stage-label{min-height:1.4rem;color:var(--subtle);margin:0;font-weight:600}.level-title{align-items:center;min-height:3rem;margin:0;display:flex}.level-thumb{color:#6a89ad;background:linear-gradient(135deg,#eef7ff 0%,#fff5e8 100%);border:2px dashed #bed6f2;border-radius:12px;place-items:center;height:172px;font-weight:800;display:grid;overflow:hidden}.level-thumb-image{object-fit:cover;object-position:center center;width:100%;height:100%;display:block}.caterpillar-thumb-image{object-position:50% 45%}.detective-thumb-image{object-position:50% 18%}.level-description{color:var(--subtle);min-height:2.8rem;margin:0;font-size:1.05rem;font-weight:500}.level-stars{justify-content:center;align-items:center;min-height:1.6rem;margin:auto 0 0;font-size:1.35rem;line-height:1.1;display:flex}.level-card-btn{text-align:center;align-self:center;place-items:center;width:min(190px,100%);height:44px;margin-top:.35rem;padding:0;line-height:1;display:grid}.level-card-btn.primary-btn,.level-card-btn.ghost-btn{justify-content:center}.level-card-btn.primary-btn{box-shadow:none}.rewards-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin-top:1rem;display:grid}.reward-card{background:var(--card);border:3px solid var(--outline);border-radius:20px;flex-direction:column;gap:.5rem;padding:1rem;display:flex;box-shadow:0 8px #d9e8f8}.reward-unlocked{background:linear-gradient(#f6fff8 0%,#fff 100%);border-color:#7cd69a;box-shadow:0 8px #cdeed8}.reward-in-progress{background:linear-gradient(#fffaf0 0%,#fff 100%);border-color:#f3c36d;box-shadow:0 8px #f6e2b8}.reward-locked{opacity:.85;background:linear-gradient(#f5f9ff 0%,#fff 100%);border-color:#c8d6ea;box-shadow:0 8px #deebfa}.reward-image{background:linear-gradient(135deg,#eef7ff 0%,#fff5e8 100%);border:2px dashed #bed6f2;border-radius:12px;height:120px;overflow:hidden}.reward-image-asset{object-fit:cover;object-position:center;width:100%;height:100%;display:block}.reward-description{color:var(--subtle);margin:0;font-size:1.02rem}.reward-status{text-align:center;color:#fff;border-radius:999px;margin:auto 0 0;padding:.25rem .65rem;font-size:.95rem;font-weight:700}.reward-status-unlocked{background:#35a95a}.reward-status-in-progress{background:#df9a2b}.reward-status-locked{background:#8ea5c6}.parent-summary{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.8rem;margin-top:1rem;display:grid}.summary-pill{background:var(--card);border:3px solid var(--outline);text-align:center;border-radius:18px;padding:.85rem;box-shadow:0 8px #d9e8f8}.summary-pill p{color:var(--subtle);margin:0}.summary-pill h2{margin:.2rem 0 0}.parent-section{margin-top:1rem}.insight-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:.8rem;margin-top:.6rem;display:grid}.insight-card{background:var(--card);border:3px solid var(--outline);border-radius:16px;padding:.9rem;box-shadow:0 6px #d9e8f8}.insight-card h3{margin:0 0 .4rem}.insight-card p{color:var(--subtle);margin:.2rem 0}.parent-empty{color:var(--subtle);font-size:1.05rem}.game-layout{grid-template-columns:minmax(500px,1fr) 360px;align-items:start;gap:.7rem;margin-top:.75rem;display:grid}.game-main{flex-direction:column;gap:.75rem;display:flex}.level-nav-row{justify-content:center;align-items:center;gap:.6rem;display:flex}.level-nav-btn{min-width:44px;min-height:40px;padding:.4rem}.level-nav-label{color:var(--subtle);font-size:1rem;font-weight:700}.level-locked-note{color:#985a4f;background:#fff3f0;border:2px solid #ffd6cc;border-radius:10px;margin:0;padding:.55rem .7rem;font-size:.96rem}.stack{flex-direction:column;gap:1rem;display:flex}.board-wrap{background:#dff4ff;border:3px solid #bce7fb;border-radius:20px;align-self:start;width:100%;min-width:500px;padding:1rem}.board{gap:.4rem;display:grid}.cell{background:#fefefe;border:2px solid #d2e4f8;border-radius:12px;place-items:center;height:56px;display:grid;overflow:hidden}.cell.wall{background:#93a8c2}.cell.goal{background:#d5ffd0}.coin{font-size:1.3rem}.wall-scenery{font-size:1.35rem}.goal-food{font-size:1.2rem}.caterpillar .character-emoji{font-size:1.6rem}.character{flex-direction:column;justify-content:center;align-items:center;font-weight:800;line-height:1;display:flex}.character-emoji{font-size:1.5rem;line-height:1}.character-arrow{text-align:center;background:#fff;border-radius:99px;min-width:2rem;padding:0 .4rem;font-size:.72rem;line-height:1}.panel{padding:.85rem}.palette-grid{grid-template-columns:1fr 1fr;gap:.5rem;display:grid}.block-btn{background:#f6faff;border:2px solid #d5e5fb;border-radius:12px;justify-content:center;align-items:center;gap:.45rem;padding:.6rem;font-weight:700;display:flex}.queue{border:2px dashed #b5cae5;border-radius:12px;flex-direction:column;gap:.35rem;min-height:130px;max-height:220px;padding:.5rem;display:flex;overflow-y:auto}.queue.over{background:#eaf8ff}.queue-empty{color:var(--subtle)}.queue-item{background:#f4f8ff;border-radius:10px;align-items:center;gap:.4rem;padding:.38rem;display:flex}.queue-index{text-align:center;background:#d8ebff;border-radius:999px;width:1.35rem;font-weight:800}.queue-remove{cursor:pointer;background:#ffe1df;border:0;border-radius:8px;margin-left:auto}.queue-scroll-controls{gap:.5rem;margin-top:.5rem;display:flex}.queue-scroll-btn{flex:1;padding:.45rem .6rem;font-size:.92rem}.queue-limit,.hint{color:var(--subtle);font-weight:700}.controls{gap:.5rem;display:flex}.controls .primary-btn,.controls .ghost-btn{min-width:160px;min-height:44px}.findbug-level-nav{gap:.5rem;margin:.4rem 0 .8rem;display:flex}.findbug-level-active{background:#fff2e3;border-color:#ffb16b}.findbug-character{align-items:center;gap:.1rem;font-size:1.05rem;display:inline-flex}.findbug-steps{flex-direction:column;gap:.4rem;display:flex}.findbug-step-row{align-items:stretch;gap:.4rem;display:flex}.findbug-step{text-align:left;background:#f5f9ff;border:2px solid #d4e4f8;border-radius:10px;padding:.45rem .55rem;font-family:"Baloo 2",Trebuchet MS,Segoe UI,sans-serif;font-size:.98rem}.findbug-step:disabled{opacity:1;color:var(--ink)}.findbug-step-selected{background:#fff3e7;border-color:#ffb16b}.findbug-step-dropzone{background:#eef5ff;border-style:dashed;border-color:#8eb6eb}.findbug-delete-btn{min-width:84px}.findbug-options{flex-direction:column;gap:.45rem;display:flex}.findbug-option-btn{text-align:left;cursor:grab;justify-content:flex-start;width:100%}.dance-board{min-height:320px}.dance-robot-stage{text-align:center;place-items:center;min-height:250px;display:grid}.dance-robot{font-size:5rem;transition:transform .2s}.dance-robot-active{transform:translateY(-4px)scale(1.03)}.dance-range{width:100%;margin-top:.35rem}.dance-queue-remove{place-items:center;width:1.5rem;height:1.5rem;padding:0;font-size:.8rem;line-height:1;display:inline-grid}.site-footer{background:#eff7ff;border-top:3px solid #c5ddf7;margin-top:1.2rem;padding:3.2rem 1.25rem 4rem}.site-footer-inner{grid-template-columns:1fr auto;align-items:center;gap:1rem;max-width:1100px;margin:0 auto;display:grid}.site-footer-copy{color:#5e7ea3;margin:0;font-size:.95rem}.site-footer-form{justify-items:start;gap:.35rem;display:grid}.site-footer-form label{color:#4d6f95;font-size:.9rem}.site-footer-form-row{gap:.45rem;display:inline-flex}.site-footer-form-row input{border:2px solid #c8dcf5;border-radius:10px;min-width:260px;padding:.62rem .72rem;font-family:inherit;font-size:1rem}.site-footer-subscribe-btn{color:#48698f;cursor:pointer;background:#f4f9ff;border:2px solid #c8dcf5;border-radius:10px;min-width:96px;min-height:36px;font-family:inherit;font-size:.9rem;font-weight:600;transition:background-color .18s,border-color .18s}.site-footer-subscribe-btn:hover{background:#e9f3ff;border-color:#b8d2f1}.site-footer-subscribe-btn:disabled{opacity:.75;cursor:wait}.site-footer-success{color:#2c8b50;margin:0;font-size:.88rem}.site-footer-error{color:#a24545;margin:0;font-size:.88rem}.site-footer-consent{color:#6f87a4;max-width:390px;margin:0;font-size:.8rem;line-height:1.35}.result{margin-top:1rem;padding:1rem}.result.success{background:#f1ffec;border-color:#afe6a7}.result.try-again{background:#fff4ee;border-color:#ffd2bf}.result-modal-overlay{z-index:40;background:#16202e6b;place-items:center;padding:1rem;display:grid;position:fixed;inset:0}.result-modal{width:min(100%,460px);max-width:460px;margin-top:0}.result-modal-actions{justify-content:center;gap:.5rem;margin-top:.75rem;display:flex}.celebration-burst{justify-content:center;gap:.5rem;margin-bottom:.35rem;display:flex}.celebration-burst span{font-size:1.25rem;animation:.7s both popCelebrate}.celebration-burst span:nth-child(2){animation-delay:50ms}.celebration-burst span:nth-child(3){animation-delay:.1s}.celebration-burst span:nth-child(4){animation-delay:.15s}.celebration-burst span:nth-child(5){animation-delay:.2s}@keyframes popCelebrate{0%{opacity:0;transform:translateY(6px)scale(.7)}55%{opacity:1;transform:translateY(-4px)scale(1.08)}to{opacity:1;transform:translateY(0)scale(1)}}@media (width<=900px){.intro-main,.game-layout,.palette-grid,.site-footer-inner{grid-template-columns:1fr}.site-footer-form-row{flex-direction:column}.site-footer-form-row input{width:100%;min-width:0}}
