.adventure-world{overscroll-behavior-x:contain;touch-action:pan-x pinch-zoom;scrollbar-width:thin;background:#92c5d9;width:100%;height:100dvh;overflow:auto hidden}.world-scroll-inner{justify-content:center;width:max-content;min-width:100%;height:100%;display:flex}.world-stage{isolation:isolate;flex:none;width:177.683dvh;height:100dvh;position:relative}.world-art,.world-zones{width:100%;height:100%;display:block;position:absolute;inset:0}.world-art{object-fit:contain;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.world-zones{overflow:visible}.world-hotspot{fill:#0000;stroke:#0000;stroke-width:3px;cursor:pointer;pointer-events:all;outline:none;transition:fill .2s,stroke .2s}.world-hotspot:hover,.world-hotspot:focus{fill:#fff6b224;stroke:#fff3b2a8;filter:url(#world-object-glow)}.world-hotspot:focus-visible{fill:#fff6b23b;stroke:#fff9d7;stroke-width:5px}.world-tooltip{z-index:2;pointer-events:none;white-space:nowrap;color:#fff4d7;background:#3b2c16e8;border-radius:12px;padding:8px 13px;font:800 16px system-ui;position:absolute;transform:translate(-50%,-50%);box-shadow:0 3px 15px #39281055}.world-muted{stroke:#62401d;stroke-width:7px;stroke-linecap:round;pointer-events:none}.home-loading{background:#e8f0e2;height:100dvh}.interface-choice{color:#355143;background:#fffbed;border:0;border-radius:24px;width:92vw;max-width:640px;padding:30px;box-shadow:0 20px 70px #203a3355}.interface-choice::backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#203a3388}.interface-choice h1{margin:0 0 12px}.interface-choice p{line-height:1.5}.interface-options{grid-template-columns:1fr 1fr;gap:16px;margin-top:24px;display:grid}.interface-options button{color:#355143;cursor:pointer;font:inherit;background:#f6edcc;border:2px solid #d4c795;border-radius:18px;flex-direction:column;align-items:center;gap:10px;padding:12px;display:flex;overflow:hidden}.interface-options img,.classic-choice-symbol{object-fit:cover;border-radius:10px;width:100%;height:135px}.classic-choice-symbol{color:#365442;background:#d8e9c1;place-items:center;font:64px Georgia;display:grid}.interface-options b{font-size:20px}.interface-options button:focus-visible{outline-offset:2px;outline:4px solid #648bb2}.world-section{color:#355143;background:#e7f2dd;min-height:100dvh;font-family:system-ui}.world-section-header{background:#fffbed;border-bottom:1px solid #d4dfc6;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;padding:14px 24px;display:flex}.world-section-header h1{margin:0;font-size:24px}.world-section-header button,.world-info>button,.adventure-play-modes button{color:#355143;font:inherit;cursor:pointer;background:#fff8df;border:1px solid #c5d2b7;border-radius:12px;padding:11px 16px}.world-section-body{padding:18px}.world-info{background:#ffffffd9;border-radius:24px;max-width:900px;margin:24px auto;padding:28px}.world-info>p{line-height:1.6}.adventure-play-modes{gap:18px;padding:20px;display:grid}.world-home-link{z-index:100;color:#355143;background:#fffbed;border:2px solid #d8dfc7;border-radius:20px;padding:10px 16px;font:700 13px system-ui;text-decoration:none;position:fixed;bottom:16px;left:16px;box-shadow:0 3px 12px #203a3322}.world-section a:focus-visible,.world-section button:focus-visible,.world-home-link:focus-visible{outline-offset:3px;outline:3px solid #648bb2}.interface-save-error{color:#91513b;font-size:13px}@media (max-width:600px){.interface-choice{padding:20px}.interface-options{gap:10px}.interface-options b{font-size:15px}.interface-options img,.classic-choice-symbol{height:100px}.world-section-header{padding:12px}.world-section-header h1{font-size:20px}.world-section-body{padding:6px}.world-info{padding:18px}.world-section-play .kids-play-layout{padding:6px}.world-tooltip{font-size:14px}}@media (prefers-reduced-motion:reduce){.world-hotspot{transition:none}}.world-hotspot[aria-pressed=false]{fill:#38261f55}
*{box-sizing:border-box}body{color:#1e2430;background:#f5f6f8;margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}header{background:#fff;border-bottom:1px solid #dde1e7;justify-content:space-between;align-items:center;gap:20px;height:64px;padding:0 24px;display:flex}header b{font-size:21px}header span{color:#697180}header small{background:#edf1f7;border-radius:12px;padding:3px 7px}.actions{gap:8px;display:flex}.actions button,.wide{background:#fff;border:1px solid #d6dbe3;border-radius:7px;padding:8px 12px}.actions .primary{color:#fff;background:#202733;border-color:#202733}.layout{grid-template-columns:185px 1fr 300px;min-height:calc(100vh - 64px);display:grid}aside{background:#fff;border-right:1px solid #dde1e7;padding:20px}.settings{border-left:1px solid #dde1e7;border-right:0}h2{margin:0 0 8px;font-size:16px}h3{text-transform:uppercase;letter-spacing:.08em;color:#7b8492;margin:22px 0 9px;font-size:11px}.muted,.coords{color:#818997;font-size:12px;line-height:1.5}.pieces{grid-template-columns:1fr 1fr;gap:6px;display:grid}.pieces button{text-transform:capitalize;background:#fafbfc;border:1px solid #dfe3e8;border-radius:7px;flex-direction:column;align-items:center;padding:8px 4px;display:flex}.pieces button span{font-size:27px;line-height:28px}.pieces button.selected{background:#eef3ff;outline:2px solid #4b76e5}.wide{width:100%;margin-top:10px}.danger{color:#b3261e}.center{flex-direction:column;align-items:center;padding:28px;display:flex;overflow:auto}.status{color:#697180;justify-content:space-between;width:min(100%,700px);margin-bottom:18px;font-size:12px;display:flex}.status b{color:#3d67cf;letter-spacing:.08em}.board{border:6px solid #343a44;display:grid;box-shadow:0 12px 32px #26304222}.cell{aspect-ratio:1;border:0;place-items:center;width:76px;padding:0;display:grid;position:relative}.cell.light{background:#e9dcc6}.cell.dark{background:#9e8067}.cell span{filter:drop-shadow(0 1px 1px #0005);z-index:2;font-family:Georgia,serif;font-size:52px;line-height:1}.cell.legal:after{content:"";background:#3f70d8aa;border-radius:50%;width:18px;height:18px;position:absolute}.cell.legal span~i{z-index:3;border:4px solid #3f70d8aa;border-radius:50%;position:absolute;inset:5px}.cell.active{outline-offset:-4px;outline:4px solid #3d67cf}.result{text-align:center;background:#fff;border:1px solid #dde1e7;border-radius:8px;margin-top:20px;padding:12px 18px;font-weight:700}.result.completed{color:#16713b;background:#eaf8ef}.result.failed{color:#a52c25;background:#fff0ef}.result small{margin-top:5px;font-weight:400;display:block}.settings fieldset{border:0;margin:0;padding:0}.settings label{justify-content:space-between;align-items:center;gap:10px;margin:8px 0;font-size:13px;display:flex}.settings input[type=number],.settings select{background:#fff;border:1px solid #d6dbe3;border-radius:6px;width:130px;padding:7px}.settings .check{justify-content:flex-start}.settings .check input{width:auto}.row{gap:8px;display:flex}.row label{flex:1}.row input{max-width:70px}@media (max-width:900px){.layout{grid-template-columns:180px 1fr}.settings{border-top:1px solid #ddd;border-left:0;grid-column:1/-1}.cell{width:58px}}@media (max-width:650px){header{flex-direction:column;align-items:flex-start;height:auto;padding:12px}.actions{flex-wrap:wrap}.layout{display:block}.center{padding:20px 8px}.cell{width:min(11vw,58px)}}.goal-cell{outline-offset:-4px;outline:4px solid #f59e0b}.runtime-goal{background:#fff;border:1px solid #d1d5db;border-radius:8px;margin-top:14px;padding:10px 14px}.result.completed{background:#dcfce7;border-color:#16a34a;font-size:20px;font-weight:800}.result.failed{background:#fee2e2;border-color:#dc2626;font-size:20px;font-weight:800}.cell{position:relative}.goal-star{pointer-events:none;z-index:3;text-shadow:0 1px 2px #00000040;font-size:16px;line-height:1;position:absolute;top:3px;right:5px}.fail-cell:after{content:"";pointer-events:none;border:2px dashed #b42828bf;border-radius:8px;position:absolute;inset:5px}.fail-mark{pointer-events:none;z-index:4;font-size:18px;font-weight:800;line-height:1;position:absolute;top:2px;left:5px}.result button{margin-top:10px}.palette{padding:12px}.palette h2{margin-top:10px}.palette h3{margin:10px 0 5px}.palette-tools{grid-template-columns:1fr 1fr;gap:5px;margin-bottom:8px;display:grid}.palette-tools .wide{margin:0;padding:6px 4px}.palette .pieces{grid-template-columns:repeat(3,1fr);gap:4px}.palette .pieces button{min-height:42px;padding:5px 2px}.palette .pieces button span{font-size:25px}.palette .muted{margin:7px 0 3px}.object-options label{margin:5px 0;font-size:11px;display:block}.object-options select{width:100%;margin-top:3px}.cell{position:relative;overflow:hidden}.cell>.projectile{pointer-events:none;z-index:5;justify-content:center;align-items:center;width:100%;height:100%;font-size:.72em;line-height:1;display:flex;position:absolute;inset:0}.boardSkin{object-fit:contain;pointer-events:none;width:84%;max-width:84%;height:84%;max-height:84%;margin:auto;display:block}.skinThumb{object-fit:contain;pointer-events:none;width:42px;height:42px;margin:auto;display:block}.paletteTabs{grid-template-columns:repeat(3,1fr);gap:3px;margin:0 0 8px;font-size:11px;font-weight:700;display:grid}.paletteTabs span{text-align:center;background:#fff;border:1px solid #d9dde5;border-radius:6px;padding:5px 2px}.paletteTabs button{cursor:pointer;background:#fff;border:1px solid #d9dde5;border-radius:6px;padding:5px 2px;font-size:11px;font-weight:700}.paletteTabs button.active{background:#eef1f5;border-color:#697386}.boardSkin{object-fit:contain;width:90%;max-width:90%;height:90%;max-height:90%}.paletteTabs{grid-template-columns:repeat(2,1fr)}.gamePreset{text-align:left;flex-direction:column;align-items:flex-start;gap:3px;display:flex;padding:10px!important}.gamePreset span{color:#697386;font-size:11px;font-weight:400}.capturePanel{gap:8px;padding:8px 0;display:grid}.capturePanel .row{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;display:grid}.capturePanel .row input{width:100%}@media (max-width:700px){.capturePanel .row{grid-template-columns:1fr}}.captureModeTabs{grid-template-columns:1fr 1fr;gap:6px;display:grid}.captureModeTabs button.active{outline:2px solid;font-weight:700}.capturePanel input[type=range]{width:100%}.levelInfo{border:1px solid #ccc;border-radius:7px;padding:7px;font-size:12px}.solutionBox{border:1px solid #bbb;border-radius:7px;padding:8px;font-size:12px}.solutionBox ol{max-height:190px;margin:6px 0;padding-left:20px;overflow:auto}.solutionBox li{margin:2px 0}.result.completed .primary{margin-top:8px}.roomTestPanel{border:1px solid #bbb;border-radius:8px;margin:8px 0;padding:8px}.roomHud{gap:7px;margin-top:7px;display:grid}.roomHud strong{letter-spacing:2px;font-size:20px}.roomTestPanel select{width:100%}.learnGenPanel{border:1px solid #bbb;border-radius:8px;gap:7px;margin:8px 0;padding:8px;display:grid}.learnGenPanel label{gap:3px;display:grid}.learnGenPanel select,.learnGenPanel input{width:100%}.learnChallenge{border:1px solid #bbb;border-radius:10px;flex-wrap:wrap;align-items:center;gap:10px;margin:10px 0;padding:10px;display:flex}.flagBank{letter-spacing:3px}.countAnswers{gap:8px;display:flex}.countAnswers button{min-width:48px;font-size:18px;font-weight:700}.learn-flag{z-index:6;filter:drop-shadow(0 1px 1px #0000004d);font-size:28px;position:absolute}.learn-stamp{z-index:4;object-fit:contain;opacity:.28;filter:grayscale(.15);width:72%;height:72%;position:absolute}.learn-flag.selected{filter:drop-shadow(0 0 4px);transform:scale(1.18)}.mazeOverlay{z-index:1000;background:#12161ef0;justify-content:center;align-items:center;padding:18px;display:flex;position:fixed;inset:0}.mazeShell{background:#efe3c1;border:7px solid #4c5665;border-radius:18px;width:min(1180px,96vw);overflow:hidden;box-shadow:0 20px 70px #0008}.mazeTop{color:#fff;background:#596474;justify-content:space-between;align-items:center;padding:12px 18px;display:flex}.mazeTop>div:first-child{align-items:baseline;gap:16px;display:flex}.mazeTop b{font-size:22px}.mazeTop span{opacity:.9}.mazeHud{align-items:center;gap:12px;font-size:18px;display:flex}.mazeHud button{font-size:18px}.mazeBody{background:linear-gradient(#c9d9a3,#e8d6a9);grid-template-columns:minmax(560px,1fr) 290px;gap:18px;padding:18px;display:grid}.mazeBoard{aspect-ratio:10/9;background:#d8d2b7;border:10px solid #596474;grid-template-columns:repeat(10,1fr);display:grid}.mazeCell{background:#e8e4cd;border:1px solid #d3cdb3;justify-content:center;align-items:center;min-width:0;display:flex;position:relative}.mazeCell:nth-child(odd){background:#ded9bf}.mazeCell.blocked{background:#7a7f83}.brick,.coin,.key,.door{z-index:3;font-size:clamp(22px,3vw,38px)}.mazeRook{object-fit:contain;z-index:5;filter:drop-shadow(0 3px 2px #0004);width:82%;height:82%}.wall{z-index:7;background:#4a4e52;border-radius:3px;position:absolute;box-shadow:0 1px 1px #fff5}.wall.up{height:7px;top:-4px;left:-2px;right:-2px}.wall.down{height:7px;bottom:-4px;left:-2px;right:-2px}.wall.left{width:7px;top:-2px;bottom:-2px;left:-4px}.wall.right{width:7px;top:-2px;bottom:-2px;right:-4px}.mazeSide{background:#fff9e8;border:2px solid #aa9362;border-radius:14px;flex-direction:column;gap:12px;padding:16px;display:flex}.mazeSide h2{min-height:48px;margin:0;font-size:19px}.mazeSide p{color:#555;margin:0}.dpad{grid-template-rows:repeat(2,58px);grid-template-columns:repeat(3,58px);justify-content:center;gap:5px;margin-top:8px;display:grid}.dpad button{font-size:28px;font-weight:700}.dpad button:first-child{grid-column:2}.dpad button:nth-child(2){grid-area:2/1}.dpad button:nth-child(3){grid-area:2/2}.dpad button:nth-child(4){grid-area:2/3}.mazeNext{margin-top:auto;font-weight:800;color:#fff!important;background:#5f8d43!important;padding:14px!important;font-size:18px!important}@media (max-width:850px){.mazeBody{grid-template-columns:1fr}.mazeSide{min-height:220px}.mazeOverlay{padding:0}.mazeShell{border-radius:0;width:100vw;max-height:100vh;overflow:auto}}.mazeBody{align-items:start;min-width:0}.mazeBoard{aspect-ratio:10/9;box-sizing:border-box;grid-template-rows:repeat(9,minmax(0,1fr));grid-template-columns:repeat(10,minmax(0,1fr));width:100%;min-width:0;display:grid;overflow:hidden}.mazeCell{box-sizing:border-box;width:100%;min-width:0;height:100%;min-height:0;overflow:visible}.mazeWalls{pointer-events:none;z-index:6;position:absolute;inset:0}@media (max-width:850px){.mazeBoard{width:min(100%,720px);margin:0 auto}}.mazeBoard{grid-template-rows:repeat(9,minmax(0,1fr));min-width:0;min-height:0;position:relative}.mazeCell{min-height:0;overflow:visible}.mazeActor{pointer-events:none;z-index:12;will-change:left,top;justify-content:center;align-items:center;width:10%;height:11.1111%;transition:left .22s linear,top .22s linear;display:flex;position:absolute;transform:translate(-50%,-50%)}.rookActor img{object-fit:contain;filter:drop-shadow(0 3px 3px #0006);width:83%;height:83%}.hedgehogActor{filter:drop-shadow(0 2px 2px #0005);font-size:clamp(22px,3vw,40px)}.rookActor.hit{opacity:.45}.mazeOverlay{background:radial-gradient(at 50% 20%,#34434b 0%,#111a21 72%)}.mazeShell{background:#292c30;border:9px ridge #a78751;border-radius:20px;box-shadow:0 0 0 4px #29241e,0 24px 90px #000c,0 0 80px #a77b3e44}.mazeTop{background:linear-gradient(120deg,#3d3234,#654934 52%,#3b3338);border-bottom:4px solid #b28b54;padding:16px 22px}.mazeTop b{color:#ffe1a0;text-shadow:0 2px 2px #0008;font-family:Georgia,serif;font-size:25px}.mazeTop b small{color:#d9b87e;letter-spacing:1px;margin-left:8px;font-size:12px}.mazeTop span{color:#f6e5c7}.mazeHud button{color:#ffdfa0;cursor:pointer;background:#433b34;border:1px solid #b8945a;border-radius:8px;padding:5px 9px}.mazeBody{background:radial-gradient(at top,#927e56,#3b4a42 75%);gap:20px}.mazeBoard{background:#9c9483;border:12px ridge #a18a67;box-shadow:inset 0 0 26px #16171b77,0 8px 24px #0008}.mazeCell,.mazeCell:nth-child(odd){background-color:#aaa28e;background-image:linear-gradient(120deg,#ffffff12,#0000 60%),repeating-linear-gradient(0deg,#0000 0 95%,#484c4870 96% 100%),repeating-linear-gradient(90deg,#0000 0 95%,#484c4870 96% 100%);border:1px solid #7e7c6d;box-shadow:inset 1px 1px #fff2,inset -1px -1px #0003}.mazeCell:nth-child(3n){background-color:#989786}.mazeCell.blocked{background:repeating-linear-gradient(0deg,#77716c 0 12px,#5b5553 12px 15px,#8b8178 15px 29px,#534e4c 29px 32px);box-shadow:inset 0 0 8px #0008}.mazeCell.blocked .brick{color:#c1b2a0;text-shadow:1px 2px #333;font-size:33px}.wall{z-index:8;background:linear-gradient(90deg,#393733,#b6a38b 30%,#544a40 70%,#292825);border:1px solid #342f2a;border-radius:2px;box-shadow:0 2px 4px #0008}.wall.up,.wall.down{height:9px}.wall.left,.wall.right{width:9px}.mazeCell.doorCell{background:radial-gradient(circle,#d9ba74,#7e6b52)}.mazeCell .door{filter:drop-shadow(0 3px 3px #0008);font-size:clamp(24px,3.4vw,43px)}.mazeCell .coin{filter:drop-shadow(0 0 5px #ffdd62);animation:1.6s ease-in-out infinite castleCoin}.mazeCell .key{filter:drop-shadow(0 0 6px #fff6b6);animation:1.4s ease-in-out infinite castleKey}.rookActor{filter:drop-shadow(0 4px 4px #1119);transition:left .22s ease-in-out,top .22s ease-in-out}.hedgehogActor{filter:drop-shadow(0 4px 3px #0008);transition:left .42s ease-in-out,top .42s ease-in-out;animation:.85s ease-in-out infinite castleHedge}.mazeSide{background:linear-gradient(#fff2cf,#dfc79b);border:4px ridge #9b7945;box-shadow:inset 0 0 18px #ae8a4840}.mazeSide h2{color:#4b3024;font-family:Georgia,serif}.mazeSide p{color:#55442e}.dpad button{cursor:pointer;background:linear-gradient(#ffedc5,#c7aa75);border:2px solid #a18151;border-radius:12px;box-shadow:0 3px #8c7149}.dpad button:active{transform:translateY(2px);box-shadow:0 1px #8c7149}@keyframes castleCoin{0%,to{transform:scaleX(1)translateY(0)}50%{transform:scaleX(.65)translateY(-3px)}}@keyframes castleKey{0%,to{transform:rotate(-10deg)}50%{transform:rotate(10deg)}}@keyframes castleHedge{0%,to{scale:1}50%{scale:1.07}}@media (prefers-reduced-motion:reduce){.mazeCell .coin,.mazeCell .key,.hedgehogActor{animation:none}}.castleArt .mazeBoard{background:#75685a;border:12px ridge #a78759;box-shadow:0 0 0 4px #31271f,0 12px 35px #17120c99,inset 0 0 22px #0008}.castleArt .mazeCell,.castleArt .mazeCell:nth-child(odd){background-color:#938474;background-image:radial-gradient(circle at 28% 20%,#fff2 0 8%,#0000 45%),linear-gradient(135deg,#fff1,#0000 60%);border:1px solid #71675b;box-shadow:inset 2px 2px #c5b29b45,inset -3px -3px #4b3a3070}.castleArt .mazeCell:nth-child(4n){background-color:#877d70}.castleArt .mazeCell.blocked{background:repeating-linear-gradient(0deg,#5a514a 0 13px,#3b342f 13px 16px,#8b7868 16px 29px,#403831 29px 32px);box-shadow:inset 0 6px 5px #d0b59a55,inset 0 -8px 8px #201c19aa,4px 4px 5px #0006}.castleArt .wall{background:linear-gradient(90deg,#342820,#a18b75 28%,#756453 65%,#2d241e);border:1px solid #2c211c;box-shadow:2px 3px 4px #0009,0 -1px #d9bba04d}.castleArt .mazeCell.doorCell{background:radial-gradient(circle,#f3d28e 0%,#977048 55%,#574839 100%)}.castleArt .mazeCell .coin{filter:drop-shadow(0 0 8px #ffd44d)drop-shadow(0 3px 2px #30221b)}.castleArt .mazeCell .key{filter:drop-shadow(0 0 8px #ffe089)}.hedgehogSprite{object-fit:contain;filter:drop-shadow(0 4px 3px #1d130ca0);transform-origin:50% 78%;width:92%;height:92%;animation:.42s ease-in-out infinite hedgehogWalk}.hedgehogSprite.face-left{animation-name:hedgehogWalkLeft;transform:scaleX(-1)}.hedgehogSprite.face-up{filter:drop-shadow(0 4px 3px #1d130ca0)brightness(.88)}.hedgehogActor{animation:none!important}@keyframes hedgehogWalk{0%,to{transform:translateY(0)rotate(-2deg)}50%{transform:translateY(-6%)rotate(2deg)}}@keyframes hedgehogWalkLeft{0%,to{transform:scaleX(-1)translateY(0)rotate(-2deg)}50%{transform:scaleX(-1)translateY(-6%)rotate(2deg)}}@media (prefers-reduced-motion:reduce){.hedgehogSprite{animation:none!important}}.gameHome{color:#f8f4e9;background:radial-gradient(circle at 50% 15%,#304b63 0,#15263a 48%,#0c1728 100%);place-items:center;min-height:100dvh;padding:24px;font-family:system-ui,-apple-system,sans-serif;display:grid}.gameHomeCard{text-align:center;background:linear-gradient(160deg,#24384c,#142336);border:1px solid #ad8650;border-radius:24px;width:min(100%,480px);padding:clamp(24px,6vw,42px);box-shadow:0 20px 65px #0007}.gameHomeIcon{color:#f4c46e;text-shadow:0 8px 18px #0006;font-size:78px;line-height:1.2}.gameHomeEyebrow{letter-spacing:.22em;color:#e5ba71;margin:18px 0 8px;font-size:12px;font-weight:800}.gameHome h1{color:#fff4d9;margin:0 0 12px;font-size:clamp(32px,7vw,48px);line-height:1.1}.gameHomeCard>p:not(.gameHomeEyebrow){color:#cbd7e3;line-height:1.5}.gameHomePlay{color:#1a2734;background:#e7b757;border-radius:14px;justify-content:space-between;align-items:center;gap:12px;margin-top:28px;padding:18px 20px;font-size:18px;font-weight:850;text-decoration:none;display:flex}.gameHomePlay:hover{background:#ffd27d}.gameHomeMeta{color:#b7c4d2;margin:14px 0 28px;font-size:12px}.gameHomeStudio{color:#d1dce9;text-underline-offset:4px;font-size:13px;text-decoration:underline}.ecLobby,.ecDev{box-sizing:border-box;min-height:100dvh;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.ecLobby *,.ecDev *{box-sizing:border-box}.ecLobby{color:#f5f7ff;background:radial-gradient(at 78% 2%,#304f79 0,#0000 38%),radial-gradient(at 0 70%,#233f64 0,#0000 45%),#0d182b;position:relative;overflow:hidden}.ecLobbyGlow{filter:blur(60px);pointer-events:none;background:#6b83e018;border-radius:50%;width:400px;height:400px;position:absolute;top:90px;right:-140px}.ecLobbyInner{max-width:1120px;margin:auto;padding:24px clamp(18px,4vw,42px) 30px;position:relative}.ecLobbyHeader,.ecDevTop{justify-content:space-between;align-items:center;gap:16px;display:flex}.ecLogo{align-items:center;gap:12px;display:flex}.ecLogo>span{color:#29334c;background:linear-gradient(140deg,#ffdd7c,#e69b42);border-radius:15px;place-items:center;width:51px;height:51px;font-size:32px;display:grid;box-shadow:0 5px 20px #ffbf4b35}.ecLogo strong{letter-spacing:-.7px;font-size:25px;display:block}.ecLogo small{color:#aebed5;letter-spacing:2px;margin-top:3px;font-size:10px;font-weight:750;display:block}.ecDevLink{color:#c5d3e7;border:1px solid #64799577;border-radius:12px;padding:9px 12px;font-size:13px;text-decoration:none}.ecWelcome{margin:62px 0 30px}.ecWelcomeBadge{color:#f9d58a;letter-spacing:1.8px;background:#f5be5d18;border:1px solid #f5be5d42;border-radius:100px;padding:9px 13px;font-size:11px;font-weight:850;display:inline-block}.ecWelcome h1{letter-spacing:-2px;margin:19px 0 14px;font-size:clamp(35px,5.8vw,68px);line-height:1.08}.ecWelcome h1 em{color:#f7c66b;font-style:normal}.ecWelcome p{color:#bac8db;max-width:580px;font-size:clamp(14px,2vw,17px);line-height:1.6}.ecWorldGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;display:grid}.ecWorld{background:linear-gradient(125deg,#263e5c,#1b2b44);border:1px solid #5a70945e;border-radius:22px;min-height:232px;display:flex;overflow:hidden;box-shadow:0 13px 32px #0003}.ecWorldActive{background:linear-gradient(120deg,#3e4d66,#203650);border-color:#d2a85e9c}.ecWorldLocked{opacity:.78}.ecWorldArt{text-shadow:0 10px 22px #0007;background:radial-gradient(circle,#c4b16b55,#0000 65%);place-items:center;width:38%;min-width:100px;font-size:clamp(56px,8vw,102px);display:grid}.ecWorldLocked .ecWorldArt{background:radial-gradient(circle,#91a8de24,#0000 68%)}.ecWorldText{flex-direction:column;flex:1;align-items:flex-start;padding:23px 20px 20px 0;display:flex}.ecWorldTag{color:#ffdf95;font-size:11px;font-weight:750}.ecWorld h2{margin:8px 0;font-size:clamp(18px,2.5vw,24px)}.ecWorld p{color:#c1cede;margin:0 0 18px;font-size:13px;line-height:1.55}.ecWorldButton{color:#1e2c40;background:linear-gradient(90deg,#f7ca72,#eea94b);border-radius:12px;justify-content:space-between;align-items:center;gap:36px;min-width:130px;margin-top:auto;padding:11px 18px;font-weight:850;text-decoration:none;display:flex;box-shadow:0 5px #aa7038}.ecWorldButton:hover{filter:brightness(1.08)}.ecComing{color:#9db0cb;margin-top:auto;font-size:12px;font-weight:750}.ecLobbyFooter{color:#91a6c0;border-top:1px solid #8194ac3b;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-top:30px;padding-top:18px;font-size:12px;display:flex}.ecLobbyFooter a{color:#e5c58a}.ecDev{color:#edf4ff;background:#101c2e;padding:35px 20px}.ecDevWrap{max-width:1050px;margin:auto}.ecDevTop{color:#b9c8e0;letter-spacing:1px;font-size:12px;font-weight:800}.ecDevTop a{color:#f4cc82;text-decoration:none}.ecDev h1{margin:65px 0 8px;font-size:clamp(32px,5vw,52px)}.ecDevWrap>p{color:#aabbd0;max-width:650px;line-height:1.6}.ecDevGrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:36px;display:grid}.ecDevCard{color:#eaf2ff;background:#1c304b;border:1px solid #4a6689;border-radius:20px;flex-direction:column;min-height:265px;padding:25px;text-decoration:none;display:flex}.ecDevCard>span{font-size:45px}.ecDevCard h2{margin:17px 0 4px;font-size:24px}.ecDevCard p{color:#b6c6da;font-size:14px;line-height:1.6}.ecDevCard b{color:#ffd082;margin-top:auto;font-size:13px}.ecDevCardMuted{opacity:.68}.ecDevNote{color:#a8b9d0;margin-top:26px;font-size:13px;line-height:2}.ecDevNote code{color:#ffd082}@media (max-width:700px){.ecLobbyInner{padding:18px 16px 24px}.ecLogo strong{font-size:20px}.ecLogo>span{width:43px;height:43px;font-size:27px}.ecDevLink{padding:8px;font-size:11px}.ecWelcome{margin:44px 0 24px}.ecWelcome h1{letter-spacing:-1px}.ecWorldGrid{grid-template-columns:1fr;gap:12px}.ecWorld{min-height:190px}.ecWorldArt{width:34%;min-width:100px;font-size:72px}.ecWorldText{padding:19px 16px 19px 0}.ecWorld h2{font-size:21px}.ecDevGrid{grid-template-columns:1fr}.ecDevCard{min-height:190px}.ecDev h1{margin-top:40px}}.ecDevDock{z-index:2147483000;color:#fff;pointer-events:none;flex-direction:column;align-items:flex-end;gap:8px;font-family:Arial,sans-serif;display:flex;position:fixed;bottom:16px;right:16px}.ecDevDock>*{pointer-events:auto}.ecDevDockToggle{color:#ffdc91;cursor:pointer;background:#17273f;border:1px solid #f3c875;border-radius:16px;min-height:46px;padding:12px 16px;font-size:14px;font-weight:800;box-shadow:0 8px 26px #0009}.ecDevDockToggle span{color:#fff;margin-left:8px}.ecDevDockLinks{background:#17273ff5;border:1px solid #627b9f;border-radius:15px;gap:5px;min-width:165px;padding:9px;display:grid;box-shadow:0 8px 28px #0009}.ecDevDockLinks a{border-radius:9px;padding:11px 12px;font-size:14px;font-weight:700;display:block;color:#f5f8ff!important;text-decoration:none!important}.ecDevDockLinks a:hover,.ecDevDockLinks a[aria-current=page]{background:#405c7d;color:#ffdb91!important}@media (max-width:600px){.ecDevDock{right:10px;bottom:max(10px,env(safe-area-inset-bottom))}.ecDevDockToggle{padding:10px 12px}}.ecLab{color:#eef5ff;background:#0b1626;min-height:100dvh;padding:32px clamp(14px,3vw,42px) 110px;font-family:system-ui,-apple-system,sans-serif}.ecLab *{box-sizing:border-box}.ecLabTop{justify-content:space-between;align-items:center;gap:18px;max-width:1450px;margin:0 auto 28px;display:flex}.ecLabEyebrow{color:#ffcf79;letter-spacing:2px;font-size:11px;font-weight:800}.ecLabTop h1{margin:9px 0;font-size:clamp(30px,4vw,47px)}.ecLabTop h1 small{color:#9fb5d0;font-size:13px}.ecLabTop p{color:#aabed4;margin:0;font-size:14px}.ecLabTop nav{flex-wrap:wrap;gap:8px;display:flex}.ecLabTop nav a{color:#ffe0a0;white-space:nowrap;border:1px solid #536a86;border-radius:11px;padding:11px 13px;font-size:13px;text-decoration:none}.ecLabLayout{grid-template-columns:minmax(220px,285px) minmax(300px,1fr) minmax(210px,280px);align-items:start;gap:16px;max-width:1450px;margin:auto;display:grid}.ecLabPanel{background:#16283e;border:1px solid #344c6a;border-radius:19px;min-width:0;padding:19px}.ecLabPanel h2{margin:0 0 10px;font-size:17px}.ecLabPanel h2:not(:first-child){margin-top:28px}.ecLabHint{color:#a4b9d0;margin:0 0 14px;font-size:12px;line-height:1.55}.ecLabScenarios{gap:9px;display:grid}.ecLabScenarios button{color:#edf6ff;text-align:left;cursor:pointer;background:#203651;border:1px solid #47607e;border-radius:13px;align-items:center;gap:13px;padding:12px;display:flex}.ecLabScenarios button.active{background:#334763;border-color:#ffcb71}.ecLabScenarios button>span{font-size:34px}.ecLabScenarios b,.ecLabScenarios small{display:block}.ecLabScenarios b{font-size:13px}.ecLabScenarios small{color:#afc1d5;margin-top:4px;font-size:11px}.ecLabCheck{align-items:center;gap:8px;margin:12px 0;font-size:13px;display:flex}.ecLabReset,.ecLabReplay{color:#fff;cursor:pointer;background:#2a4260;border:1px solid #617997;border-radius:11px;width:100%;margin-top:10px;padding:12px}.ecLabBoardTitle{justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.ecLabBoardTitle b,.ecLabBoardTitle small{display:block}.ecLabBoardTitle small{color:#aabed4;margin-top:5px;font-size:12px}.ecLabStatus{color:#ffd47b;white-space:nowrap;font-size:12px}.ecLabStatus.completed{color:#8ae6a9}.ecLabStatus.failed{color:#ff9c9c}.ecLabBoard{aspect-ratio:1;border:7px solid #6c4e30;border-radius:10px;width:min(100%,520px);margin:0 auto;display:grid;overflow:hidden;box-shadow:0 14px 32px #0006}.ecLabBoard button{cursor:pointer;border:0;place-items:center;min-width:0;min-height:0;padding:0;display:grid;position:relative}.ecLabBoard button.light{background:#e9d6b4}.ecLabBoard button.dark{background:#9f805e}.ecLabBoard button.goal{box-shadow:inset 0 0 0 4px #eab343}.ecLabBoard button.legal:after{content:"";background:#31b87899;border-radius:50%;width:28%;height:28%;position:absolute}.ecLabBoard button.selected{box-shadow:inset 0 0 0 4px #ffe26c}.ecLabBoard button>span{z-index:1;text-shadow:0 2px 2px #0003;font-size:clamp(24px,4vw,47px);line-height:1;position:relative}.ecLabStats{color:#a7bad0;flex-wrap:wrap;justify-content:space-around;gap:12px;margin-top:20px;font-size:12px;display:flex}.ecLabStats b{color:#fff;margin-left:4px}.ecLabReplay{color:#1a2532;background:#bd8c42;font-weight:800}.ecLabEvents{gap:8px;max-height:300px;display:grid;overflow:auto}.ecLabEvents>div{background:#0f2034;border:1px solid #3e5876;border-radius:9px;padding:9px}.ecLabEvents strong{color:#e8bf78;font-size:11px;display:block}.ecLabEvents code{color:#b7c9df;white-space:normal;overflow-wrap:anywhere;margin-top:6px;font-size:10px;display:block}.ecLabEmpty{color:#aabed4;font-size:12px}.ecLabDetails{grid-template-columns:1fr auto;gap:10px;font-size:12px;display:grid}.ecLabDetails dt{color:#9db3ca}.ecLabDetails dd{color:#fff;margin:0}.ecLabFooter{color:#a8b9d0;border-top:1px solid #3c536f;margin-top:30px;padding-top:15px;font-size:12px;line-height:2}.ecLabJson{color:#d5e4f8;background:#0a1525;border-radius:12px;max-height:350px;margin-top:18px;padding:12px;font-size:11px;overflow:auto}@media (max-width:1050px){.ecLabLayout{grid-template-columns:240px minmax(300px,1fr)}.ecLabLayout>aside:last-child{grid-column:1/-1}}@media (max-width:650px){.ecLabTop{display:block}.ecLabTop nav{margin-top:18px}.ecLabLayout{grid-template-columns:1fr}.ecLabLayout>aside:last-child{grid-column:auto}.ecLabBoard button>span{font-size:clamp(24px,8vw,42px)}.ecLabPanel{padding:15px}.ecLabScenarios{grid-template-columns:1fr 1fr}.ecLabScenarios button{gap:7px;padding:9px}.ecLabScenarios button>span{font-size:26px}.ecLabScenarios b{font-size:11px}.ecLabScenarios small{font-size:10px}}.stageMap{color:#fff;background:radial-gradient(at top,#294d60,#102a3a 55%,#091a28);min-height:100vh;padding:20px 16px 60px;font-family:system-ui,sans-serif}.stageMapTop{justify-content:space-between;align-items:center;gap:12px;max-width:780px;margin:auto;font-size:13px;font-weight:800;display:flex}.stageMap a{color:inherit;text-decoration:none}.stageMapTop a{background:#ffffff18;border-radius:14px;padding:10px 12px}.stageMapIntro{text-align:center;max-width:600px;margin:36px auto 25px}.stageMapPill{color:#f7db84;letter-spacing:2px;font-size:12px;font-weight:900}.stageMapIntro h1{margin:12px 0;font-size:clamp(29px,6vw,48px);line-height:1.08}.stageMapIntro p{color:#c7d9df;font-size:15px;line-height:1.5}.stageMapStart{background:#f4cb63;border-radius:16px;margin-top:12px;padding:15px 22px;font-weight:900;display:inline-block;box-shadow:0 5px #a67b27;color:#292d27!important}.stageTrail{max-width:620px;margin:35px auto 0;position:relative}.stageTrail:before{content:"";opacity:.5;background:repeating-linear-gradient(#f7d77b 0 15px,#fff5 15px 25px);border-radius:10px;width:7px;position:absolute;top:45px;bottom:45px;left:50%;transform:translate(-50%)}.stageTrailRow{align-items:center;gap:16px;min-height:94px;margin:0 0 24px;display:flex;position:relative}.stageTrailLeft{justify-content:flex-start}.stageTrailRight{flex-direction:row-reverse;justify-content:flex-end}.stageRoom{background:linear-gradient(150deg,#fff6c2,#e7a43e);border:5px solid #fff2bb;border-radius:28px;flex:0 0 86px;place-items:center;width:86px;height:86px;transition:transform .15s;display:grid;position:relative;box-shadow:0 8px #925c20,0 12px 24px #0007;color:#293a38!important}.stageRoom:hover{transform:translateY(-3px)}.stageRoomIcon{font-size:45px}.stageRoomNum{color:#fff;background:#254f61;border:2px solid #fff;border-radius:99px;place-items:center;min-width:27px;height:27px;font-size:13px;font-weight:900;display:grid;position:absolute;top:-12px;left:-12px}.stageRoomText{background:#ffffff12;border:1px solid #ffffff26;border-radius:17px;flex-direction:column;gap:5px;width:min(215px,45vw);padding:13px 16px;display:flex}.stageRoomText strong{font-size:15px}.stageRoomText small{color:#c6d8e0;font-size:12px}.stageRoomText a{color:#f4d47e;font-size:13px;font-weight:800}.stageMapFoot{text-align:center;color:#a4c0cb;max-width:600px;margin:36px auto 0;font-size:12px;line-height:1.5}@media (max-width:420px){.stageMapTop{font-size:10px}.stageRoom{border-radius:23px;flex-basis:72px;width:72px;height:72px}.stageRoomIcon{font-size:37px}.stageRoomText{width:min(185px,51vw);padding:11px}.stageTrailRow{gap:10px}.stageRoomText strong{font-size:13px}}.playerExercise{color:#183b30;background:linear-gradient(#e8f7ed,#f6f9e8);flex-direction:column;align-items:center;gap:12px;min-height:100vh;padding:12px;display:flex}.playerExercise>header,.playerExercise>.palette,.playerExercise>.settings,.playerExercise>aside{display:none!important}.playerTop{background:#fff;border-radius:18px;justify-content:space-between;align-items:center;gap:10px;width:min(100%,740px);padding:12px 14px;display:flex;box-shadow:0 3px 14px #163e2617}.playerTop a,.playerTop button{color:#215338;background:#d9f2dc;border:0;border-radius:12px;padding:10px;font-size:14px;font-weight:700;text-decoration:none}.playerTop div{text-align:center;flex-direction:column;gap:3px;display:flex}.playerTop small{color:#527866;font-size:11px}.playerRoomTitle{background:#fff;border-radius:18px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;width:min(100%,740px);padding:12px 18px;font-size:15px;display:flex}.playerRoomTitle strong{color:#2a7047}.playerExercise>.center{box-sizing:border-box;background:#fff;border-radius:22px;flex-direction:column;align-items:center;width:min(100%,740px);min-width:0;max-width:740px;padding:16px 10px 22px;display:flex}.playerExercise .board{grid-template-columns:repeat(var(--unused,8),1fr);justify-content:center;gap:0;width:min(100%,540px);max-width:100%;overflow:hidden;display:grid!important}.playerExercise .board .cell{aspect-ratio:1;width:100%;font-size:clamp(20px,6vw,44px);min-width:0!important;height:auto!important;padding:0!important}.playerExercise .boardSkin{object-fit:contain;max-width:90%;max-height:90%}.playerExercise .status{flex-wrap:wrap;justify-content:space-between;gap:8px;width:100%;max-width:540px;display:flex}.playerExercise .coords{display:none}.playerExercise .result{box-sizing:border-box;width:min(100%,540px)}.playerExercise .result button{border-radius:12px;min-height:46px;padding:10px 18px;font-weight:800}.playerExercise .runtime-goal{box-sizing:border-box;width:min(100%,540px)}.playerExercise .learnChallenge{box-sizing:border-box;width:100%;max-width:540px}@media (max-width:550px){.playerExercise{gap:9px;padding:8px}.playerExercise>.center{padding:12px 5px}.playerTop{padding:9px}.playerRoomTitle{padding:10px}.playerExercise .board{width:100%}}.playerExercise>.layout{align-items:center;width:100%;min-width:0;max-width:740px;flex-direction:column!important;display:flex!important}.playerExercise .layout>.palette,.playerExercise .layout>.settings{display:none!important}.playerExercise .layout>.center{box-sizing:border-box;background:#fff;border-radius:20px;flex-direction:column;align-items:center;width:100%;min-width:0;max-width:740px;padding:14px 8px;display:flex}.playerExercise .layout .board{box-sizing:border-box;width:min(100%,540px)!important}.playerExercise .layout .cell{aspect-ratio:1;width:100%;min-width:0!important;height:auto!important;padding:0!important}.playerExercise.goalAboveBoard .layout>.center>.runtime-goal{order:-5}.playerExercise.goalAboveBoard .layout>.center>.board{order:-3}.playerExercise .runtime-goal{text-align:center;background:#eff9ed;border:1px solid #c8e5c6;border-radius:14px;margin-bottom:12px;padding:12px 16px;font-size:16px;font-weight:700}.playerExercise .runtime-goal b{color:#276a38}.playerExercise .board .cell .goal-star{pointer-events:none}.playerExercise.highlightTargets .board .cell:has(.goal-star){background-color:#f9eeb1!important;box-shadow:inset 0 0 0 4px #f5d34f,inset 0 0 22px #ffed89!important}.playerExercise.highlightTargets .board .cell .goal-star{color:#9b7100;text-shadow:0 1px #fff;font-size:clamp(18px,5vw,32px)}.playerExercise .result.completed{background:#e8f8df;border:2px solid #82cc70}.playerExercise .result.completed>b{color:#267437;font-size:20px}.playerExercise .status small,.playerExercise .coords{display:none!important}.visualEditor{color:#19382b;max-width:1100px;margin:0 auto;padding:25px 18px}.visualEditor nav{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;display:flex}.visualEditor nav a,.visualLinks a{color:#215138;background:#d9f2df;border-radius:12px;padding:10px 14px;font-weight:700;text-decoration:none}.visualGrid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;margin-top:25px;display:grid}.visualGrid>section{background:#fff;border-radius:20px;min-width:0;padding:22px}.visualControls label{flex-direction:column;gap:12px;margin:20px 0;font-weight:650;display:flex}.visualControls label.check{flex-direction:row;align-items:center}.visualControls input[type=range]{width:100%}.visualControls input[type=checkbox]{width:22px;height:22px}.visualControls button{border-radius:10px;padding:12px}.visualPhone{background:#f1f9ed;border:5px solid #283d35;border-radius:28px;max-width:280px;margin:auto;padding:12px}.visualBar,.visualGoal{text-align:center;background:#fff;border-radius:10px;margin:8px 0;padding:12px}.visualGoal{background:#d9f2df;font-weight:700}.visualBoard{aspect-ratio:1;grid-template-columns:repeat(4,1fr);display:grid}.visualBoard>div{background:#f6e6b9;place-items:center;font-size:28px;display:grid}.visualBoard>div.shade{background:#9bc7a1}.visualLinks{flex-wrap:wrap;gap:10px;margin-top:20px;display:flex}@media (max-width:700px){.visualGrid{grid-template-columns:1fr}.visualGrid>section{padding:15px}}.playerRoomTitle{grid-template-columns:minmax(0,1fr) minmax(130px,1.3fr) auto;align-items:center;gap:14px;display:grid}.playerRoomTitle>span:first-child{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-weight:800;overflow:hidden}.playerProgress{align-items:center;gap:9px;min-width:0;display:flex}.playerProgressTrack{background:#e4ede4;border:2px solid #c7dcc9;border-radius:999px;flex:1;min-width:0;height:20px;position:relative;overflow:hidden;box-shadow:inset 0 2px 4px #234b261c}.playerProgressFill{background:linear-gradient(#9ae77b 0%,#55c85b 48%,#36ad52 100%);border-radius:999px;height:100%;transition:width .85s cubic-bezier(.16,.86,.22,1);position:relative;box-shadow:inset 0 2px 2px #ffffff9c,0 0 10px #77db60aa}.playerProgressFill:after{content:"";background:#ffffff80;border-radius:99px;height:4px;position:absolute;top:2px;left:8px;right:8px}.playerProgressBubble{background:radial-gradient(circle at 30% 25%,#fff 0%,#c8ffb3 25%,#62d45d 70%);border-radius:50%;width:17px;height:17px;animation:1.4s ease-in-out infinite progressBubbleFloat;position:absolute;top:50%;right:-4px;transform:translateY(-50%);box-shadow:0 0 0 2px #fffa,0 0 9px #67d853}.playerProgressCount{color:#347a42;text-align:right;font-variant-numeric:tabular-nums;min-width:28px;font-size:13px;font-weight:900}@keyframes progressBubbleFloat{0%,to{transform:translateY(-50%)scale(1)}50%{transform:translateY(-58%)scale(1.09)}}@media (max-width:550px){.playerRoomTitle{grid-template-columns:1fr auto;gap:8px}.playerRoomTitle>span:first-child{grid-column:1/-1}.playerProgress{grid-area:2/1/auto/-1}.playerRoomTitle>span:last-child{grid-area:1/2}}@media (prefers-reduced-motion:reduce){.playerProgressFill{transition:none}.playerProgressBubble{animation:none}}.visualBlockList{flex-direction:column;gap:8px;display:flex}.visualBlockRow{background:#f0f7f1;border:1px solid #d5e9d8;border-radius:12px;align-items:center;gap:7px;padding:8px;display:flex}.visualBlockRow>span{flex:1;min-width:0;font-size:13px;font-weight:750}.visualBlockRow button{cursor:pointer;background:#d9eedd;border:0;border-radius:9px;padding:8px 12px;font-size:17px}.visualBlockRow button:disabled{opacity:.3}.visualBlockToggle{flex-direction:column!important;align-items:center!important;gap:2px!important;margin:0!important;font-size:10px!important;display:flex!important}.visualBlockToggle input{width:19px;height:19px}.visualPhoneWide{max-width:350px}.visualMockHeader{text-align:center;padding:9px;font-weight:800}.visualMockProgress{align-items:center;gap:8px;margin:12px 0;display:flex}.visualMockTrack{background:#e3ede2;border-radius:20px;flex:1;height:18px;overflow:hidden}.visualMockFill{background:linear-gradient(#9be67b,#43bd56);border-radius:20px;height:100%;transition:width .85s;position:relative}.visualMockFill i{background:#d4ffc6;border-radius:50%;width:15px;height:15px;position:absolute;top:1px;right:0;box-shadow:0 0 6px #48c45a}.visualPreviewActions{flex-wrap:wrap;justify-content:center;gap:8px;margin-top:16px;display:flex}.visualPreviewActions button{cursor:pointer;background:#d9f2df;border:0;border-radius:10px;padding:11px;font-weight:700}.playerExercise .playerTop{order:var(--ec-header-order,0)}.playerExercise .playerRoomTitle{order:var(--ec-progress-order,1)}.playerExercise>.layout{order:3}.playerExercise .layout>.center>.runtime-goal{order:var(--ec-goal-order,0)!important}.playerExercise .layout>.center>.board{order:var(--ec-board-order,1)!important;max-width:var(--ec-board-size,540px)!important}.playerExercise .layout>.center>.result{order:var(--ec-result-order,4)!important}.playerExercise .playerProgressFill{transition-duration:var(--ec-progress-duration,.85s)}.playerExercise.hideBlock-header .playerTop,.playerExercise.hideBlock-progress .playerRoomTitle,.playerExercise.hideBlock-goal .runtime-goal,.playerExercise.hideBlock-result .result,.playerExercise.hideProgressCount .playerProgressCount{display:none!important}.playerExercise .playerRoomTitle{flex-direction:column;align-items:stretch;gap:8px;display:flex!important}.playerExercise .playerRoomName{order:var(--ec-title-order,0);text-align:center;font-weight:800}.playerExercise .playerProgress{order:var(--ec-progress-order,1);width:100%}.playerExercise .playerLives{order:var(--ec-lives-order,2);text-align:center}.playerExercise .layout>.center>.learnChallenge{order:var(--ec-challenge-order,3)!important}.playerExercise .layout>.center>.playerReward{color:#e5a62b;letter-spacing:5px;text-align:center;padding:8px;font-size:36px;order:var(--ec-reward-order,6)!important}.playerExercise.hideBlock-title .playerRoomName,.playerExercise.hideBlock-lives .playerLives,.playerExercise.hideBlock-challenge .learnChallenge,.playerExercise.hideBlock-reward .playerReward,.playerExercise.hideBlock-progress .playerProgress,.playerExercise .status,.playerExercise .result.playing{display:none!important}.playerExercise .result.completed>b{font-size:0!important}.playerExercise .result.completed>b:after{content:"✨ Отлично!";font-size:21px}.playerExercise .result.failed{font-size:0!important}.playerExercise .result.failed:before{content:"Попробуй ещё раз";font-size:20px;display:block}.playerExercise .result.failed button{font-size:16px}.visualPresets{flex-wrap:wrap;gap:6px;margin:10px 0;display:flex}.visualPresets button{background:#e4f5e8;border:1px solid #c7e2cd;border-radius:10px;padding:10px;font-size:12px;font-weight:700}.ecLiveEditor{z-index:2147482000;color:#182d22;font-family:system-ui,sans-serif;position:fixed;top:12px;right:12px}.ecLiveOpen{cursor:pointer;box-shadow:0 4px 15px #0003;color:#fff!important;background:#163e30!important;border:2px solid #a5d7ba!important;border-radius:13px!important;padding:10px 14px!important;font-weight:800!important}.ecLivePanel{background:#fff;border:2px solid #8cbca4;border-radius:18px;flex-direction:column;gap:12px;width:min(320px,100vw - 24px);max-height:75vh;margin-top:8px;padding:16px;display:flex;overflow:auto;box-shadow:0 8px 40px #0004}.ecLiveHeading{flex-direction:column;gap:3px;display:flex}.ecLiveHeading span,.ecLivePanel small{color:#52665a;font-size:12px}.ecLivePanel label{flex-direction:column;gap:6px;font-size:14px;font-weight:650;display:flex}.ecLivePanel input[type=range]{accent-color:#3b995d;width:100%}.ecLivePanel select{color:#152d21;background:#fff;border:1px solid #b5cbbb;border-radius:9px;width:100%;padding:9px;font-size:16px}.ecLiveActions{flex-wrap:wrap;gap:7px;display:flex}.ecLiveActions button,.ecLiveActions a{color:#1b4d30;cursor:pointer;background:#f1f8f3;border:1px solid #adc9b8;border-radius:9px;padding:8px 10px;font-size:13px;text-decoration:none}.ecLivePanel .ecLiveCheck{flex-direction:row;align-items:center;gap:8px;margin:7px 0;display:flex}.ecLivePanel details{border-top:1px solid #dce8df;padding-top:10px}.ecLivePanel summary{cursor:pointer;font-weight:700}.ecLiveActive~.playerTop{outline:2px dashed #55a87a}@media (max-width:550px){.ecLiveEditor{top:auto;bottom:70px;right:8px}.ecLivePanel{max-height:58vh}}.playerExercise{gap:7px}.playerExercise>.layout,.playerExercise .layout>.center{box-shadow:none!important;background:0 0!important;border:0!important;padding:0!important}.playerExercise .playerRoomTitle{background:0 0!important;min-height:0!important;padding:0!important}.playerExercise .playerBoardRow{grid-template-columns:var(--ec-rail-width,14px) minmax(0,1fr) 30px;width:min(100%,calc(var(--ec-board-size,540px) + var(--ec-rail-width,14px) + 40px));align-items:stretch;gap:5px;margin:0 auto;display:grid}.playerExercise .playerBoardRow>.board{align-self:center;min-width:0;width:100%!important;max-width:100%!important;margin:0!important}.playerExercise .playerSideRail{justify-content:center;align-items:center;min-width:0;display:flex}.playerExercise .playerSideRailLeft{align-self:stretch}.playerExercise .playerProgress{flex-direction:column;justify-content:center;gap:3px;height:100%;display:flex;width:var(--ec-rail-width,14px)!important}.playerExercise .playerProgressTrack{border-width:1px;flex:1;align-items:flex-end;width:100%;height:100%;min-height:80px;display:flex}.playerExercise .playerProgressFill{height:var(--ec-progress-value,0%);transition:height var(--ec-progress-duration,.85s) cubic-bezier(.16,.86,.22,1);background:linear-gradient(90deg,#43b855,#92eb7a,#43b855);width:100%!important}.playerExercise .playerProgressFill:after{background:#ffffff50;width:auto;height:30%;inset:auto 2px 5px}.playerExercise .playerProgressBubble{width:calc(var(--ec-rail-width,14px) + 2px);height:calc(var(--ec-rail-width,14px) + 2px);animation:none;top:-5px;left:50%;right:auto;transform:translate(-50%)}.playerExercise .playerProgressCount{writing-mode:vertical-rl;min-width:0;font-size:10px;transform:rotate(180deg)}.playerExercise .playerSideRailRight{flex-direction:column;justify-content:flex-start;align-items:center;gap:12px;padding-top:3px;display:flex}.playerExercise .playerLives{overflow-wrap:anywhere;text-align:center;flex-direction:column;align-items:center;max-width:30px;font-size:15px;line-height:1.25;display:flex}.playerExercise .playerFlagsBadge{font-size:17px}.playerExercise .playerRoomTitle:empty{display:none!important}.playerExercise .runtime-goal{font-size:15px;box-shadow:none!important;background:0 0!important;border:0!important;margin:0 auto 7px!important;padding:7px 10px!important}.playerExercise .playerTop{box-shadow:none;padding:7px 10px}.playerExercise.progressHorizontal .playerBoardRow{grid-template-columns:minmax(0,1fr) 30px}.playerExercise.progressHorizontal .playerSideRailLeft{grid-area:1/1/auto/-1}.playerExercise.progressHorizontal .playerProgress{flex-direction:row;height:17px;width:100%!important}.playerExercise.progressHorizontal .playerProgressTrack{height:17px;min-height:0;display:block}.playerExercise.progressHorizontal .playerProgressFill{transition:width var(--ec-progress-duration,.85s) ease;height:100%!important;width:var(--ec-progress-value,0%)!important}.playerExercise.progressHorizontal .playerProgressBubble{top:50%;left:auto;right:-3px;transform:translateY(-50%)}.playerExercise.progressHorizontal .playerProgressCount{writing-mode:initial;transform:none}.playerExercise.progressHorizontal .playerSideRailRight{grid-area:2/2}@media (max-width:550px){.playerExercise{gap:6px;padding:6px!important}.playerExercise .playerBoardRow{grid-template-columns:var(--ec-rail-width,14px) minmax(0,1fr) 24px;gap:3px}.playerExercise .playerLives{font-size:13px}.playerExercise .playerTop{font-size:12px}.playerExercise .playerTop small{display:none}}@media (prefers-reduced-motion:reduce){.playerExercise .playerProgressFill{transition:none}}.playerExercise .playerBoardRow{width:min(100%,calc(var(--ec-board-size,540px) + 34px))!important;grid-template-columns:30px minmax(0,1fr)!important;gap:4px!important}.playerExercise .playerSideRailLeft{flex-direction:column;justify-content:flex-start;align-items:center;gap:7px;min-height:0;display:flex}.playerExercise .playerRailLives{white-space:nowrap;flex-direction:column;flex:none;align-items:center;gap:0;font-size:17px;line-height:1.1;display:flex;overflow:visible}.playerExercise .playerRailLives b{color:#a12e46;font-variant-numeric:tabular-nums;font-size:12px;font-weight:900}.playerExercise .playerProgress{flex:1;min-height:0;height:auto!important}.playerExercise .playerProgressTrack{min-height:50px}.playerExercise .playerProgressCount{display:none!important}.playerExercise .playerFlagsBadge{float:right;white-space:nowrap;align-items:center;gap:3px;margin-left:8px;font-size:15px;display:inline-flex}.playerExercise .playerFlagsBadge b{font-size:13px}.playerExercise.progressHorizontal .playerBoardRow{grid-template-rows:auto auto;grid-template-columns:minmax(0,1fr)!important}.playerExercise.progressHorizontal .playerSideRailLeft{flex-direction:row;grid-area:1/1;align-items:center;gap:10px;width:100%}.playerExercise.progressHorizontal .playerRailLives{flex-direction:row;order:2;gap:4px;font-size:17px}.playerExercise.progressHorizontal .playerProgress{flex:1;order:1;min-width:0;height:17px!important}.playerExercise.progressHorizontal .playerBoardRow>.board{grid-area:2/1}@media (max-width:550px){.playerExercise .playerBoardRow{grid-template-columns:25px minmax(0,1fr)!important;gap:2px!important}.playerExercise .playerRailLives{font-size:15px}.playerExercise .playerRailLives b{font-size:11px}.playerExercise.progressHorizontal .playerBoardRow{grid-template-columns:minmax(0,1fr)!important}}.playerExercise .playerBoardRow>.board{aspect-ratio:var(--ec-cols,5) / var(--ec-rows,5);grid-template-rows:repeat(var(--ec-rows,5),minmax(0,1fr));justify-self:end;width:min(100%, calc((100dvh - 235px) * var(--ec-cols,5) / var(--ec-rows,5)))!important;max-width:100%!important}.playerExercise .playerBoardRow{align-items:start!important}@media (max-width:550px){.playerExercise .playerTop{min-height:0!important;padding:5px 7px!important}.playerExercise .playerTop button{padding:5px 8px!important;font-size:12px!important}.playerExercise .playerRoomTitle{padding:3px!important;font-size:16px!important}.playerExercise .playerBoardRow>.board{width:min(100%, calc((100dvh - 215px) * var(--ec-cols,5) / var(--ec-rows,5)))!important}.playerExercise .playerBoardRow{max-width:100%!important}.playerExercise .liveVisualEditButton,.playerExercise .visualEditButton{display:none!important}}.kingdomGate{color:#425e51;text-align:center;background:#f6f3e8;flex-direction:column;justify-content:center;align-items:center;min-height:100dvh;padding:24px;display:flex}.kingdomGate>span{font-size:64px}.kingdomGate h1{font:32px Georgia}.kingdomGate a{color:#fff;background:#4c765e;border-radius:12px;padding:14px 24px;text-decoration:none}.kingdomSaveNotice{text-align:center;color:#7e642f;background:#fff1c9;padding:8px;font-size:12px}.board-drag-ghost{pointer-events:none;z-index:10000;filter:drop-shadow(0 8px 8px #0005);place-items:center;display:grid;position:fixed;transform:translate(-50%,-50%)}.board-drag-ghost img{object-fit:contain;pointer-events:none;width:90%;height:90%}.drag-board{touch-action:none;-webkit-user-select:none;user-select:none}.drag-source img,.drag-source .entity{opacity:.2}.settings-dialog{color:#355143;background:#fffbed;border:0;border-radius:24px;min-width:min(360px,90vw);padding:32px;box-shadow:0 20px 80px #203a3355}.settings-dialog::backdrop{background:#203a3366}.language-select{gap:12px;margin:24px 0;font-weight:700;display:grid}.language-select select{font:inherit;border:2px solid #d8dfc7;border-radius:12px;padding:12px}.reward-stats{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:20px;margin:24px 0;display:grid}.reward-stats article{background:#fffbed;border-radius:24px;padding:24px;box-shadow:0 4px #d6dec4}.reward-stats strong{color:#5c763b;font-size:38px;display:block}.kids-menu button:disabled{opacity:.45;cursor:not-allowed}.reward-note{color:#66806b;font-size:14px}.settings-corner{z-index:100;position:fixed;bottom:16px;right:16px}.settings-corner button{cursor:pointer;background:#fffbed;border:2px solid #d8dfc7;border-radius:50%;width:44px;height:44px;font-size:0;box-shadow:0 3px 12px #203a3322}.settings-corner button:before{content:"⚙️";font-size:23px}.drag-source>span{opacity:.2}.drag-board img{-webkit-user-drag:none}.drag-source{cursor:grabbing}.settings-dialog button{color:#355143;font:inherit;cursor:pointer;background:#f3cd65;border:0;border-radius:14px;padding:12px 24px;font-weight:800}.settings-dialog button:focus-visible,.settings-dialog select:focus-visible{outline-offset:3px;outline:3px solid #6096b5}.boardSkin,.skinThumb{filter:none!important;background:0 0!important;border:0!important}.playerExercise .board .cell.light{background:#f0ead8}.playerExercise .board .cell.dark{background:#8aa477}.playerExercise .board{border-radius:4px;box-shadow:0 8px 30px #263c2526}.playerExercise .boardSkin{width:88%;height:88%}
.kids-chessboard>button.kids-square,.puzzle-board>button.puzzle-square{border:0;border-radius:0;min-width:0;min-height:0;margin:0;padding:0;position:relative;overflow:hidden}.kids-chessboard .chess-board-piece,.puzzle-board .chess-board-piece{object-fit:contain;pointer-events:none;-webkit-user-select:none;user-select:none;z-index:2;width:88%;max-width:none;height:88%;max-height:none;margin:0;display:block;position:absolute;inset:6%}.board .cell>span:has(>.boardSkin){width:auto;height:auto;font-size:inherit;filter:none;margin:0;position:absolute;inset:0}.board .cell>span>.boardSkin{object-fit:contain;pointer-events:none;width:88%;max-width:88%;height:88%;max-height:88%;margin:0;display:block;position:absolute;inset:6%}
.kids-square>.board-object,.ws-square>.board-object,.board .cell>.board-object,.ecLabBoard button>.board-object{width:88%;height:88%;font-size:inherit;filter:none;text-shadow:none;pointer-events:none;-webkit-user-select:none;user-select:none;z-index:2;margin:0;padding:0;line-height:1;display:block;position:absolute;inset:6%}.board-object>.board-object-art{transform-origin:50% 55%;filter:drop-shadow(0 2px 1px #26311c30);width:100%;height:100%;font-style:normal;animation:3s ease-in-out infinite board-object-float;display:block}.board-object.is-grounded>.board-object-art{transform-origin:50% 85%;animation-name:board-object-sway;animation-duration:4.6s}.board-object-art>svg{width:100%;height:100%;display:block;overflow:visible}@keyframes board-object-float{0%,to{transform:translateY(2%)rotate(-4deg)}50%{transform:translateY(-2%)rotate(4deg)}}@keyframes board-object-sway{0%,to{transform:rotate(-1.5deg)}50%{transform:rotate(1.5deg)}}@media (prefers-reduced-motion:reduce){.board-object>.board-object-art{animation:none;transform:none}}
