:root{font-family:Trebuchet MS,Arial,sans-serif;color:#233d45;background:#eaf6f4;font-synthesis:none;--ink:#213f46;--dark:#174a55;--accent:#ec9142;--white:#fff;--muted:#537279}*{box-sizing:border-box}body{margin:0;min-width:320px}button{font:inherit;cursor:pointer;border:0;color:inherit;touch-action:manipulation}button:focus-visible{outline:4px solid #ffbf45;outline-offset:3px}button:active{transform:translateY(2px)}.app{min-height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:radial-gradient(ellipse at 0 10%,#fff8d2 0,transparent 40%),linear-gradient(150deg,#e5f5f1,#f4f8ff)}.app[data-hero=robot]{background:radial-gradient(ellipse at 0 10%,#e3f3ff 0,transparent 45%),linear-gradient(150deg,#e7f8f4,#edf0fe)}header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px clamp(14px,4vw,56px);background:#174a55;color:#fff;min-height:66px;box-shadow:0 5px #123b4520;z-index:3}.brand{display:flex;align-items:center;gap:12px}.brand-icon{display:grid;place-items:center;background:#ffe18b;color:#80531e;border-radius:14px;width:43px;height:43px;font-size:30px;transform:rotate(-8deg)}.brand strong{display:block;font-size:clamp(16px,2vw,24px);letter-spacing:-.6px}.brand small{display:block;font-size:10px;letter-spacing:2px;color:#c7e7e8;font-weight:800;margin-top:3px}.head-actions{display:flex;gap:8px}.icon-btn{background:#ffffff1c;color:#fff;border:1px solid #ffffff38;border-radius:12px;width:44px;height:44px;font-size:24px}.header-progress{flex:0 1 230px;font-weight:800;font-size:14px}.progress{height:8px;background:#ffffff25;border-radius:8px;overflow:hidden;margin-top:6px}.progress i{display:block;height:100%;background:#fce07a;border-radius:8px;transition:width .4s}main{width:min(1120px,100%);margin:0 auto;flex:1;padding:20px clamp(12px,3vw,32px) 12px;position:relative}footer{margin-top:auto;text-align:center;color:#537279;font-size:12px;padding:10px 12px;letter-spacing:.3px}footer span{color:#d68a38;padding:0 7px}.eyebrow{display:block;font-size:11px;font-weight:900;letter-spacing:2px;color:#427079}h1,h2,p{margin:0}h1{font-size:clamp(25px,3vw,42px);line-height:1.06;letter-spacing:-1.5px}p{color:#557078;line-height:1.4}.start{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;isolation:isolate;padding-top:24px;padding-bottom:20px}.start-title h1{font-size:clamp(36px,5.5vw,70px);line-height:1.02;margin:8px 0 12px;letter-spacing:-2px;color:#174a55}.start-title h1 em{font-style:normal;color:#c65f4f}.start-title p{font-size:clamp(14px,2vw,20px);font-weight:700}.sun{position:absolute;z-index:-1;top:5%;right:8%;width:100px;height:100px;border-radius:50%;background:#ffe4a1;box-shadow:0 0 0 20px #ffe9b44d,0 0 0 40px #ffe9b42b;animation:float 5s ease-in-out infinite}.cloud{position:absolute;color:#fff;font-size:100px;z-index:-1;opacity:.8;animation:float 7s ease-in-out infinite}.c1{left:2%;top:7%}.c2{right:0;top:40%;animation-delay:-3s}.hero-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:min(660px,100%);gap:20px}.hero-card{background:#fff;border:3px solid #ebd1ed;border-radius:28px;padding:14px 14px 16px;box-shadow:0 7px #bba1c4,0 15px 25px #1e586017;transition:transform .18s,box-shadow .18s;display:flex;flex-direction:column;align-items:center;gap:4px;overflow:hidden}.hero-card:hover{transform:translateY(-5px);box-shadow:0 11px #bba1c4,0 18px 25px #1e586017}.hero-card.robot{border-color:#b9dce9;box-shadow:0 7px #8ab8cd,0 15px 25px #1e586017}.hero-art{width:100%;height:clamp(110px,19vh,170px);display:grid;place-items:center;position:relative;background:radial-gradient(ellipse,#fff9e4,#f8ddeb);border-radius:19px;overflow:hidden}.robot .hero-art{background:radial-gradient(ellipse,#fffde5,#d3eff9)}.hero-art .avatar{height:94%;width:auto;animation:bob 2.4s ease-in-out infinite}.float-symbol{font-size:38px;position:absolute;left:9%;top:15%;animation:float 3.4s ease-in-out infinite}.float-symbol.second{left:auto;right:9%;top:52%;animation-delay:-1s}.hero-card strong{font-size:32px;color:#754063;line-height:1.1}.hero-card.robot strong{color:#176b8e}.hero-card>span{font-weight:800;font-size:16px}.hero-card small{color:#60757a}.hero-card b{background:#ad5489;color:#fff;padding:9px 20px;border-radius:13px;margin-top:6px;font-size:17px}.hero-card.robot b{background:#197d9e}.resume{background:#fff;border:2px solid #b8d6d4;padding:10px 19px;border-radius:13px;color:#28646b;font-weight:800}.start-keys{display:flex;align-items:center;gap:5px;flex-wrap:wrap;justify-content:center}.start-keys>span,.control-hint>span{display:inline-grid;place-items:center;background:#fff;border:1px solid #b6d3d4;box-shadow:0 3px #a2c2c3;border-radius:7px;height:29px;min-width:30px;font-size:18px;font-weight:900;color:#174a55}.start-keys .long{font-size:11px;padding:0 12px}.start-keys small{margin-left:7px;color:#496d71;font-weight:700}.section-heading,.game-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.section-heading h1{margin:4px 0}.section-heading p{font-weight:700}.map-badge{background:#fff;border:2px solid #c6e5d9;border-radius:18px;padding:12px 18px;font-weight:900;font-size:20px}.map-board,.board{position:relative;display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));grid-template-rows:repeat(var(--rows),minmax(0,1fr));overflow:hidden;isolation:isolate;box-shadow:0 6px #5b8c8070,0 10px 25px #244e4516;border:4px solid white;border-radius:24px;-webkit-user-select:none;user-select:none}.map-board{height:clamp(250px,51vh,445px);background:linear-gradient(135deg,#aee6bd,#d8efbd 50%,#b8e2c2)}.map-cell,.cell{display:flex;align-items:center;justify-content:center;position:relative;min-width:0;min-height:0}.map-cell.path{background:#c7d6be;border:1px dashed #a3b39d}.map-cell.path.open{background:#fff1c7;border-color:#e4c88b;box-shadow:inset 0 0 0 2px #fff9e7}.path-dot{color:#be975d;font-size:34px;font-weight:900}.map-cell.gate{background:#e1e3d8;outline:1px solid #b8c1b5;outline-offset:-2px;border-radius:12px}.map-cell.gate.open{background:#fce6a4;box-shadow:inset 0 0 0 3px #fff7db}.map-cell.next-gate{background:#ffd467!important;animation:gate-pulse 1.6s ease-in-out infinite}.station-number{position:absolute;top:3px;left:4px;border-radius:7px;background:#174a55;color:#fff;font-size:clamp(9px,1.3vw,13px);font-weight:900;padding:2px 5px}.station-icon{font-size:clamp(18px,3.8vw,46px)}.gate-state{position:absolute;right:3px;bottom:3px;font-size:clamp(9px,1.5vw,17px);font-weight:900}.scenery{font-size:clamp(15px,3.5vw,42px);opacity:.82;animation:float 5s ease-in-out infinite}.map-cell:nth-child(3n) .scenery{animation-delay:-2s}.moving{position:absolute;left:calc(var(--x) * 100% / var(--cols));top:calc(var(--y) * 100% / var(--rows));width:calc(100% / var(--cols));height:calc(100% / var(--rows));display:grid;place-items:center;pointer-events:none;z-index:4;transition:left .13s ease-out,top .13s ease-out;filter:drop-shadow(0 3px 1px #29483d35)}.moving .avatar{width:auto;height:96%;max-width:95%;overflow:visible;animation:bob 1.3s ease-in-out infinite}.avatar.left{transform:scaleX(-1)}.map-bottom,.game-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px}.destination{display:flex;align-items:center;gap:10px}.dest-icon{font-size:38px;background:#fff;padding:8px;border-radius:14px}.destination small{display:block;font-size:10px;letter-spacing:1.5px;font-weight:900;color:#537279}.destination strong{font-size:clamp(16px,2.3vw,25px);display:block}.direction-note{font-size:48px;font-weight:900;color:#207e74;display:flex;align-items:center;gap:8px;animation:float 1.5s ease-in-out infinite}.direction-note small{font-size:16px;max-width:75px}.primary,.secondary{border-radius:14px;background:#197c72;color:#fff;font-size:clamp(15px,2vw,20px);font-weight:900;padding:13px 22px;box-shadow:0 5px #105a55;letter-spacing:.4px}.primary:hover{background:#218d7e}.primary span{margin-left:5px}.secondary{background:#e7f1ef;color:#26565c;box-shadow:0 4px #bdd1ce;font-size:14px}.pulse{animation:button-pulse 1.8s ease-in-out infinite}.controls{display:flex;align-items:center;gap:10px;flex-shrink:0}.dpad{display:grid;grid-template-columns:repeat(3,clamp(34px,4vw,44px));grid-template-rows:repeat(2,clamp(32px,3.6vw,39px));gap:4px}.key{background:#fff;border:2px solid #b2d1d0;border-radius:9px;box-shadow:0 3px #91b4b4;color:#1c6165;font-size:26px;font-weight:900;line-height:1;display:grid;place-items:center}.key:hover{background:#f9e7a3}.ArrowUp{grid-column:2;grid-row:1}.ArrowLeft{grid-column:1;grid-row:2}.ArrowDown{grid-column:2;grid-row:2}.ArrowRight{grid-column:3;grid-row:2}.space{height:43px;min-width:84px;padding:0 10px;font-size:12px;display:flex;justify-content:center;gap:6px}.space span{color:#f6aa34;font-size:20px}.game-screen{padding-top:12px}.game-top{margin-bottom:8px}.game-title{display:flex;align-items:center;gap:12px}.station-big{font-size:clamp(30px,4vw,46px);background:#fff;border-radius:15px;padding:5px 10px}.game-title h1{font-size:clamp(25px,3vw,38px);margin-top:3px}.rounds{display:flex;gap:5px}.rounds span{display:grid;place-items:center;width:28px;height:28px;font-size:12px;font-weight:900;border-radius:9px;background:#e0e8e5;color:#78918e}.rounds .active{background:#ffdc79;color:#79500c;box-shadow:0 3px #d3a94a}.rounds .passed{background:#d4f0d4;color:#247a4d}.mission{display:flex;align-items:center;gap:9px;justify-content:space-between;flex-wrap:wrap;padding:9px 12px;border-radius:16px;background:#fff;box-shadow:0 3px #cce1dc;margin-bottom:10px;min-height:70px}.mission-text{display:flex;align-items:center;gap:10px;flex:1 1 255px}.mission-text strong{font-size:clamp(15px,1.8vw,19px);display:block;line-height:1.18}.mission-text small{display:block;font-size:12px;font-weight:700;color:#617b7c;margin-top:4px}.speaker{border-radius:13px;background:#e7f4f4;padding:8px;font-size:24px}.sequence{display:flex;align-items:center;flex-wrap:wrap;gap:5px}.seq-chip,.seq-arrow{position:relative;width:clamp(28px,4.4vw,45px);height:clamp(32px,4.4vw,45px);display:grid;place-items:center;background:#f1f4f3;border:2px solid #d4e2de;border-radius:10px;font-weight:900;color:#398864}.seq-chip b{font-size:10px;position:absolute;top:-3px;right:-3px;border-radius:50%;background:#174a55;color:#fff;width:15px;height:15px;display:grid;place-items:center}.seq-chip.current,.seq-arrow.current{border-color:#e7a52c;background:#fff1b6;animation:gate-pulse 1.6s infinite}.seq-chip.passed,.seq-arrow.passed{background:#d4f1d8;color:#2a8554}.seq-arrow{font-size:25px;color:#315a68}.dance-seq .seq-arrow{width:clamp(24px,3.8vw,38px);height:38px}.target-model{display:flex;align-items:center;gap:7px;border-radius:12px;background:#edf6f2;padding:6px 10px;font-weight:900;min-height:45px}.target-model>span:first-child{font-size:10px;color:#42676c}.counter{font-size:20px;font-weight:900;background:#fff5d6;padding:9px;border-radius:12px;white-space:nowrap}.traffic{display:flex;align-items:center;gap:4px;background:#344855;border-radius:11px;padding:6px 8px;color:#fff}.traffic i{width:18px;height:18px;border-radius:50%;background:#6c7c80}.traffic.red i:first-child{background:#ff5f67;box-shadow:0 0 9px #ff5f67}.traffic.green i:nth-child(2){background:#6ff396;box-shadow:0 0 9px #6ff396}.traffic b{font-size:11px}.play-area{position:relative;max-width:850px;margin:auto}.board,.dance-stage{height:clamp(245px,45vh,385px);background:var(--sky);border:4px solid white;border-radius:21px}.cell{border:1px dashed #4d736b27;background:#ffffff12}.cell:nth-child(2n){background:#ffffff25}.cell.wall{background:#ffffff35;border:1px solid #4d736b20}.wall>span{font-size:clamp(25px,4.5vw,48px);filter:drop-shadow(0 3px 0 #4a6f5b35)}.board-item,.bin{display:grid;place-items:center;position:relative;width:100%;height:100%}.board-item{animation:float 3s ease-in-out infinite}.cell:nth-child(2n) .board-item{animation-delay:-1.5s}.symbol{display:inline-block;flex-shrink:0;vertical-align:middle}.symbol.emoji{font-size:clamp(24px,4.2vw,44px);line-height:1.1;text-shadow:0 2px 0 #334b4b1a}.shape{width:clamp(22px,3.7vw,43px);height:clamp(22px,3.7vw,43px);background:var(--shape);border:3px solid #253e4540;box-shadow:inset 0 4px #ffffff4a,0 4px #344d4c25;border-radius:7px}.shape.circle{border-radius:50%}.shape.rect{height:clamp(16px,2.7vw,29px);width:clamp(32px,5vw,55px)}.shape.small{transform:scale(.6)}.shape.large{transform:scale(1.1)}.symbol.mini{max-width:30px;max-height:28px;font-size:23px}.shape.mini{width:25px;height:25px;border-width:2px}.shape.rect.mini{width:29px;height:17px}.target-model .symbol{max-height:32px;max-width:45px;font-size:24px}.target-model .shape{width:29px;height:29px}.target-model .shape.rect{width:39px;height:22px}.number{position:absolute;top:1px;right:10%;color:#fff;background:#174a55;font-size:12px;border-radius:8px;padding:2px 5px}.board-item.glow{background:#fff4ac6b;border-radius:12px;animation:gate-pulse 1.6s infinite}.bin-cell{background:#fff8d4!important;border:2px dashed #b7894b;border-radius:13px}.bin .symbol{z-index:2;margin-top:-8px}.bin-base{position:absolute;bottom:5%;height:33%;width:70%;border-radius:5px 5px 10px 10px;background:#bc8b58;border:2px solid #92653f;box-shadow:inset 0 4px #e1b383}.carried{position:absolute;top:0;right:0;z-index:7;padding:3px;background:#fff;border-radius:8px;box-shadow:0 3px #82928c}.game-hero .avatar{height:91%;max-width:90%}.feedback{margin-top:7px;text-align:center;padding:7px 10px;border-radius:12px;background:#fff;color:#35616b;min-height:32px;font-size:14px;font-weight:900}.feedback.good{background:#d9f2d7;color:#24683a}.feedback.try{background:#fff0c8;color:#785b20}.carry-label{font-size:12px}.game-footer{margin-top:8px}.control-hint{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.control-hint>span{padding:0 9px}.control-hint small{font-size:12px;font-weight:800;color:#557378}.control-hint .mini-space{font-size:11px}.dance-stage{position:relative;display:grid;place-items:center;overflow:hidden;background:linear-gradient(#c9b9ef,#f2cce8 80%,#baa4e2);box-shadow:0 5px #a69bbf}.dance-avatar{height:75%;z-index:2;display:grid;place-items:center}.dance-avatar .avatar{height:100%;max-width:230px;animation:dance .65s ease-in-out infinite alternate}.music-notes{position:absolute;top:10%;left:8%;font-size:40px;color:#874f9c;animation:float 2s infinite}.stage-light{position:absolute;top:-10%;height:90%;width:34%;background:#fff4b948;clip-path:polygon(48% 0,55% 0,100% 100%,0 100%);transform-origin:top;animation:swing 3s ease-in-out infinite alternate}.stage-light.one{left:15%;transform:rotate(-15deg)}.stage-light.two{right:15%;background:#b6f5ff68;animation-delay:-1.4s}.stage-floor{position:absolute;bottom:0;height:18%;width:100%;background:repeating-linear-gradient(90deg,#b29cda 0,#b29cda 12%,#c2afe7 12%,#c2afe7 24%);border-top:4px solid #eee1ff}.dance-direction{position:absolute;right:13%;font-size:clamp(55px,10vw,110px);font-weight:900;color:#7654a0;text-shadow:0 5px 0 #fff;animation:pop .25s ease-out}.win-overlay,.modal{position:absolute;top:0;right:0;bottom:0;left:0;background:#174a5570;z-index:10;border-radius:21px;display:grid;place-items:center;overflow:hidden}.modal{position:fixed;z-index:30;border-radius:0}.win-card{z-index:2;width:min(92%,390px);padding:22px 16px;border-radius:24px;background:#fffefa;text-align:center;box-shadow:0 7px #a5bdaf;display:flex;flex-direction:column;align-items:center;gap:10px;animation:pop .3s ease-out}.win-star{font-size:52px;animation:float 1.5s infinite}.win-card h2{font-size:clamp(22px,3vw,30px);color:#245c59;letter-spacing:-.7px}.win-card p{font-size:15px}.win-card small{font-size:11px;color:#667c7c;font-weight:700}.confetti{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;overflow:hidden;z-index:1}.confetti i{position:absolute;left:calc(var(--i) * 4.7%);top:-20px;width:10px;height:16px;border-radius:3px;background:var(--c);animation:fall 2.5s linear infinite;animation-delay:calc(var(--i)*-.17s)}.end{text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:18px}.end-art{display:flex;align-items:center;justify-content:center;height:170px}.end-art .avatar{height:100%;animation:bob 2s infinite}.end-art>span{font-size:110px;animation:float 2s infinite}.end h1{color:#1c7367;font-size:clamp(28px,4vw,52px)}.end p{font-size:19px;font-weight:700}.end h2{font-size:19px;color:#466c72}.medals{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.medals>div{position:relative;background:#fff;border:3px solid #f5cf72;border-radius:18px;padding:12px;font-size:32px;box-shadow:0 4px #dcb965}.medals b{position:absolute;bottom:0;right:0;font-size:13px;background:#23875f;color:#fff;border-radius:50%;width:20px;height:20px;display:grid;place-items:center}@keyframes bob{0%,to{translate:0 0}50%{translate:0 -3px}}@keyframes float{0%,to{translate:0 0}50%{translate:0 -5px}}@keyframes gate-pulse{0%,to{box-shadow:inset 0 0 0 2px #fff8ca,0 0 #f9c95144}50%{box-shadow:inset 0 0 0 3px #fff8ca,0 0 12px 2px #f9c95170}}@keyframes button-pulse{0%,to{scale:1}50%{scale:1.035}}@keyframes dance{0%{rotate:-8deg;translate:0 0}to{rotate:8deg;translate:0 -8px}}@keyframes swing{0%{rotate:-18deg}to{rotate:18deg}}@keyframes pop{0%{scale:.82;opacity:.3}to{scale:1;opacity:1}}@keyframes fall{to{translate:35px 100vh;rotate:540deg}}@media(max-width:650px){header{padding:8px 10px;gap:7px;min-height:55px}.brand-icon{width:31px;height:31px;font-size:21px}.brand{gap:6px}.brand small{font-size:8px;letter-spacing:1px}.header-progress{flex:0 1 75px;font-size:11px}.icon-btn{width:34px;height:34px;font-size:17px}.head-actions{gap:4px}main{padding:12px 9px}.map-board{height:clamp(210px,39vh,310px);border-radius:14px}.map-bottom,.game-footer{flex-wrap:wrap;justify-content:center}.destination{flex:1}.direction-note{font-size:30px}.direction-note small{font-size:12px}.map-badge{font-size:15px;padding:8px}.hero-choices{gap:9px}.hero-card{padding:8px;border-radius:19px}.hero-card strong{font-size:26px}.hero-card>span{font-size:13px}.hero-card small{font-size:11px}.hero-card b{font-size:13px}.float-symbol{font-size:25px}.rounds{gap:3px}.rounds span{width:19px;height:22px;font-size:10px}.mission{padding:7px;gap:6px}.mission-text{flex-basis:100%}.mission-text small{font-size:11px}.board,.dance-stage{height:clamp(215px,36vh,315px)}.game-footer{margin-top:7px}.control-hint{justify-content:center}.station-icon{font-size:clamp(16px,4vw,27px)}.gate-state{font-size:9px}.station-number{font-size:8px;top:1px;left:1px;padding:1px 3px}.scenery{font-size:20px}.map-cell.gate{border-radius:7px}.symbol.emoji{font-size:clamp(20px,5vw,34px)}.shape{width:26px;height:26px}.shape.rect{width:33px;height:19px}.number{right:0;font-size:9px;padding:1px 3px}.win-card{padding:12px}.win-star{font-size:38px}.end-art{height:120px}.end-art>span{font-size:85px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.confetti{display:none}}.moving .avatar{width:92%;height:92%;max-height:92%;min-height:0;min-width:0;object-fit:contain;align-self:center;justify-self:center}.ground-detail{font-size:clamp(14px,2.3vw,26px);color:#3f776747;position:absolute;bottom:6%;left:9%;pointer-events:none;animation:float 4s ease-in-out infinite}.mode-maze{background:radial-gradient(ellipse at 15% 20%,#f7fad8,transparent 45%),linear-gradient(135deg,#d5efb4,#a7d99f)}.mode-collect{background:repeating-linear-gradient(160deg,#ffffff20 0 12px,transparent 12px 35px),linear-gradient(120deg,#b6e8fc,#b9e9dc)}.mode-sort{background:linear-gradient(135deg,#fff2cc,#ebc4a1)}.mode-size{background:radial-gradient(ellipse at 80% 5%,#fff8e2,transparent 50%),linear-gradient(135deg,#b9c8e7,#e8e2f7)}.mode-assembly{background:repeating-linear-gradient(45deg,#ffffff18 0 8px,transparent 8px 20px),linear-gradient(135deg,#c9e4e9,#b1d2df)}.mode-traffic{background:linear-gradient(135deg,#f5ebc4,#d8d6c7)}.mode-routine{background:linear-gradient(135deg,#ffeedb,#efc7da)}.mode-pattern{background:linear-gradient(120deg,#e1d6ff,#c7e4ff,#e1f4d7)}.mode-cleanup{background:linear-gradient(130deg,#e8f4b8,#acd9c1)}footer a{color:#174a55;font-weight:800;text-decoration:none;border-bottom:1.5px solid #197c72;transition:color .2s,border-color .2s}footer a:hover{color:#c65f4f;border-color:#c65f4f}
