/* Цветной детский режим. Общая сложность использует прежние стили. */
@font-face{font-family:'QB Pictures';font-style:normal;font-weight:400;font-display:swap;src:url('assets/junior/pictures.woff') format('woff')}
.junior-mode{--j-ink:#f4f0ff;--j-paper:#263251;--j-line:#8b9dc742;--j-green:#83efdc;--j-accent:#bda4ff}
body.junior-mode{margin:0;background:radial-gradient(ellipse at 4% 0%,#ad4c7e6b,transparent 50%),radial-gradient(ellipse at 97% 90%,#187b886b,transparent 54%),linear-gradient(135deg,#20224f,#32214c 49%,#14354a);background-attachment:fixed;color:var(--j-ink);font-family:Arial,'Segoe UI','QB Pictures','Segoe UI Emoji',sans-serif}
.junior-mode .hidden,.junior-mode [hidden]{display:none!important}.junior-mode button{cursor:pointer;touch-action:manipulation}.junior-mode button:focus-visible{outline:4px solid #ffda81;outline-offset:4px}
.junior-mode .ambient-layer,.junior-mode .grid-bg,.junior-mode .bg-layer,.junior-mode .grid-layer{display:none}
.junior-mode .screen-game{height:100dvh;min-height:580px;box-sizing:border-box;padding:14px 24px;display:flex;flex-direction:column;gap:8px;max-width:1460px;margin:auto}
.junior-mode .hud{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:8px 16px;background:linear-gradient(115deg,#313267e8,#25495ce8);border:1px solid #b3c1ff38;border-radius:22px;box-shadow:0 12px 35px #090f2c25;color:#fff;min-height:64px;flex-shrink:0}
.junior-mode .hud-left,.junior-mode .hud-right{display:flex;gap:18px;align-items:center}.junior-mode .hud h2{font:700 clamp(18px,2vw,27px)/1.1 Arial;margin:4px 0;color:#fff}
.junior-mode .hud .eyebrow,.junior-mode .hud .score-box span,.junior-mode .hud .progress-box span{font:700 11px/1.3 Arial;letter-spacing:.06em;color:#c7cdec}.junior-mode .hud .score-box,.junior-mode .hud .progress-box{display:flex;flex-direction:column;gap:3px}.junior-mode .hud .score-box strong{color:#ffe18a;font-size:27px}
.junior-mode .quantum-logo{width:48px;height:48px;background:linear-gradient(145deg,#8c6bba,#4a7a9b);border:1px solid #ccb5ff5c;border-radius:15px;display:grid;place-items:center;font:28px 'QB Pictures','Segoe UI Emoji',sans-serif}.junior-mode .quantum-logo img{max-width:44px;max-height:44px}
.junior-mode .timer-wrap{display:block}.junior-mode .timer-ring{width:auto;height:auto;position:relative}.junior-mode .timer-ring svg{display:none}.junior-mode #timerText{position:static;font:700 23px Arial;color:#e6dafd;transform:none}
.junior-mode .hud-color{display:none}.junior-mode .task-track{height:6px;background:#131c3d80;border-radius:8px;flex-shrink:0;overflow:hidden}.junior-mode .task-track>div{height:100%;background:linear-gradient(90deg,#c79aff,#74e4dc,#ffcd83);transition:width .3s}
.junior-mode .game-stage{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;border:0;background:none;padding:0;overflow:visible;border-radius:24px}.junior-mode .stage-topline{display:none}.junior-mode .mini-game-host{display:block;flex:1;min-height:0;width:100%;height:auto;overflow:visible}
.junior-mode .game-footer{display:flex;justify-content:space-between;align-items:center;font:600 13px Arial;color:#d7d4ec;min-height:22px;flex-shrink:0;gap:12px}.junior-mode .footer-dots{display:flex;gap:8px}.junior-mode .footer-dots span{width:10px;height:10px;border:2px solid #8e9fca;border-radius:50%}.junior-mode .footer-dots .done{background:#8cf3d8;border-color:#8cf3d8}
.jg-shell{height:100%;min-height:430px;box-sizing:border-box;display:grid;grid-template-columns:minmax(205px,255px) minmax(0,1fr);gap:18px;color:#f5f1ff;text-align:left}
.jg-guide{background:radial-gradient(ellipse at 0 0,#c879bc35,transparent 70%),linear-gradient(155deg,#483b77,#293c61);border:1px solid #b7a1e244;border-radius:24px;padding:20px;display:flex;flex-direction:column;gap:12px;box-sizing:border-box;box-shadow:0 12px 30px #11152b22}
.jg-buddy{width:80px;height:74px;display:grid;place-items:center;font-size:48px;background:linear-gradient(145deg,#ab76b95c,#6d9eae52);border:1px solid #cfadf242;border-radius:24px;align-self:center}.jg-guide h3{font:700 21px/1.15 Arial;margin:0;color:#fff2d7}.jg-guide p{font:500 17px/1.4 Arial;margin:0;color:#e4ddf7}
.jg-example{padding:14px 8px;background:linear-gradient(120deg,#2e335c,#3d5274);border:1px solid #b5b8f233;border-radius:16px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:34px;min-height:56px}.jg-example .jg-symbol{font-size:30px;min-width:38px;min-height:38px}.jg-example b{font-size:23px;color:#99f6dc}.jg-guide .jg-soft{font-size:14px;line-height:1.4;color:#c4c9e2}
.jg-guide button{width:100%;min-height:45px;border:1px solid #bbb9f255;border-radius:14px;background:linear-gradient(115deg,#5e4b85,#355f7c);color:#f6f3ff;font:700 15px Arial;padding:10px}.jg-guide button:hover{filter:brightness(1.15)}.jg-guide-actions{margin-top:auto;display:grid;gap:8px}
.jg-play{background:radial-gradient(ellipse at 100% 0,#476f9733,transparent 65%),linear-gradient(145deg,#2a315c,#253f59);border:1px solid #b1bbeb38;border-radius:24px;padding:clamp(16px,2.4vw,30px);display:flex;flex-direction:column;justify-content:center;gap:14px;box-sizing:border-box;min-width:0;position:relative;overflow:hidden;box-shadow:0 12px 35px #10182d22}
.jg-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.jg-heading h3{margin:0;font:700 clamp(22px,2.5vw,32px)/1.15 Arial;color:#fff1d8}.jg-counter{background:linear-gradient(120deg,#66548e,#3b6d79);border:1px solid #c7b7fb36;color:#fff3d4;padding:8px 12px;border-radius:20px;white-space:nowrap;font:700 15px Arial}
.jg-content{display:flex;flex-direction:column;gap:14px;min-width:0}.jg-prompt{text-align:center;font:600 19px/1.3 Arial;margin:0;color:#e1e5fd}.jg-target{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;background:linear-gradient(110deg,#4c3e6f88,#36628188);border:2px dashed #bca5e377;border-radius:22px;padding:14px;min-height:84px;box-sizing:border-box}.jg-target .jg-symbol{font-size:clamp(46px,6vw,70px)}
.jg-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.jg-options.two{grid-template-columns:repeat(2,minmax(0,1fr))}.jg-options.four{grid-template-columns:repeat(4,minmax(0,1fr))}.jg-options.five{grid-template-columns:repeat(5,minmax(0,1fr))}
.jg-find-grid .jg-find-card{min-height:76px;height:76px;padding:7px}.jg-find-card .jg-symbol{font-size:43px}
.jg-card{appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:clamp(100px,17vh,146px);padding:14px 10px;border:2px solid #9cbde766;border-bottom:6px solid #192f57;border-radius:23px;background:linear-gradient(140deg,#446b89,#35556f);color:#fff;font:700 18px/1.15 Arial;transition:transform .16s,filter .16s,border-color .16s;box-sizing:border-box;position:relative}
.jg-card:nth-child(3n+2){background:linear-gradient(140deg,#765784,#4e4779);border-color:#d2a6de66;border-bottom-color:#3c2f5e}.jg-card:nth-child(3n){background:linear-gradient(140deg,#46827f,#315e72);border-color:#9cdfd266;border-bottom-color:#25435d}.jg-card:hover{filter:brightness(1.18);transform:translateY(-3px);border-color:#d0f6ee}.jg-card:active{transform:translateY(1px)}.jg-card:disabled{opacity:.65;cursor:default;transform:none}.jg-card.jg-done{background:linear-gradient(140deg,#527f69,#367c86);opacity:1;border-color:#90efca}.jg-card .jg-symbol{font-size:clamp(42px,5.8vw,64px)}
.jg-symbol{display:inline-flex;align-items:center;justify-content:center;line-height:1.1;font-style:normal;vertical-align:middle;min-width:1em}.jg-symbol,.jg-buddy,.jg-cell,.jm-buildings>button>span,.jm-rules b,.jg-collect-actor{font-family:'QB Pictures','Segoe UI Emoji','Apple Color Emoji','Segoe UI Symbol',Arial,sans-serif;font-weight:400}.jg-number{font-family:Arial,sans-serif;font-weight:700}
.jg-swatch{width:1em;height:1em;border:3px solid #ffffff66;border-radius:.18em;box-sizing:border-box;position:relative;color:#fff;font-size:inherit;text-shadow:0 1px 3px #344;display:grid;place-items:center}.jg-swatch small{font-size:.6em;font-weight:800;color:inherit}.jg-shape{display:inline-block;width:.9em;height:.9em;border:3px solid #a6f1ff;background:#68bbc6;box-sizing:border-box}.jg-shape.circle{border-radius:50%;background:#d6a4ee;border-color:#f3d4ff}.jg-shape.triangle{border:0;background:#f2cc74;clip-path:polygon(50% 0,100% 100%,0 100%)}
.jg-feedback{min-height:29px;text-align:center;font:700 18px/1.35 Arial;color:#99efdc}.jg-feedback.is-help{color:#ffe0a2}.jg-hinted{outline:5px solid #ffd477!important;outline-offset:3px;animation:jg-pulse 1.1s infinite}
.jg-stage{display:flex;align-items:center;justify-content:center;gap:9px;font:600 14px Arial;color:#d6e1f5;min-height:22px}.jg-stage i{width:9px;height:9px;border-radius:50%;background:#657696;border:1px solid #b1bcda55}.jg-stage i.is-done{background:#83e7d0}.jg-stage i.is-current{background:#ffd37c;box-shadow:0 0 0 4px #ffd37c22}.jg-stage strong{margin-left:8px;color:#ffe1a3}
.jg-path{display:grid;gap:7px;align-self:center;width:min(100%,450px);aspect-ratio:6/5}.jg-cell{appearance:none;display:grid;place-items:center;border:2px solid #75939d66;border-radius:14px;background:linear-gradient(135deg,#3f6f72,#30545e);font-size:clamp(22px,3.5vw,38px);min-width:0;padding:0;line-height:1}.jg-cell.jg-road{background:linear-gradient(130deg,#8e7b83,#625d79);border-color:#c1b4b85c}.jg-cell.jg-next{border:3px dashed #e9c473}.jg-cell:disabled{cursor:default}.jg-cell.jg-robot{background:#5f8b82;border:3px solid #a3f3de}
.jg-sequence{display:flex;justify-content:center;gap:clamp(5px,1.2vw,14px)}.jg-slot{border:2px dashed #b5b9dd88;border-radius:16px;min-width:0;min-height:70px;display:grid;place-items:center;background:linear-gradient(140deg,#354368,#4e4a73);position:relative;flex:1;max-width:145px}.jg-slot .jg-symbol{font-size:42px}.jg-slot::after{content:attr(data-step);font:700 12px Arial;position:absolute;bottom:3px;right:6px;color:#b6e7e5}.jg-slot.is-next{border:3px solid #e5c27c;background:linear-gradient(120deg,#6a5771,#586383)}.jg-picture-row{display:flex;justify-content:center;align-items:center;gap:14px;flex-wrap:wrap}.jg-picture-row .jg-symbol{font-size:46px}.jg-tiny-message{font:600 13px Arial;color:#b9d8e6}
.jg-memory{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.jg-memory .jg-card{min-height:108px;height:108px}.jg-memory .jg-card.is-covered{background:linear-gradient(145deg,#7861a8,#426d8b);color:#ecd4ff;font-size:38px}.jg-memory .jg-card.is-paired{background:linear-gradient(140deg,#396d76,#4e7d71);border-color:#93e9cd;opacity:.7}.jg-memory .jg-symbol{font-size:48px}
.jg-sort-item{display:grid;place-items:center;min-height:120px;background:radial-gradient(ellipse,#9582bd44,transparent 70%)}.jg-sort-item .jg-symbol{font-size:95px}.jg-sort-bin{min-height:105px}.jg-sort-bin small{font-size:13px;color:#dedaf4}
.jg-mix-order{display:flex;justify-content:center;align-items:center;gap:16px;flex-wrap:wrap;min-height:90px}.jg-mix-order .jg-symbol{font-size:55px}.jg-mix-order b{color:#d3d5ef;font-size:24px}.jg-mix-cup{display:flex;align-items:center;justify-content:center;gap:10px;min-height:65px;padding:10px;border:2px dashed #bba6e799;border-radius:16px;background:#75609425}.jg-mix-cup .jg-symbol{font-size:42px}.jg-mix-button{border:1px solid #fcdfa07a;border-bottom:4px solid #85623f;border-radius:15px;background:linear-gradient(120deg,#efbd72,#dfaa8b);color:#352947;min-height:48px;padding:10px 24px;font:700 18px Arial;align-self:center}.jg-mix-button:disabled{opacity:.45;cursor:default}
.jg-collect-field{height:clamp(240px,36vh,320px);min-height:220px;position:relative;overflow:hidden;border:2px solid #7ebfd273;border-radius:24px;background:radial-gradient(circle at 20% 30%,#8d92b844 0 4%,transparent 5%),radial-gradient(circle at 75% 65%,#83bdad55 0 8%,transparent 9%),linear-gradient(130deg,#4b6c7f,#566e83 45%,#3a596f);touch-action:none;cursor:crosshair}.jg-collect-field::before{content:'';position:absolute;inset:15%;border:20px solid #b4c5c029;border-radius:45%;transform:rotate(-8deg);pointer-events:none}.jg-collect-field[data-world="sky"]{background:radial-gradient(ellipse at 25% 10%,#ce9fc533,transparent 60%),linear-gradient(150deg,#3e3e80,#40678b,#645387)}.jg-collect-item{appearance:none;position:absolute;transform:translate(-50%,-50%);width:46px;height:46px;border:1px solid #ffdc8055;border-radius:16px;background:#2c38614d;padding:0;display:grid;place-items:center;z-index:2}.jg-collect-item .jg-symbol{font-size:31px}.jg-collect-item.is-collected{opacity:.1;pointer-events:none;transform:translate(-50%,-50%) scale(.3);transition:all .3s}.jg-collect-actor{position:absolute;transform:translate(-50%,-50%);font-size:43px;z-index:4;filter:drop-shadow(0 6px 4px #112a4655);pointer-events:none}.jg-collect-destination{position:absolute;transform:translate(-50%,-50%);width:20px;height:20px;border:2px dashed #ffe7a3;border-radius:50%;pointer-events:none;opacity:.85}.jg-collect-feedback{position:absolute;top:10px;left:12px;background:#293957ca;padding:7px 12px;border-radius:14px;font:700 14px Arial;color:#fff1bc;z-index:5;pointer-events:none}
@keyframes jg-pulse{50%{box-shadow:0 0 0 7px #edbc5022}}
.junior-mode .task-success-overlay{position:absolute;inset:0;z-index:30;background:#252649e8;backdrop-filter:blur(7px);display:grid;place-items:center;border-radius:24px}.junior-mode .task-success-card{max-width:520px;padding:32px;text-align:center;color:#fff1da;background:linear-gradient(135deg,#60467e,#345d76);border:2px solid #c4b0ff77;border-radius:28px}.junior-mode .task-success-card h3{font:700 36px Arial;color:#ffdf8b;margin:12px}.junior-mode .task-success-card p{font:500 22px/1.4 Arial}.junior-mode .task-success-icon{font-size:55px;color:#ffe39d}.junior-mode .task-success-countdown{display:none}
.junior-mode .modal-layer{position:fixed;inset:0;background:#181c3be8;backdrop-filter:blur(10px);display:grid;place-items:center;z-index:100;padding:20px;box-sizing:border-box}.junior-mode .modal-card,.junior-mode .finish-card,.junior-mode .intermission-content{background:radial-gradient(ellipse at 0 0,#bb719b38,transparent 60%),linear-gradient(140deg,#3c3569,#244c61);color:#f5f0ff;padding:28px;border:1px solid #b8c5ec4d;border-radius:26px;max-width:1000px;text-align:center;box-sizing:border-box;max-height:94dvh;overflow:auto}
.junior-mode .modal-card h2,.junior-mode .finish-card h2,.junior-mode .intermission-content h2{color:#fff0d6;font:700 30px/1.2 Arial;margin:12px 0}.junior-mode .modal-card p,.junior-mode .finish-card p{font:500 19px/1.4 Arial;color:#dbdff8}.junior-mode .completion-stats{display:flex;gap:24px;justify-content:center;margin:14px 0}.junior-mode .completion-stat{display:flex;flex-direction:column;gap:6px}.junior-mode .completion-stat strong{font-size:27px;color:#ffde86}.junior-mode .completion-progress{display:none}.junior-mode .finish,.junior-mode .intermission{min-height:100dvh;display:grid;place-items:center;box-sizing:border-box;padding:25px}.junior-mode .primary-btn{background:linear-gradient(120deg,#8acbb9,#9dc8e5);color:#26314e;border:0;border-radius:18px;font:700 19px Arial;min-height:54px;padding:15px 24px}.junior-mode .finish .final-score{display:none}.junior-mode #finishTasks{display:block;font:700 20px/1.4 Arial;color:#abeddd}.junior-mode .screen-start .start-card,.junior-mode .qb-panel{background:linear-gradient(140deg,#413469,#244c62);color:#f8f0ff;border-color:#c0c6fa55}.junior-mode .qb-panel h2,.junior-mode .qb-panel h3{color:#fff0d6}.junior-mode .qb-sub{color:#dfdef5}.junior-mode .qb-layer{background:#1c2348f0}.junior-mode .qb-code-panel strong{color:#8dedd8}
.jm-city{background:radial-gradient(ellipse at 100% 0,#8261b32e,transparent 65%),linear-gradient(140deg,#292e59,#203e54);border:1px solid #d2c2f333;border-radius:28px;padding:22px;color:#f6f1ff;font-family:Arial,'QB Pictures','Segoe UI Emoji',sans-serif;box-sizing:border-box;box-shadow:0 18px 45px #0d16313d}
.jm-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;text-align:left}.jm-eyebrow{font-size:11px;font-weight:800;letter-spacing:.08em;color:#bdc6ed}.jm-heading h2{margin:7px 0;font-size:clamp(25px,3.1vw,38px);line-height:1.1;color:#fff0d4}.jm-heading p{font-size:16px;margin:6px 0;color:#cbd8ee}.jm-total{display:grid;grid-template-columns:auto auto;align-items:center;gap:0 10px;background:linear-gradient(130deg,#f5c77c,#dc9e8a);padding:10px 20px;border-radius:22px;color:#51354a;text-align:center}.jm-total>span{font-size:30px}.jm-total strong{font-size:clamp(28px,3.5vw,43px)}.jm-total small{grid-column:1/-1;font-size:13px;white-space:nowrap}
.jm-evolution{padding:12px 0 10px}.jm-level{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;color:#c3d3e7;margin-bottom:8px}.jm-level b{font-size:16px;color:#ffe09b}.jm-evolution-track{height:7px;border-radius:8px;overflow:hidden;background:#15263d}.jm-evolution-track i{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#b69af1,#7ee0d3,#ffce7a);transition:width .8s}.jm-steps{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;margin-top:8px}.jm-steps span{font:600 11px/1.2 Arial;color:#9cabc9;display:flex;align-items:center;gap:6px}.jm-steps b{background:#364262;border:1px solid #768aa35a;border-radius:50%;min-width:19px;height:19px;display:grid;place-items:center;color:#bbc8e6}.jm-steps .is-reached{color:#d6efea}.jm-steps .is-reached b{background:#799eaa;color:#142b42;border-color:#b3e0d7}
.jm-scene{height:clamp(350px,53vh,620px);width:100%;position:relative;overflow:hidden;border-radius:23px;border:1px solid #a7b6ed4a;background:radial-gradient(ellipse at 20% 4%,#df94b93b,transparent 55%),linear-gradient(150deg,#6e75a8,#829cb6 50%,#548d9f)}.jm-scene[data-city-level="4"],.jm-scene[data-city-level="5"]{background:radial-gradient(ellipse at 80% 0,#d684c45c,transparent 55%),linear-gradient(140deg,#495b9a,#687fba,#3e9c9e)}.jm-city-canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab;position:relative;z-index:1}.jm-city-canvas:active{cursor:grabbing}.jm-scene-loading{position:absolute;inset:0;display:grid;place-items:center;color:#fff6da;font:700 19px Arial;padding:30px;text-align:center}
.jm-scene-caption{position:absolute;left:16px;top:14px;background:#24365bbf;border:1px solid #ccd1ff30;backdrop-filter:blur(7px);border-radius:15px;padding:10px 14px;display:flex;flex-direction:column;gap:3px;z-index:3;pointer-events:none}.jm-scene-caption span{font:700 9px Arial;letter-spacing:.1em;color:#cbdbf3}.jm-scene-caption b{font:700 20px Arial;color:#ffe4a3}.jm-scene-controls{position:absolute;bottom:13px;right:13px;display:flex;gap:6px;z-index:4}.jm-scene-controls button{width:39px;height:38px;border-radius:12px;background:#273960d9;color:#f7e5bf;border:1px solid #c5c9f749;font:700 24px Arial;cursor:pointer}.jm-scene-controls button:hover{background:#5b5888}.jm-scene-hint{position:absolute;left:15px;bottom:16px;color:#f3edff;font:600 12px Arial;text-shadow:0 1px 6px #27345d;z-index:3;pointer-events:none}.jm-scene-notice{position:absolute;top:14px;left:50%;transform:translate(-50%,-15px);max-width:70%;padding:13px 20px;border-radius:18px;border:1px solid #ffe0a7aa;background:linear-gradient(120deg,#745376e8,#3a5e7be8);color:#fff0c0;font:700 17px/1.3 Arial;z-index:5;text-align:center;opacity:0;transition:opacity .3s,transform .3s;pointer-events:none}.jm-scene-notice.is-visible{opacity:1;transform:translate(-50%,0)}
.jm-next{display:flex;justify-content:space-between;gap:12px;align-items:center;background:linear-gradient(100deg,#51446c80,#34657a66);padding:10px 14px;border-radius:14px;margin:10px 0;font:600 14px/1.3 Arial;color:#dfe5f5}.jm-next b{color:#ffe0a1;white-space:nowrap}.jm-buildings{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:6px}.jm-buildings button{appearance:none;border:1px solid #b4c5e530;border-radius:13px;background:linear-gradient(140deg,#5243618a,#2d4b618a);color:#d6dbed;padding:6px 3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;cursor:pointer}.jm-buildings button.is-lit{border-color:var(--house);background:linear-gradient(140deg,#6b50777a,#32647580)}.jm-buildings>button>span{font-size:20px}.jm-buildings b{font:600 10px/1.15 Arial}.jm-buildings small{font:600 10px Arial;color:#ffd888}
.jm-caption{text-align:center;font:500 13px/1.3 Arial;color:#c2d7e5;margin:10px 0}.jm-friends{display:flex;justify-content:center;gap:7px;flex-wrap:wrap}.jm-friends>span{padding:5px 10px;border-radius:14px;background:#52637a66;font-size:12px;color:#d6e8ea}.jm-award{text-align:center;padding:12px;background:linear-gradient(120deg,#8c627d88,#5b608477);border:1px solid #e0bcaa55;border-radius:16px;font:700 18px/1.3 Arial;color:#ffe1a0;margin:10px 0}.jm-rules{display:flex;gap:10px;margin:10px 0}.jm-rules>div{flex:1;display:flex;align-items:center;gap:10px;background:#435b7366;padding:10px;border-radius:14px;font:500 14px/1.3 Arial;text-align:left}.jm-rules b{font-size:28px;color:#ffda8c}
.jm-compact .jm-scene{height:285px}.jm-compact .jm-heading h2{font-size:24px}.jm-compact .jm-total strong{font-size:29px}.jm-compact .jm-total{padding:8px 12px}.jm-compact .jm-steps,.jm-compact .jm-buildings,.jm-compact .jm-rules,.jm-compact .jm-friends{display:none}.jm-compact .jm-level span{font-size:11px}.jm-compact .jm-city{padding:14px}.jm-compact .jm-scene-caption b{font-size:15px}.jm-compact .jm-heading p{font-size:13px}.jm-compact .jm-caption{font-size:12px}
body[data-qb-surface="board"].junior-mode{overflow:auto}body[data-qb-surface="board"].junior-mode #leaderboardView,body[data-qb-surface="board"].junior-mode #introShow,body[data-qb-surface="board"].junior-mode #winnerOverlay,body[data-qb-surface="board"].junior-mode #spaceHint,body[data-qb-surface="board"].junior-mode #soundHint{display:none!important}#juniorMissionDisplay{max-width:1500px;margin:16px auto;padding:0 18px;position:relative;z-index:2}#juniorMissionDisplay[hidden]{display:none!important}.junior-mode .team-rank,.junior-mode .team-trophy{display:none!important}
.qb-difficulty{margin:20px 0;padding:16px;border:1px solid #8291bd66;border-radius:14px;background:#ffffff08}.qb-difficulty label{display:block;font-size:14px;font-weight:700;margin-bottom:10px}.qb-difficulty select{font:700 17px Arial;padding:12px;width:100%;border:1px solid #90b8a9;border-radius:10px;background:#263650;color:#f7fffc;cursor:pointer}.qb-difficulty p{font:400 13px/1.5 Arial;color:#b7cdcc;margin:10px 0 0}.junior-mode .qb-difficulty{background:#3d436544;border-color:#9e9dce55}.junior-mode .qb-difficulty p{color:#c6d4ec}.junior-mode .container>.grid .card{background:linear-gradient(135deg,#383861,#28465b);color:#f5efff;border-color:#98aac84d}.junior-mode .container h1,.junior-mode .container h2{color:#f7edff}.junior-mode .container h1 span{color:#c2adf7}.junior-mode .team-row{background:#55648544;color:#f4efff}.junior-mode .team-number{color:#f5f1ff}.junior-mode .team-score,.junior-mode .big-timer{color:#93e6d3}.junior-mode .phase-idle{color:#c8d9ef;background:#53607e55;border-color:#afbfda44}.junior-mode .status.ok{color:#a8e8d6}.junior-mode .btn-intro{color:#c0f1e0;background:#496b7c66;border-color:#b3d2c055}.junior-mode .btn-intro-skip{color:#ffe1a2;background:#866b6544;border-color:#dfcc9f55}.junior-mode .btn-reset{color:#ffc5bd;background:#84607644;border-color:#e5c1b855}
.jg-guide button,.jm-city,.jm-award{font-family:Arial,'QB Pictures','Segoe UI Emoji',sans-serif}
@media(max-width:1100px){.jm-buildings{grid-template-columns:repeat(6,1fr)}.jm-steps span{font-size:10px}.jm-level span{font-size:12px}}
@media(max-width:900px){.junior-mode .screen-game{padding:10px;gap:7px}.jg-shell{grid-template-columns:190px minmax(0,1fr);gap:10px}.jg-guide{padding:15px}.jg-play{padding:16px;gap:12px}.jg-options{gap:10px}.jg-guide p{font-size:15px}.jg-guide h3{font-size:19px}.jg-buddy{height:50px;font-size:36px}.jm-heading h2{font-size:26px}.jm-steps{gap:4px}.jm-steps b{display:none}.jm-city{padding:17px}}
@media(max-height:740px) and (min-width:761px){.jg-shell{min-height:375px}.jg-guide{gap:9px;padding:15px}.jg-buddy{height:44px;width:64px;font-size:34px}.jg-example{min-height:36px;padding:9px}.jg-card{min-height:90px}.jg-target{min-height:58px;padding:10px}.jg-target .jg-symbol{font-size:44px}.jg-play{gap:10px}.jg-content{gap:10px}.jg-guide p{font-size:15px}.jg-guide h3{font-size:19px}.jg-path{max-height:244px;width:auto;height:244px}.jg-slot{min-height:55px}.jg-slot .jg-symbol{font-size:33px}.jg-card .jg-symbol{font-size:43px}.jg-memory .jg-card{min-height:85px;height:85px}.jg-memory .jg-symbol{font-size:40px}.jg-sort-item{min-height:85px}.jg-sort-item .jg-symbol{font-size:72px}.jg-collect-field{height:235px;min-height:220px}.jg-mix-order{min-height:70px}.jg-mix-order .jg-symbol{font-size:45px}.jg-mix-cup{min-height:48px}.jg-mix-cup .jg-symbol{font-size:36px}}
@media(max-width:760px){.junior-mode .screen-game{height:auto;min-height:100dvh}.junior-mode .hud{padding:10px;gap:8px}.junior-mode .hud-left{gap:8px}.junior-mode .hud-right{gap:12px}.junior-mode .hud .progress-box{display:none}.junior-mode .hud h2{font-size:18px}.junior-mode #timerText{font-size:18px}.jg-shell{grid-template-columns:1fr;height:auto;min-height:0}.jg-guide{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;padding:14px;position:sticky;top:8px;z-index:15;align-self:start;box-shadow:0 5px 18px #10162d44}.jg-guide h3{font-size:18px}.jg-guide>p{grid-column:2}.jg-buddy{grid-row:1/3;width:54px;height:54px;font-size:32px}.jg-example{grid-column:1/-1;padding:5px;min-height:36px}.jg-guide .jg-soft{display:none}.jg-guide-actions{grid-column:1/-1;display:flex;gap:8px}.jg-guide-actions button{min-height:42px;font-size:13px}.jg-play{min-height:350px;overflow:visible;padding:16px}.jg-options{gap:8px}.jg-card{min-height:90px;padding:10px 6px;font-size:15px}.jg-card .jg-symbol{font-size:37px}.jg-options.five .jg-card{min-height:75px;padding:8px 2px}.jg-options.five .jg-symbol{font-size:31px}.jg-heading h3{font-size:22px}.jg-prompt{font-size:16px}.jg-memory{gap:8px}.jg-memory .jg-card{height:78px;min-height:78px}.jg-memory .jg-symbol{font-size:34px}.jg-stage{font-size:12px;gap:5px}.jg-path{max-width:340px}.jg-collect-field{height:255px}.jg-collect-item{width:42px;height:42px}.jg-collect-item .jg-symbol{font-size:29px}.jg-collect-actor{font-size:37px}.junior-mode .game-footer{flex-wrap:wrap;font-size:11px;gap:6px}.jm-city{padding:14px}.jm-heading{gap:10px}.jm-heading h2{font-size:23px}.jm-heading p{font-size:13px}.jm-eyebrow{font-size:9px}.jm-total{padding:9px 12px}.jm-total>span{font-size:22px}.jm-total strong{font-size:28px}.jm-total small{font-size:11px}.jm-level{align-items:flex-start}.jm-level b{font-size:13px}.jm-level span{display:none}.jm-steps{gap:3px}.jm-steps span{font-size:8px;word-break:normal;text-align:center}.jm-scene{height:330px}.jm-scene-caption{top:10px;left:10px;padding:7px 10px}.jm-scene-caption b{font-size:16px}.jm-scene-hint{bottom:58px;font-size:10px;left:10px}.jm-scene-controls{bottom:10px;right:10px}.jm-scene-controls button{width:35px;height:35px}.jm-scene-notice{max-width:88%;width:88%;box-sizing:border-box;top:65px;font-size:13px;padding:10px}.jm-buildings{grid-template-columns:repeat(4,1fr)}.jm-next{font-size:12px;padding:9px}.jm-next-count{font-size:12px}.jm-award{font-size:15px}.jm-rules{flex-direction:column;gap:6px}.jm-rules>div{padding:8px}.jm-compact .jm-scene{height:250px}.jm-compact .jm-title{font-size:20px}#juniorMissionDisplay{padding:0 9px;margin:10px auto}.junior-mode .modal-layer{padding:10px}.junior-mode .modal-card,.junior-mode .finish-card{padding:16px}}
@media(prefers-reduced-motion:reduce){.jg-hinted{animation:none}.jg-card{transition:none}.jm-scene-notice{transition:none}}
@media(max-height:740px) and (min-width:761px){.jg-find-grid .jg-find-card{height:61px;min-height:61px;padding:5px}.jg-find-card .jg-symbol{font-size:36px}.jg-find-grid{gap:8px}}
.junior-mode .round-complete-card,.junior-mode .finish-card{width:min(1050px,96vw)}
.jm-scene.is-upgrading{box-shadow:0 0 30px #d7a2d34d,inset 0 0 35px #ffdb8c44;border-color:#ffe1a0b0;transition:box-shadow .5s,border-color .5s}
.junior-mode .intermission-content{width:min(1050px,96vw);padding:20px}.junior-mode .intermission-content>.eyebrow,.junior-mode .intermission-content>.result-badge,.junior-mode .intermission-content>.round-score-card{display:none}.junior-mode .intermission-content>p{margin:7px 0 12px}.junior-mode .next-round{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:9px 0 14px;padding:12px 18px;border-radius:17px;background:#69759a3d}.junior-mode .next-round>div{display:flex;gap:12px;align-items:center}.junior-mode #breakCountdown{color:#ffe0a0;font-size:27px}
/* Игровая поверхность не выделяется. Явное перетаскивание деталей общей сложности сохраняется. */
html,body,body *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}img{-webkit-user-drag:none}input,textarea{caret-color:auto}
.jg-letter,.jg-buddy{font-family:Arial,'QB Pictures','Segoe UI Emoji',sans-serif}.jg-letter{font-weight:800}.jg-content .jg-letter{font-size:clamp(32px,5vw,55px)}
.jg-action,.jg-secondary,.jg-arrow,.jg-piece{appearance:none;border:1px solid #d9c7ff66;border-bottom:4px solid #252d51;border-radius:14px;min-height:45px;padding:10px 20px;background:linear-gradient(120deg,#65558f,#427d8c);color:#fff6df;font:700 17px/1.2 Arial;cursor:pointer;box-sizing:border-box}.jg-action{background:linear-gradient(120deg,#efd080,#e3a68d);color:#3c304c;border-bottom-color:#987559;align-self:center}.jg-secondary{font-size:14px;padding:8px 14px}.jg-arrow{min-width:55px;font-size:25px;padding:4px 15px}.jg-action:disabled,.jg-secondary:disabled{opacity:.4;cursor:default}.jg-control-row{display:flex;justify-content:center;align-items:center;gap:9px;flex-wrap:wrap}.jg-card.is-selected,.jg-piece.is-selected,.jg-secondary.is-selected,.jg-cable-device.is-selected{outline:3px solid #ffd987;outline-offset:2px}.jg-small-target{min-height:55px;padding:9px}.jg-small-target .jg-symbol{font-size:43px}.jg-recipe{gap:18px;min-height:65px}.jg-recipe .jg-symbol{font-size:45px}.jg-recipe b{font-size:24px}.is-filled{border-color:#8ee6ce!important;background-color:#427e77!important;color:#e9fff3!important}
.jg-micro{border:5px solid #9292bf;border-radius:50%;background:radial-gradient(circle,#628ba2,#385c76 70%);width:210px;height:180px;align-self:center;display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:15px;box-sizing:border-box;box-shadow:inset 0 0 30px #0f244777}.jg-particle{appearance:none;background:none;border:0;color:#fff;transition:transform .35s;min-width:0;padding:0}.jg-particle .jg-symbol{font-size:39px}.jg-particle.jg-done{opacity:.4}
.jg-molecule,.jg-trace{position:relative;align-self:center;width:260px;height:240px;border:1px solid #c0d0f44d;border-radius:24px;background:radial-gradient(circle at 20% 10%,#8b61a94d,#244c6f66)}.jg-molecule svg,.jg-trace svg{position:absolute;width:100%;height:100%;inset:0}.jg-atom,.jg-trace-point{position:absolute;transform:translate(-50%,-50%);border:2px solid #f1ecffb3;border-bottom:4px solid #243450;border-radius:50%;height:42px;width:42px;font:700 20px Arial;color:#25354b;cursor:pointer}.jg-atom.is-selected{outline:5px solid #f8df9e}.jg-trace-point{width:30px;height:30px;background:#56658b;color:#d9e2f6;font-size:14px;border:2px solid #a6b4d780}.jg-trace-point.is-next{background:#f1d079;color:#332e4f;box-shadow:0 0 0 7px #ffdc7926}.jg-trace-point:disabled{pointer-events:none}.jg-trace-point.is-filled{opacity:.25}
.jg-board{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;width:260px;aspect-ratio:1;align-self:center}.jg-board-cell{appearance:none;border:1px solid #9dbdc146;background:#32656c;border-radius:9px;display:grid;place-items:center;font:28px 'QB Pictures',Arial,sans-serif;color:#fff;min-width:0;padding:0}.jg-program-board{width:230px}.jg-program-board .is-road{background:#93846b;color:#fff2cf}.jg-program-board div{font-size:24px}.jg-command-list{min-height:37px;box-sizing:border-box;padding:7px;border-radius:11px;border:1px dashed #dfbc7a88;color:#ffdc8f;text-align:center;font:700 21px/1 Arial;letter-spacing:3px}.jg-chess{gap:2px;border:6px solid #8c7b91;border-radius:16px}.jg-chess .jg-board-cell{background:#d8cbb6;color:#263956;border:2px solid transparent;border-radius:5px}.jg-chess .dark{background:#6b718a;color:#f7e8c3}.jg-chess .is-legal{border:3px solid #b1ffe4;box-shadow:inset 0 0 14px #a4edd766}.jg-chess .is-current{background:#c299d0}.jg-shield{align-self:center;width:min(100%,490px);display:grid;gap:20px;padding:15px}.jg-shield-row{display:flex;align-items:center;gap:0;color:#ddd2f5}.jg-shield-row>span{font:48px Arial}.jg-shield-row i{flex:1;height:4px;background:#70839d}.jg-shield-row.is-danger i{background:#ed8689;box-shadow:0 0 9px #ff6d79}.jg-shield-row.is-safe i{background:#8cddc0}.jg-shield-place{appearance:none;border:2px dashed #d4c3f4;border-radius:13px;background:#4c4d7a;width:61px;height:58px;color:#f3d896;font:32px Arial}.jg-shield-row:not(.is-danger):not(.is-safe){opacity:.4}
.jg-robot{width:245px;height:200px;position:relative;align-self:center;background:linear-gradient(120deg,#669ea6,#5b7ab0);border:3px solid #a4d6df;border-radius:38px 38px 26px 26px;box-shadow:0 6px 0 #233e64}.jg-robot-head{position:absolute;top:8px;left:30px;right:30px;background:#273e5b;color:#a7f6e5;border-radius:20px;height:43px;display:grid;place-items:center;font:700 25px Arial;letter-spacing:7px}.jg-robot-slot{appearance:none;position:absolute;border:2px dashed #e1e1f6;background:#29456388;border-radius:14px;color:#fff;width:76px;height:57px}.jg-robot-slot .jg-symbol{font-size:34px;opacity:.35}.jg-robot-slot.is-filled .jg-symbol{opacity:1}.slot-0{left:29px;top:64px}.slot-1{right:29px;top:64px}.slot-2{left:29px;bottom:10px}.slot-3{right:29px;bottom:10px}
.jg-photo-scene{position:relative;height:230px;border:2px solid #b2c7ef70;border-radius:24px;overflow:hidden;background:radial-gradient(ellipse at 20% 10%,#ffd58b55,transparent 40%),linear-gradient(#657aab 0 60%,#559e8a 60%);}.jg-photo-frame{position:absolute;border:4px dashed #fff0b6;border-radius:17px;left:30%;top:15%;width:40%;height:70%;box-sizing:border-box}.jg-photo-hero{position:absolute;top:35%;font:65px 'QB Pictures','Segoe UI Emoji',sans-serif;transform:translateX(-50%)}.jg-photo-scene.is-flash{box-shadow:inset 0 0 100px #fffbc5}.jg-poster-workspace{display:flex;align-items:center;justify-content:center;gap:20px}.jg-mini-poster,.jg-poster{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;padding:10px;background:linear-gradient(135deg,#9a75b2,#588faf);border:2px solid #b6c6ee66;border-radius:19px}.jg-mini-poster{width:140px;box-sizing:border-box}.jg-mini-poster>span{display:grid;place-items:center;min-height:57px}.jg-mini-poster .jg-symbol{font-size:38px}.jg-poster{width:235px;height:205px;box-sizing:border-box}.jg-poster-slot{appearance:none;background:#344f7c88;border:2px dashed #c7c9f388;border-radius:15px;color:#e5d2fc;font:35px Arial}.jg-poster-slot .jg-symbol{font-size:46px}.jg-sound-option{display:grid;gap:8px;min-width:0}.jg-sound-option .jg-card{width:100%}
.jg-balance{height:180px;position:relative;width:min(100%,450px);align-self:center;padding-top:10px;box-sizing:border-box}.jg-balance-beam{position:absolute;left:10%;right:10%;height:8px;top:35px;border-radius:6px;background:#c5adcc;transition:transform .3s}.jg-pan{position:absolute;top:8px;width:100px;min-height:84px;border:3px solid #b1e1e3;border-top:0;border-radius:0 0 35px 35px;background:#445f87;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;color:#f9e5b5}.jg-pan b{font-size:35px}.jg-pan small{font-size:13px;letter-spacing:2px}.jg-pan-left{left:-15px}.jg-pan-right{right:-15px}.jg-balance-foot{position:absolute;top:35px;left:50%;transform:translateX(-50%);font:100px Arial;color:#8777a5}.jg-numberline{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;padding:24px 0}.jg-stone{appearance:none;width:54px;height:58px;background:linear-gradient(140deg,#779bb5,#4b648b);border:2px solid #b5d6ee88;border-bottom:7px solid #344762;border-radius:21px;color:#fff2da;font:700 24px Arial;position:relative}.jg-stone small{position:absolute;left:50%;transform:translateX(-50%);top:-30px;font:28px 'QB Pictures',sans-serif}.jg-stone.is-current{background:#88a471;border-color:#c7ecc5}.jg-tangram{position:relative;align-self:center;width:270px;height:210px;background:#36547966;border:2px dashed #bac1e877;border-radius:22px}.jg-tangram-slot{appearance:none;position:absolute;width:72px;height:63px;transform:translate(-50%,-50%);background:none;border:0;display:grid;place-items:center;cursor:pointer}.jg-tangram-slot .jg-symbol{font-size:63px;filter:saturate(.15);opacity:.35}.jg-tangram-slot.is-filled .jg-symbol{filter:none;opacity:1}.jg-tangram-slot.is-filled{background:none!important;border:0!important}.jg-piece{padding:5px 10px;min-width:48px}.jg-piece .jg-symbol{font-size:31px}
.jg-alphabet-guide{min-height:70px;gap:15px}.jg-alphabet-guide .jg-letter{font-size:38px}.jg-train{display:flex;justify-content:center;gap:9px;position:relative}.jg-train span{border:2px solid #c4b4ed88;border-bottom:8px solid #263b60;border-radius:13px;background:#655786;width:62px;height:62px;display:grid;place-items:center;color:#ffe1a6;font:800 33px Arial}.jg-case-chart{gap:8px;min-height:75px}.jg-case-pair{padding:5px 8px;border-radius:9px;background:#85779d44;font:700 24px Arial;white-space:nowrap}.jg-case-pair b{color:#8eefd2}.jg-case-chart+.jg-small-target .jg-letter{font-size:44px}
.jg-blueprint-wrap{display:flex;align-items:center;justify-content:center;gap:20px}.jg-blueprint-mini,.jg-blueprint{display:grid;grid-template-columns:repeat(5,1fr);gap:3px;background:#23385b;border:2px solid #8894c5;border-radius:12px;padding:7px}.jg-blueprint-mini{width:125px;height:100px;box-sizing:border-box}.jg-blueprint-mini i{border-radius:2px}.jg-blueprint{width:265px;height:210px;box-sizing:border-box}.jg-pixel{appearance:none;background:#576785;border:1px solid #b7c2e366;border-radius:5px;min-width:0}.jg-pixel.is-empty{background:#293758;border-color:#293758;pointer-events:none}.jg-crane{height:230px;position:relative;border-radius:23px;border:2px solid #b2bce45c;background:linear-gradient(#596a9d,#3b6478);overflow:hidden}.jg-crane-rail{position:absolute;left:8%;right:8%;top:12px;height:8px;background:#eccf8e;border-radius:5px}.jg-crane-load{position:absolute;left:50%;top:48px;transform:translateX(-50%);font:58px Arial;color:#f1c47c;transition:left .2s}.jg-crane-load:before{content:'';position:absolute;left:50%;bottom:75%;width:3px;height:38px;background:#cccee2}.jg-crane-goal{position:absolute;bottom:8px;width:70px;height:45px;border:3px dashed #fbe09e;border-radius:10px;transform:translateX(-50%);background:#e7cf7922;transition:left .2s}.jg-crane-built{position:absolute;inset:0;pointer-events:none}.jg-crane-built i{position:absolute;width:62px;height:25px;border:2px solid #a5e6d5;border-radius:7px;background:#6eafac;transform:translateX(-50%)}.jg-workpiece{appearance:none;align-self:center;width:235px;height:130px;background:linear-gradient(120deg,#7d739f,#4f7c96);border:2px solid #bbd2e9;border-radius:25px;position:relative;color:#fff}.jg-workpiece>.jg-symbol{font-size:85px}.jg-work-mark{position:absolute;right:30px;bottom:27px;background:#edcb7e;color:#443255;border-radius:50%;width:36px;height:36px;font:700 30px Arial}
.jg-keyboard{background:linear-gradient(130deg,#665780,#385a76);padding:13px;border:2px solid #a7bce875;border-bottom:8px solid #1e3452;border-radius:22px;display:grid;gap:6px;width:100%;box-sizing:border-box}.jg-key-row{display:flex;gap:5px;justify-content:center}.jg-key{appearance:none;border:1px solid #e3d6f055;border-bottom:4px solid #2c3a61;border-radius:7px;background:#7692ac;color:#fff7e4;font:700 clamp(14px,2vw,23px) Arial;flex:1;min-width:0;max-width:58px;height:43px;padding:3px}.jg-key-row:nth-child(2) .jg-key{background:#85749f}.jg-key.space{max-width:220px;flex:4;font-size:16px}.jg-key-target{border:2px solid #d1c5eb;border-bottom:5px solid #263d5c;border-radius:10px;background:#63719b;padding:5px 22px;font:800 35px Arial}.jg-mouse-pad{display:grid;place-items:center;min-height:255px;border:2px dashed #afbbdf70;background:radial-gradient(ellipse,#6d609c55,transparent 75%);border-radius:24px;touch-action:none;cursor:pointer}.jg-mouse-drawing{position:relative;display:flex;flex-wrap:wrap;width:185px;height:230px;box-sizing:border-box;background:#8394b6;border:4px solid #ccd1ea;border-radius:72px 72px 55px 55px;overflow:hidden;box-shadow:0 10px 0 #263957}.jg-mouse-half{width:50%;height:105px;display:grid;place-items:center;box-sizing:border-box;border:1px solid #647a9c;color:#d7e0f4;font:700 15px Arial}.jg-mouse-half.is-lit{background:linear-gradient(#f5da91,#dab77b);color:#423b56;box-shadow:inset 0 0 22px #ffefa9}.jg-mouse-drawing>i{position:absolute;top:22px;left:calc(50% - 8px);width:16px;height:38px;background:#3a4569;border-radius:8px;pointer-events:none}.jg-mouse-palm{width:100%;border-top:3px solid #607499;pointer-events:none}.jg-touch-mouse{display:none}.jg-cables{display:flex;align-items:center;justify-content:space-around;gap:16px}.jg-cable-devices,.jg-cable-ports{display:grid;gap:14px}.jg-cable-device{appearance:none;display:flex;align-items:center;justify-content:space-around;gap:15px;background:#4f6e8b;border:2px solid #a8c7dc88;border-radius:15px;width:150px;height:62px;color:#fff}.jg-cable-device .jg-symbol{font-size:38px}.jg-cable-device small{font:30px Arial}.jg-cable-screen{font:90px 'QB Pictures',sans-serif}.jg-port{appearance:none;border:4px solid #c3cae8;border-radius:12px;height:63px;width:80px;background:#46557d;font:32px Arial;color:#f1d07b}.port-1{color:#f4d174}.port-2{color:#7cbcf0}
.jg-garden-pot{appearance:none;position:relative;align-self:center;border:0;border-radius:22px;background:radial-gradient(ellipse at bottom,#63a68b44,transparent 80%);width:250px;height:170px;display:grid;place-items:center;padding-bottom:20px;color:#fff}.jg-garden-pot>.jg-symbol{font-size:105px;position:relative;z-index:2}.jg-pot-base{position:absolute;bottom:0;left:calc(50% - 45px);width:90px;height:55px;background:linear-gradient(90deg,#ca997a,#e6b184);clip-path:polygon(0 0,100% 0,82% 100%,18% 100%);border-radius:9px}.jg-pollination{background:radial-gradient(ellipse at 70% 20%,#edcc7855,transparent 50%),linear-gradient(120deg,#549477,#4b7c8d)}.jg-pollination .is-pollinated{opacity:.35;box-shadow:0 0 12px #eedd84;background:#87b578}.jg-bee-home{appearance:none;position:absolute;top:50%;left:12%;transform:translate(-50%,-50%);border:3px solid #efcd7f;border-radius:19px;width:50px;height:60px;background:#9b8053;color:#fff4bd;font:34px Arial}.jg-habitat{min-height:145px}.jg-habitat .jg-symbol{font-size:65px}
.jg-cube-workspace{display:flex;justify-content:center;align-items:center;gap:30px;padding:10px}.jg-cube-window{perspective:650px;width:200px;height:200px;display:grid;place-items:center;border:1px solid #b6c3e755;border-radius:23px;background:radial-gradient(circle,#7c6aa649,transparent 70%)}.jg-cube-reference{width:140px;height:140px}.jg-cube{width:95px;height:95px;position:relative;transform-style:preserve-3d;transition:transform .35s}.jg-cube-face{position:absolute;width:95px;height:95px;display:grid;place-items:center;border:2px solid #f5e3c788;box-sizing:border-box;backface-visibility:hidden;font:800 50px Arial;color:#fff4d5}.face-0{transform:translateZ(47.5px);background:#a76a90}.face-1{transform:rotateY(90deg) translateZ(47.5px);background:#438e9b}.face-2{transform:rotateY(180deg) translateZ(47.5px);background:#aa8d50}.face-3{transform:rotateY(270deg) translateZ(47.5px);background:#7b6ca6}.face-top{transform:rotateX(90deg) translateZ(47.5px);background:#5ca58b;font-size:40px}.jg-cube-reference .jg-cube{zoom:.65}.jg-portals{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;align-items:center;min-height:210px;padding:16px;border-radius:24px;background:radial-gradient(ellipse at 50% 0,#9b72c366,transparent 70%),linear-gradient(130deg,#3b5084,#3c7480);transition:background .4s}.jg-portals[data-world="1"]{background:linear-gradient(120deg,#6b6598,#598d79)}.jg-portals[data-world="2"]{background:linear-gradient(120deg,#96647e,#796c9d)}.jg-portals[data-world="3"]{background:linear-gradient(120deg,#5d73a8,#4a9596)}.jg-portal{appearance:none;min-width:0;border:5px solid #c7a5ef;border-radius:50%;height:150px;background:radial-gradient(ellipse,#a8bdd766,#2b446b);box-shadow:0 0 15px #caa5ff44,inset 0 0 15px #d7c3ff55;color:#fff}.jg-portal .jg-symbol{font-size:48px}
.jg-network{display:grid;grid-template-columns:50px minmax(0,280px) 50px;justify-content:center;align-items:center;gap:8px}.jg-network-source,.jg-network-goal{font:36px 'QB Pictures',sans-serif;text-align:center}.jg-network-board{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;aspect-ratio:4/3}.jg-wire{appearance:none;border:2px solid #b7c5ea80;border-radius:12px;background:#455784;min-width:0;padding:0;aspect-ratio:1}.jg-wire svg{display:block;width:100%;height:100%}.jg-wire:disabled{opacity:.18;background:#263d5b}.jg-wire.is-connected{background:#396f71;border-color:#9cefd4}.jg-code-chart{gap:22px;min-height:65px}.jg-code-pair{display:flex;align-items:center;gap:8px}.jg-code-pair .jg-symbol{font-size:31px}.jg-code-slot{border:2px solid transparent;padding:5px;border-radius:12px}.jg-code-slot.is-next{border-color:#ffd482}.jg-glitch-wrap{display:grid;grid-template-columns:1fr 1fr;gap:16px;width:min(100%,510px);align-self:center}.jg-glitch-screen{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;border:4px solid #7e83aa;border-bottom-width:12px;border-radius:17px;padding:10px;background:#25455b}.jg-glitch-screen>span,.jg-glitch-cell{min-height:59px;display:grid;place-items:center;background:#52758855;border-radius:10px}.jg-glitch-screen .jg-symbol{font-size:37px}.jg-glitch-cell{appearance:none;border:1px solid #b9d6e344;color:#fff;padding:0;min-width:0}
.jg-cartoon-image{align-self:center;width:min(100%,510px);height:215px;object-fit:contain;border-radius:21px;background:linear-gradient(135deg,#70688f,#507d91);border:1px solid #c9c9e844}.jg-cartoon-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.jg-cartoon-answer{display:flex;min-width:0;border:1px solid #c4b6e470;background:linear-gradient(120deg,#68568b,#396b80);border-radius:15px;overflow:hidden}.jg-cartoon-title{appearance:none;flex:1;min-width:0;min-height:67px;border:0;background:none;color:#fff4db;font:700 16px/1.2 Arial;padding:10px 8px;overflow-wrap:anywhere}.jg-speak-title{appearance:none;border:0;border-left:1px solid #c4b6e433;background:#24375b44;color:#fff;width:36px;font:19px 'QB Pictures',sans-serif}.jg-film-frame{height:90px;display:grid;place-items:center}.jg-film-frame .jg-symbol{font-size:78px}.jg-animation-tabs{display:flex;gap:10px;justify-content:center}.jg-animation-tabs button{flex:1;max-width:160px}.jg-animation-stage{position:relative;height:220px;border:2px solid #b6c8e666;border-radius:23px;background:linear-gradient(#587eaa 0 70%,#659b8b 70%);overflow:hidden;touch-action:none;cursor:crosshair}.jg-anim-hero{position:absolute;transform:translate(-50%,-50%);font:63px 'QB Pictures',sans-serif;pointer-events:none}.jg-anim-ghost{position:absolute;top:55%;transform:translate(-50%,-50%);border:2px dashed #f8dfa8aa;border-radius:50%;width:60px;height:60px;display:grid;place-items:center;color:#ffe5ad;font:700 20px Arial;pointer-events:none}.ghost-0{left:20%}.ghost-1{left:50%}.ghost-2{left:80%}
@media(max-height:740px) and (min-width:761px){.jg-play{padding:15px;gap:9px;overflow:auto;justify-content:flex-start}.jg-heading h3{font-size:24px}.jg-content{gap:9px;margin:auto 0}.jg-feedback{font-size:16px;min-height:23px}.jg-molecule,.jg-trace{width:225px;height:207px}.jg-board{width:230px}.jg-program-board{width:195px}.jg-photo-scene,.jg-crane{height:190px}.jg-micro{width:190px;height:150px}.jg-poster{height:165px;width:200px}.jg-mini-poster{width:120px}.jg-mini-poster>span{min-height:43px}.jg-robot{height:168px;width:230px}.jg-robot-head{height:32px}.jg-robot-slot{height:45px}.jg-robot-slot.slot-0,.jg-robot-slot.slot-1{top:52px}.jg-robot-slot .jg-symbol{font-size:30px}.jg-cube-window{height:172px}.jg-blueprint{width:230px;height:180px}.jg-mouse-pad{min-height:205px}.jg-mouse-drawing{height:185px;width:155px}.jg-mouse-half{height:90px}.jg-animation-stage{height:190px}.jg-cartoon-image{height:185px}.jg-keyboard{padding:8px;gap:4px}.jg-key{height:35px}.jg-garden-pot{height:140px}.jg-balance{height:140px}.jg-portals{min-height:170px;padding:10px}.jg-portal{height:125px}.jg-alphabet-guide{min-height:54px}.jg-train span{height:47px}.jg-small-target{min-height:48px}.jg-network{grid-template-columns:40px minmax(0,245px) 40px}.jg-shield{gap:12px;padding:8px}.jg-shield-place{height:50px}.jg-glitch-screen>span,.jg-glitch-cell{min-height:49px}}
@media(max-width:760px){.jg-play{overflow:visible}.jg-control-row{gap:7px}.jg-action{font-size:16px}.jg-arrow{min-width:47px}.jg-molecule,.jg-trace{width:245px;height:225px}.jg-command-list{font-size:18px;letter-spacing:1px}.jg-poster-workspace,.jg-blueprint-wrap{gap:9px}.jg-mini-poster{width:91px;padding:5px;gap:4px}.jg-mini-poster .jg-symbol{font-size:27px}.jg-mini-poster>span{min-height:43px}.jg-poster{width:180px;height:170px;padding:6px}.jg-poster-slot .jg-symbol{font-size:35px}.jg-blueprint-mini{width:85px;height:72px;padding:4px;gap:2px}.jg-blueprint{width:190px;height:155px;padding:5px;gap:3px}.jg-crane{height:210px}.jg-train{gap:5px}.jg-train span{width:46px;height:52px;font-size:29px}.jg-alphabet-guide{gap:9px}.jg-alphabet-guide .jg-letter{font-size:27px}.jg-case-chart{gap:5px}.jg-case-pair{font-size:21px}.jg-keyboard{padding:7px;gap:5px;border-radius:13px}.jg-key-row{gap:3px}.jg-key{height:35px;font-size:14px;border-radius:5px;padding:0}.jg-key.space{font-size:12px}.jg-cable-device{width:105px;gap:5px;height:55px}.jg-cable-device .jg-symbol{font-size:27px}.jg-cable-device small{font-size:24px}.jg-cable-screen{font-size:50px}.jg-port{width:55px;height:55px}.jg-cables{gap:9px}.jg-cube-workspace{gap:10px;padding:5px}.jg-cube-reference{width:103px;height:135px}.jg-cube-window:not(.jg-cube-reference){width:153px;height:170px}.jg-cube{zoom:.8}.jg-portals{gap:7px;padding:10px;min-height:165px}.jg-portal{border-width:3px;height:120px}.jg-portal .jg-symbol{font-size:33px}.jg-network{grid-template-columns:27px minmax(0,240px) 27px;gap:4px}.jg-network-source,.jg-network-goal{font-size:25px}.jg-code-chart{gap:11px}.jg-code-pair{gap:4px}.jg-code-pair .jg-symbol{font-size:23px}.jg-glitch-wrap{gap:8px}.jg-glitch-screen{padding:5px;gap:4px;border-width:3px;border-bottom-width:8px}.jg-glitch-screen .jg-symbol{font-size:25px}.jg-glitch-screen>span,.jg-glitch-cell{min-height:42px}.jg-cartoon-image{height:195px}.jg-cartoon-options{grid-template-columns:1fr;gap:7px}.jg-cartoon-title{min-height:49px;text-align:left;padding-left:13px;font-size:16px}.jg-speak-title{width:45px}.jg-animation-tabs{gap:6px}.jg-animation-tabs button{font-size:12px;padding:8px}.jg-shield{padding:7px;width:100%;box-sizing:border-box}.jg-stone{width:44px;height:54px}.jg-habitat .jg-symbol{font-size:45px}.jg-habitat small{font-size:12px}}
@media(pointer:coarse){.jg-touch-mouse{display:block;appearance:none;border:1px solid #afbde366;border-radius:14px;padding:11px;background:#4e6587;color:#fff5df;font:700 15px Arial}}
.jm-fullscreen{appearance:none;position:absolute;top:14px;right:14px;z-index:5;display:flex;align-items:center;gap:7px;border:1px solid #d6d7f477;border-radius:13px;background:#2b3c64dd;color:#fff0d0;min-height:42px;padding:7px 12px;font:700 26px Arial;cursor:pointer}.jm-fullscreen span{font-size:13px}.jm-fullscreen-exit{display:none}
body.jm-city-fullscreen{overflow:hidden!important}.jm-scene.jm-immersive,.jm-scene:fullscreen{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;min-height:0!important;border:0!important;border-radius:0!important;margin:0!important;z-index:2147483646!important;background:radial-gradient(ellipse at 20% 0,#d69dc552,transparent 55%),linear-gradient(145deg,#536795,#809db8,#538d9b)}
.jm-immersive>.jm-scene-caption,.jm-immersive>.jm-scene-notice,.jm-immersive>.jm-scene-controls,.jm-immersive>.jm-scene-hint,.jm-immersive>.jm-fullscreen{display:none!important}.jm-immersive>.jm-fullscreen-exit{display:block;position:absolute;right:16px;top:16px;z-index:6;appearance:none;width:48px;height:48px;border:1px solid #ffffff77;border-radius:50%;background:#22385b80;color:#fff4d5;font:33px Arial;cursor:pointer;opacity:0;transition:opacity .2s}.jm-immersive:hover>.jm-fullscreen-exit,.jm-immersive:focus-within>.jm-fullscreen-exit{opacity:.8}.jm-immersive>.jm-fullscreen-exit:focus-visible{opacity:1}
@media(pointer:coarse){.jm-immersive>.jm-fullscreen-exit{opacity:.8}}@media(max-width:760px){.jm-fullscreen{right:10px;top:10px;min-height:35px;padding:3px 9px;font-size:23px}.jm-fullscreen span{font-size:11px}}
/* Отменяем абсолютное размещение из styles.css только для детского режима. */
.junior-mode .hud,.junior-mode .task-track,.junior-mode .game-footer{position:relative;inset:auto;width:100%}.junior-mode .game-stage{inset:auto}.junior-mode .mini-game-host{position:relative;inset:auto}.junior-mode .jg-shell{min-height:0}.junior-mode .jg-guide{min-height:0}.junior-mode .jg-play{min-height:0}
.jg-cartoon-picture{align-self:center;max-width:100%;position:relative}.jg-cartoon-picture .jg-cartoon-image{display:block}.jg-cartoon-missing{display:grid;place-items:center;text-align:center;box-sizing:border-box;padding:25px;width:450px;max-width:100%;height:185px;border:2px dashed #d4c3f488;border-radius:20px;color:#efe3bd;font:600 17px/1.4 Arial;overflow-wrap:anywhere}
@media(max-height:740px) and (min-width:761px){.jg-guide{gap:8px;padding:14px}.jg-guide .jg-buddy{height:36px;width:58px;font-size:29px}.jg-guide h3{font-size:18px}.jg-guide p{font-size:14px;line-height:1.32}.jg-guide .jg-soft{display:none}.jg-guide .jg-example{min-height:38px;padding:6px}.jg-guide .jg-example .jg-symbol{font-size:27px}.jg-guide-actions{gap:7px}.jg-guide-actions button{font-size:13px;min-height:39px;padding:8px}.jg-guide{overflow:auto}.jg-play{overflow:auto}}
@media(min-height:741px) and (min-width:761px){.jg-guide{overflow:auto}.jg-play{overflow:auto}}
@media(max-width:760px){.junior-mode .app-shell{height:auto;min-height:100dvh;overflow:visible}.junior-mode .screen-game{position:relative;inset:auto}.jg-cartoon-missing{width:100%;min-width:0;height:190px;font-size:14px}}
.qb-admin-tools{margin:18px 0;padding:16px;border:1px solid #a3a9dc55;border-radius:16px;background:linear-gradient(120deg,#6b527126,#32657a26)}.qb-admin-tools h3{margin:0 0 13px;font-size:18px}.qb-admin-tools p{font:13px/1.45 Arial;color:#bdcbdc}.qb-quick-toggle{display:flex;gap:11px;align-items:center;font:700 15px/1.3 Arial;cursor:pointer}.qb-quick-toggle input{width:23px;height:23px;accent-color:#83dac4;flex-shrink:0}.qb-admin-tools .controls{flex-wrap:wrap}.qb-admin-tools button{border:1px solid #abc6e366;border-radius:12px;padding:12px;background:linear-gradient(120deg,#5e527f,#356878);color:#fff1d4;font:700 14px Arial;cursor:pointer}.qb-admin-tools button:disabled{opacity:.4;cursor:default}
/* Обновление 5: геометрия полей и наглядные действия. */
.jg-chess{box-sizing:border-box;width:260px;height:260px;aspect-ratio:1;grid-template-rows:repeat(5,minmax(0,1fr));flex-shrink:0;align-content:stretch}
.jg-chess .jg-board-cell{min-height:0;aspect-ratio:1;font-size:clamp(19px,3vw,28px);overflow:hidden}
.jg-chess .is-current{background:#d8cbb6;outline:3px solid #ffcf70;outline-offset:-4px}
.jg-chess .dark.is-current{background:#6b718a}
.jg-pixel.is-filled{background:var(--pixel-color)!important;border-color:#dceaf5!important}
.jg-paint-square{display:block;width:40px;height:40px;border:2px solid #fff7;border-radius:3px;margin:auto}
.jg-network{grid-template-rows:repeat(3,minmax(0,1fr));align-items:center}
.jg-network-board{grid-column:2;grid-row:1 / 4;grid-template-rows:repeat(3,minmax(0,1fr))}
.jg-network-source{grid-column:1}.jg-network-goal{grid-column:3}
.jg-crane{box-sizing:content-box;min-height:190px;flex-shrink:0}
.jg-crane-load,.jg-crane-built i{box-sizing:border-box;width:62px;height:26px;border:2px solid #e9efdd;border-radius:2px;background:linear-gradient(90deg,#7fc2bb,#65a4bd);transform:translateX(-50%)}
.jg-crane-load{font-size:0;top:48px;transition:left .38s ease-in-out}
.jg-crane-load:after,.jg-crane-built i:after{content:'';position:absolute;inset:5px 8px;background:repeating-linear-gradient(90deg,#ffe7a4 0 8px,transparent 8px 14px)}
.jg-crane-load:before{bottom:100%;height:36px}
.jg-crane-goal{box-sizing:border-box;width:62px;height:26px;border-radius:2px;transition:left .38s,bottom .38s}
.jg-crystal{display:grid;gap:15px;align-self:center;width:min(100%,620px)}
.jg-crystal-row{display:flex;justify-content:center;align-items:center;gap:12px;padding:8px;border-radius:15px;background:#344465}
.jg-crystal-row .jg-symbol{font-size:30px}.jg-crystal-row .jg-swatch{width:25px;height:25px;font-size:14px}
.jg-crystal-sample,.jg-crystal-actual{display:flex;gap:6px}.jg-crystal-sample{border:2px solid #d9c48c;padding:7px;border-radius:10px}.jg-crystal-actual{padding:7px}
.jg-crystal-row.is-matched{outline:2px solid #9cddbd}
.jg-reporter-scene{align-self:center;width:min(100%,540px);display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:15px;background:linear-gradient(155deg,#48567f,#357f7b);border:2px solid #9fc3d277;border-radius:22px}
.jg-reporter-subject{appearance:none;border:1px solid #e5d4ff44;border-radius:15px;background:#354e6d88;min-height:64px;color:#fff;cursor:pointer}.jg-reporter-subject .jg-symbol{font-size:40px}
.jg-reporter-list{min-height:50px;gap:18px}.jg-reporter-list .jg-symbol{font-size:32px}.jg-done{opacity:.28;pointer-events:none}
.jg-harvest-belt{align-self:center;display:grid;grid-template-columns:repeat(6,1fr);gap:9px;padding:14px 10px 22px;border-radius:20px;background:repeating-linear-gradient(90deg,#3e5478 0 25px,#4c6388 25px 29px);border-bottom:7px solid #293950;width:min(100%,590px);box-sizing:border-box}
.jg-harvest-belt .jg-card{min-width:0;min-height:66px;padding:7px}.jg-harvest-item .jg-symbol{font-size:38px}.jg-harvest-baskets{display:flex;justify-content:center;gap:22px}.jg-harvest-basket{position:relative;appearance:none;width:110px;height:110px;border:2px solid #e9cb8b88;border-radius:20px;background:#77605255;color:#fff;cursor:pointer}.jg-harvest-basket>.jg-symbol{position:relative;z-index:1;font-size:32px;top:-8px}.jg-basket{font:65px 'QB Pictures',sans-serif;position:absolute;inset:35px 0 0;line-height:1}
.jg-rover-field{align-self:center;position:relative;width:100%;height:clamp(230px,35vh,390px);min-height:230px;border-radius:20px;overflow:hidden;border:2px solid #a2c0b688}
.jg-rover-field canvas{display:block;width:100%;height:100%}.jg-rover-score{position:absolute;top:10px;left:50%;transform:translateX(-50%);background:#20364deb;color:#ffe29c;border:2px solid #e2bd72;border-radius:12px;padding:6px 15px;font:700 20px Arial;pointer-events:none}.jg-rover-progress{position:absolute;bottom:10px;left:20%;width:60%;height:7px;background:#26334f;border-radius:10px;overflow:hidden}.jg-rover-progress i{display:block;width:0;height:100%;background:#ffd77c}.jg-rover-controls{text-align:center;display:grid;gap:8px;color:#f7dda5}.jg-rover-controls strong{font:700 19px Arial}.jg-rover-controls span{font:16px Arial}.jg-rover-controls .jg-arrow{touch-action:none;user-select:none}
.jg-flight{align-self:center;position:relative;width:100%;height:clamp(240px,38vh,380px);border:2px solid #b4c9ee80;border-radius:24px;overflow:hidden;touch-action:none;cursor:crosshair}
.jg-flight canvas{display:block;width:100%;height:100%}.jg-flight-crosshair{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:#b5f4ed;font:36px Arial;pointer-events:none}.jg-flight-tip{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#293951bf;border-radius:10px;padding:7px 15px;color:#fff0c0;font:700 16px Arial;pointer-events:none}
@media(max-height:740px) and (min-width:761px){.jg-chess{width:230px;height:230px}.jg-rover-field{height:230px}.jg-crystal{gap:9px}.jg-crystal-row{padding:5px}.jg-harvest-basket{height:100px}.jg-flight{height:240px}}
@media(max-width:760px){.jg-chess{width:245px;height:245px}.jg-crystal-row{gap:4px;padding:6px 2px}.jg-crystal-row .jg-swatch{width:17px;height:17px;font-size:10px}.jg-crystal-sample,.jg-crystal-actual{padding:4px;gap:3px}.jg-crystal-row .jg-arrow{min-width:36px;padding:5px}.jg-reporter-scene{width:100%;box-sizing:border-box;gap:7px;padding:8px}.jg-reporter-subject .jg-symbol{font-size:32px}.jg-harvest-belt{grid-template-columns:repeat(3,1fr)}.jg-harvest-basket{width:85px;height:100px}.jg-harvest-baskets{gap:10px}.jg-rover-controls strong{font-size:16px}.jg-rover-controls span{font-size:14px}}
.jg-food{width:1em;height:1em;display:inline-flex;align-items:center;justify-content:center}.jg-food svg{display:block;width:100%;height:100%}
.jg-basket{inset:55px 12px 10px;box-sizing:border-box;border:3px solid #d3aa75;border-radius:5px 5px 18px 18px;background:repeating-linear-gradient(0deg,transparent 0 7px,#e5bf8e88 7px 10px),repeating-linear-gradient(90deg,#ac8055 0 9px,#d9ad7a 9px 12px)}
.jg-basket:before{content:'';position:absolute;left:18%;right:18%;height:24px;top:-25px;border:4px solid #d6ac79;border-bottom:0;border-radius:30px 30px 0 0}

.jg-crystal-row .jg-swatch{border-radius:50%}

.jg-flight-crosshair{width:24px;height:24px}.jg-flight-crosshair:before,.jg-flight-crosshair:after{content:'';position:absolute;background:#b5f4ed;border-radius:2px;box-shadow:0 0 4px #213954}.jg-flight-crosshair:before{left:11px;top:0;width:2px;height:24px}.jg-flight-crosshair:after{top:11px;left:0;height:2px;width:24px}
/* Обновление 6: действия мышкой, съёмка в 3D, монтаж из шести кадров. */
.jg-keyboard .jg-key{display:flex;align-items:center;justify-content:center;box-sizing:border-box;cursor:default;user-select:none}
.jg-photo3d{position:relative;align-self:center;width:100%;height:clamp(240px,36vh,390px);border:2px solid #a9c9df66;border-radius:22px;overflow:hidden;cursor:grab;touch-action:none}.jg-photo3d:active{cursor:grabbing}.jg-photo3d canvas{display:block;width:100%;height:100%}.jg-camera-frame{position:absolute;inset:18% 27%;border:3px solid #fff4d6;border-radius:12px;box-shadow:0 0 0 1000px #22384b25;pointer-events:none}.jg-camera-frame:before,.jg-camera-frame:after{content:'';position:absolute;left:50%;top:50%;width:16px;height:2px;background:#fff1c5;transform:translate(-50%,-50%)}.jg-camera-frame:after{transform:translate(-50%,-50%) rotate(90deg)}.is-framed .jg-camera-frame{border-color:#92f1cf;box-shadow:0 0 15px #92f1cf66,0 0 0 1000px #22384b18}.jg-camera-help{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);padding:6px 12px;border-radius:12px;background:#273d59cc;color:#fff1d1;font:700 13px Arial;white-space:nowrap;pointer-events:none}.jg-photo3d.is-flash:after{content:'';position:absolute;inset:0;background:#fff9e8;animation:jg-photo-flash .3s forwards}@keyframes jg-photo-flash{from{opacity:.8}to{opacity:0}}
.jg-white-rook{color:#fff4d5;text-shadow:1px 1px 0 #29364d,-1px -1px 0 #29364d}.jg-enemy-pawn{color:#23314a;text-shadow:1px 1px 0 #f4d7af,-1px -1px 0 #f4d7af}
.jg-mosaic{width:310px;max-width:100%;aspect-ratio:310/230;position:relative;align-self:center;background:linear-gradient(150deg,#324560,#3c5f74);border-radius:20px;border:2px solid #a7bfd24d;overflow:hidden;flex-shrink:0}.jg-mosaic-slot{position:absolute;transform:translate(-50%,-50%);appearance:none;padding:0;border:0;background:transparent;cursor:pointer}.jg-mosaic-slot svg{width:100%;height:100%;display:block;fill:currentColor;fill-opacity:.18;stroke:currentColor;stroke-width:3;stroke-dasharray:5 5}.jg-mosaic-slot.is-match svg{fill-opacity:.38;filter:drop-shadow(0 0 5px #fff0cb);stroke:#fff2bd}.jg-mosaic-slot.is-placed svg{fill-opacity:1;stroke-dasharray:none;stroke:#f7ebc8;stroke-width:2}.jg-mosaic-palette{display:flex;justify-content:center;align-items:stretch;gap:8px;flex-wrap:wrap}.jg-mosaic-piece{background:#3c4d72;border:2px solid #b5c6da66;border-radius:12px;width:104px;min-height:75px;box-sizing:border-box;padding:5px;cursor:pointer}.jg-mosaic-piece svg{display:block;width:39px;height:39px;margin:auto;fill:currentColor;stroke:#e6e9df;stroke-width:3}.jg-mosaic-piece small{display:block;font:12px Arial;color:#fff0d4;margin-top:5px}.jg-mosaic-piece:disabled{opacity:.25;pointer-events:none}.jg-mosaic-piece.is-selected,.jg-gear-piece.is-selected{outline:3px solid #ffdf93;outline-offset:2px}
.jg-rescue{position:relative;align-self:center;width:min(100%,660px);height:265px;min-height:240px;border:2px solid #a2cdc088;border-radius:25px;background:radial-gradient(ellipse at 30% 15%,#7f8cb2,transparent 65%),linear-gradient(140deg,#3c6e7d,#427366);overflow:hidden;touch-action:none}.jg-rescue-robot{position:absolute;width:66px;height:70px;transform:translate(-50%,-50%);background:#314b6400;border:2px solid transparent;border-radius:50%;padding:0;cursor:grab;touch-action:none;color:#fff}.jg-rescue-robot .jg-symbol{font-size:43px}.jg-rescue-robot small{display:none}.jg-rescue-robot.in-bubble{background:radial-gradient(circle at 25% 20%,#eefcff66,#7dd9ff22 60%);border:3px solid #b9e6ed;box-shadow:0 0 0 6px #b9e6ed22;cursor:pointer}.jg-rescue-robot.in-bubble small{display:block;font:700 11px Arial;color:#fff8d8;position:absolute;bottom:-15px;left:50%;transform:translateX(-50%)}.jg-rescue-robot.is-carried{z-index:10;cursor:grabbing;filter:drop-shadow(0 7px 3px #18304766)}.jg-rescue-home{position:absolute;left:7%;bottom:8%;width:115px;height:97px;display:flex;align-items:center;flex-direction:column;justify-content:center;background:#c6d49a44;border:3px dashed #edd8a0;border-radius:20px;color:#fff0cc}.jg-rescue-home .jg-symbol{font-size:51px}.jg-rescue-home b{font:700 14px Arial}
.jg-fishing{position:relative;align-self:center;width:min(100%,650px);height:230px;min-height:210px;border:3px solid #8cc8d477;border-radius:32px;background:radial-gradient(ellipse at 30% 20%,#7caec199,transparent 70%),linear-gradient(#426d97,#366c82);overflow:hidden}.jg-fishing:before,.jg-fishing:after{content:'';position:absolute;width:60px;height:15px;border:2px solid #abdbd466;border-radius:50%;left:20%;top:14%}.jg-fishing:after{left:73%;top:75%;width:35px}.jg-letter-fish{position:absolute;transform:translate(-50%,-50%);width:62px;height:48px;background:var(--fish-color);border:2px solid #f7ecd0;border-radius:60% 50% 50% 60%;color:#25374c;font:700 29px Arial;cursor:pointer}.jg-letter-fish:before{content:'';position:absolute;right:-17px;top:9px;border-right:18px solid var(--fish-color);border-top:12px solid transparent;border-bottom:12px solid transparent}.jg-letter-fish:after{content:'';position:absolute;left:6px;top:7px;width:5px;height:5px;border-radius:50%;background:#34465c}.jg-letter-fish.is-caught{opacity:0;pointer-events:none;transition:opacity .2s}
.jg-mechanism{align-self:center;position:relative;width:min(100%,520px);height:210px;border:2px solid #aac9df66;border-radius:22px;background:linear-gradient(140deg,#3f587c,#3e6b78);overflow:hidden}.jg-gear-slots{position:absolute;left:4%;right:4%;bottom:12px;display:flex;align-items:center;justify-content:center;gap:10px}.jg-gear-slot,.jg-gear-piece{appearance:none;padding:0;flex:none;border:0;background:transparent;cursor:pointer;box-sizing:border-box;border-radius:50%}.jg-gear-slot svg,.jg-gear-piece svg{width:100%;height:100%;display:block}.jg-gear-slot:not(.is-geared){opacity:.5;border:2px dashed #d3e9dc}.jg-gear-piece:disabled{opacity:.2}.jg-machine-output{position:absolute;left:50%;top:10px;transform:translateX(-50%);width:160px;height:76px;border-radius:13px;background:#233d5388;display:grid;place-items:center;color:#f5d398;font:55px 'QB Pictures',Arial}.jg-machine-output.output-1{border-left:4px solid #b6c9d2;border-right:4px solid #b6c9d2}.jg-machine-output.output-2{border-bottom:8px solid #afbed6}.jg-machine-output span{display:block}.is-running .output-0 span{animation:jg-fan .6s linear infinite}.is-running .output-1 span{animation:jg-lift 1.2s ease-in-out infinite alternate}.is-running .output-2 span{animation:jg-conveyor 1.2s linear infinite}@keyframes jg-fan{to{transform:rotate(360deg)}}@keyframes jg-lift{from{transform:translateY(10px)}to{transform:translateY(-13px)}}@keyframes jg-conveyor{from{transform:translateX(-50px)}to{transform:translateX(50px)}}
.jg-film-tabs{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;align-self:center;width:min(100%,600px)}.jg-film-tab{appearance:none;border:2px solid #b0c1d367;background:#3d5371;border-radius:11px;display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;color:#fff0d5;padding:6px;font:700 15px Arial;cursor:pointer}.jg-film-tab span{font:23px 'QB Pictures',sans-serif}.jg-film-tab small{font:11px Arial;width:100%}.jg-film-tab.is-selected{outline:3px solid #f4d791;outline-offset:1px;background:#6b6681}.jg-film-stage{height:225px;min-height:190px;flex-shrink:0;width:min(100%,650px);align-self:center}.jg-film-stage:after{content:'';position:absolute;width:33%;height:14%;border-radius:50%;background:#8dbaca55;left:33%;bottom:7%;pointer-events:none}.jg-film-stage.film-1{background:radial-gradient(ellipse at 20% 90%,#a7bc86 0 15%,transparent 16%),radial-gradient(ellipse at 75% 100%,#b09cc5 0 20%,transparent 21%),linear-gradient(#3f638b,#4e837a)}.jg-film-stage.film-2{background:radial-gradient(ellipse at 50% 110%,#839e8b 0 50%,transparent 51%),linear-gradient(#5b7696,#547c8c)}.jg-film-mark{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px;border:2px dashed #aabbd172;border-radius:50%;display:grid;place-items:center;font:700 16px Arial;color:#c4d4d8aa;pointer-events:none}.jg-film-mark.is-next{border:3px solid #f6d896;color:#fff2bc;box-shadow:0 0 0 6px #ffe59b18}.jg-onion{position:absolute;transform:translate(-50%,-50%);font:48px 'QB Pictures',sans-serif;opacity:.2;pointer-events:none}.jg-film-stage .jg-anim-hero{pointer-events:none;z-index:3}.jg-film-stage.is-playing .jg-film-mark{opacity:0}.jg-film-instruction{margin:0;text-align:center;color:#f0d9a2;font:700 15px Arial}
.jg-flight-bearing{position:absolute;top:55px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;border-radius:10px;background:#263e55dc;color:#fff1bc;padding:5px 12px;font:14px Arial;pointer-events:none}.jg-flight-bearing i{font:700 25px Arial;font-style:normal;display:block}.jg-arcade-intro{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;background:#1a2f4dbb;color:#fff1d7;font:700 20px Arial}.jg-arcade-intro strong{font-size:25px}.jg-arcade-intro .jg-action{margin-top:7px}
@media(max-height:740px) and (min-width:761px){.jg-photo3d{height:220px}.jg-rescue{height:215px;min-height:205px}.jg-mechanism{height:185px}.jg-film-stage{height:165px;min-height:165px}.jg-film-tabs{gap:5px}.jg-film-tab{padding:3px;gap:3px}.jg-film-tab span{font-size:19px}.jg-film-instruction{font-size:14px}.jg-film-stage .jg-anim-hero{font-size:42px}.jg-mosaic{width:260px}.jg-mosaic-piece{min-height:61px;width:89px}.jg-mosaic-piece svg{width:30px;height:30px}}
@media(max-width:760px){.jg-camera-help{font-size:10px;white-space:normal;text-align:center;width:85%}.jg-photo3d{height:245px}.jg-mosaic-palette{gap:6px}.jg-mosaic-piece{width:88px;font-size:11px}.jg-mosaic{width:300px}.jg-rescue{height:260px}.jg-rescue-robot{width:51px;height:60px}.jg-rescue-robot .jg-symbol{font-size:36px}.jg-rescue-home{width:90px;height:83px}.jg-letter-fish{width:43px;height:39px;font-size:24px}.jg-letter-fish:before{right:-10px;border-right-width:11px;top:7px;border-top-width:10px;border-bottom-width:10px}.jg-letter-fish:after{width:3px;height:3px;left:4px}.jg-film-tabs{gap:4px}.jg-film-tab{padding:5px 2px;gap:3px}.jg-film-tab small{font-size:9px}.jg-film-tab span{font-size:19px}.jg-film-stage{height:210px}.jg-mechanism{height:200px}.jg-gear-slots{gap:4px}}

.jg-machine-output svg{width:64px;height:64px;display:block}

.jg-action,.jg-secondary{font-family:Arial,"QB Pictures",sans-serif}.jg-mosaic-piece small{font-size:11px}

.jg-mosaic-piece[data-shape="rectangle"] svg{width:48px;height:29px}
@media(min-width:761px) and (max-height:850px){.jg-shell:is([data-game="photo"],[data-game="glider"],[data-game="animator"]) .jg-guide .jg-soft{display:none}}
@media(max-height:740px) and (min-width:761px){.jg-rover-field{height:215px;min-height:215px}.jg-rover-controls{gap:6px}.jg-rover-controls strong{display:none}}

@media(max-height:740px) and (min-width:761px){.jg-fishing{height:210px;min-height:200px}}
/* Районы команд: нет мест и таблицы победителей. */
.jm-metropolis .jm-evolution.is-overview .jm-evolution-track,.jm-metropolis .jm-evolution.is-overview .jm-steps{display:none}.jm-metropolis .jm-evolution.is-overview{padding-bottom:4px}.jm-metropolis .jm-level{flex-wrap:wrap}.jm-metropolis .jm-level span{max-width:65%}.jm-metropolis .jm-scene{height:clamp(380px,58vh,720px)}.jm-metropolis .jm-scene-caption b{font-size:17px}.jm-metropolis .jm-scene-hint{max-width:70%}
.jm-district-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 9px;color:#f1dfb7;font:700 15px Arial}.jm-district-toolbar button{border:1px solid #aabbd466;border-radius:10px;background:#4d627a88;color:#fff0d2;padding:7px 15px;font:700 13px Arial;cursor:pointer}.jm-district-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(168px,1fr));gap:8px}.jm-district-card{appearance:none;text-align:left;display:flex;flex-direction:column;gap:6px;border:1px solid #a2b9cb55;border-left:4px solid var(--district);border-radius:14px;background:linear-gradient(135deg,#3a456580,#345e6380);padding:10px 12px;color:#eff1e9;cursor:pointer;min-width:0}.jm-district-card.is-selected{outline:2px solid var(--district);outline-offset:1px;background:linear-gradient(130deg,#65567c,#3e6d76)}.jm-district-name{display:flex;align-items:center;gap:6px;color:#fff0d0;font:700 14px Arial}.jm-district-name i{width:9px;height:9px;border-radius:50%;background:var(--district);flex-shrink:0}.jm-district-card>b{font:500 12px Arial;color:#d6e3e7}.jm-district-card small{font:700 12px Arial;color:var(--district)}.jm-district-bar{display:block;height:4px;border-radius:4px;background:#173343}.jm-district-bar i{display:block;height:100%;background:var(--district);border-radius:4px;transition:width .6s}.jm-empty-map{color:#d3dedf;font:14px Arial;grid-column:1/-1;margin:4px;text-align:center}
.jm-compact.jm-metropolis .jm-scene{height:315px}.jm-compact.jm-metropolis .jm-district-cards{grid-template-columns:repeat(auto-fit,minmax(125px,1fr));max-height:155px;overflow:auto;padding:3px}.jm-compact .jm-district-card{padding:8px}.jm-compact .jm-district-name{font-size:12px}.jm-compact .jm-district-toolbar{font-size:13px;margin:8px 0}.jm-compact .jm-district-card>b{font-size:11px}.jm-metropolis .jm-evolution-track{margin-top:8px}
@media(max-width:760px){.jm-metropolis .jm-scene{height:390px}.jm-metropolis .jm-level span{display:none}.jm-metropolis .jm-heading h2{font-size:24px}.jm-metropolis .jm-scene-caption b{font-size:13px}.jm-metropolis .jm-scene-hint{font-size:10px;max-width:90%;bottom:58px}.jm-district-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.jm-district-card{padding:9px}.jm-district-name{font-size:12px}.jm-metropolis .jm-next{font-size:12px;flex-wrap:wrap}.jm-compact.jm-metropolis .jm-scene{height:290px}.jm-metropolis .jm-steps{grid-template-columns:repeat(3,1fr)}}
/* Версия 8: только квантум и таймер в шапке; мини-игра занимает всю рабочую область. */
.junior-mode #gameScreen .hud-right,.junior-mode #gameScreen #roundLabel,.junior-mode #gameScreen .task-track,.junior-mode #gameScreen .game-footer{display:none!important}
.junior-mode #gameScreen .hud{flex-wrap:nowrap;min-height:64px;box-sizing:border-box;padding:8px 16px;gap:15px}.junior-mode #gameScreen .hud-left{min-width:0}.junior-mode #gameScreen .quantum-meta{min-width:0}.junior-mode #gameScreen .quantum-meta h2{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.junior-mode #gameScreen .hud-center{position:static;transform:none;margin-left:auto;display:flex;align-items:center;flex-shrink:0}.junior-mode #gameScreen #timerText{font-size:29px}.junior-mode #gameScreen .quantum-logo{flex-shrink:0}
.junior-mode .jg-shell{grid-template-columns:minmax(0,1fr);gap:0}.junior-mode .jg-feedback:empty{display:none}.junior-mode .jg-harvest-belt{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;min-height:126px;width:min(100%,900px)}.junior-mode .jg-harvest-belt .jg-harvest-item{width:105px;min-height:85px;flex:none}.junior-mode .jg-harvest-item .jg-symbol{font-size:49px}.junior-mode .jg-poster-palette{display:flex;justify-content:center;flex-wrap:wrap;gap:16px}.junior-mode .jg-poster-palette .jg-card{width:clamp(115px,17vw,205px);flex:none;min-height:110px}
.junior-mode .jg-shell.is-world{min-height:0;height:100%}.junior-mode .jg-shell.is-world .jg-play{display:block;position:relative;height:100%;min-height:0;padding:0;overflow:hidden;isolation:isolate}.junior-mode .jg-shell.is-world .jg-content{position:absolute;inset:0;display:block;margin:0;height:100%;min-height:0}.junior-mode .jg-shell.is-world .jg-photo3d,.junior-mode .jg-shell.is-world .jg-rover-field{position:absolute;inset:0;width:100%;height:100%;min-height:0;align-self:stretch;border:0;border-radius:0;overflow:hidden;box-sizing:border-box}
.junior-mode .jg-shell.is-world canvas{position:absolute;inset:0;display:block;width:100%;height:100%}.junior-mode .jg-world-title{position:absolute;top:16px;left:16px;z-index:4;background:#172f49dc;border:1px solid #a5cfdf55;border-radius:17px;padding:12px 15px;max-width:min(480px,calc(100% - 135px));box-sizing:border-box;pointer-events:none;backdrop-filter:blur(7px)}.junior-mode .jg-world-title .jg-heading{gap:18px}.junior-mode .jg-world-title h3{font-size:23px}.junior-mode .jg-world-title .jg-stage{margin-top:8px;min-height:12px;gap:7px}.junior-mode .jg-world-title .jg-stage i{width:7px;height:7px}.junior-mode .jg-world-title .jg-counter{font-size:14px;padding:6px 10px}
.junior-mode .jg-shell[data-game="rover"] .jg-world-title .jg-counter,.junior-mode .jg-shell[data-game="glider"] .jg-world-title .jg-counter,.junior-mode .jg-shell[data-game="rover"] .jg-world-title .jg-stage,.junior-mode .jg-shell[data-game="glider"] .jg-world-title .jg-stage{display:none}
.junior-mode .jg-world-goal{position:absolute;top:105px;left:16px;z-index:4;padding:10px 14px;max-width:min(490px,60%);background:#1b3b50db;border:1px solid #b8dce255;border-radius:13px;box-sizing:border-box;pointer-events:none}.junior-mode .jg-world-goal .jg-prompt{font-size:19px;line-height:1.3;text-align:left;color:#fff0cd}
.junior-mode .jg-world-controls{position:absolute;bottom:18px;right:18px;z-index:5;display:flex;align-items:center;justify-content:flex-end;gap:12px;max-width:calc(100% - 36px)}.junior-mode .jg-world-controls .jg-action{margin:0;min-height:49px;box-shadow:0 4px 13px #142b5e55;white-space:nowrap}.junior-mode .jg-world-controls .jg-rover-controls{display:grid;gap:7px;padding:10px 12px;border-radius:16px;background:#182f4cdb;border:1px solid #a3c4da55;color:#fff0c9}.junior-mode .jg-world-controls .jg-rover-controls strong{display:none}.junior-mode .jg-world-controls .jg-rover-controls span{font:700 14px Arial}.junior-mode .jg-world-controls .jg-control-row{gap:9px}.junior-mode .jg-world-controls .jg-arrow{min-width:48px;min-height:46px;padding:6px;font:700 27px Arial}
.junior-mode .jg-shell.is-world .jg-feedback{position:absolute;right:18px;bottom:96px;z-index:5;background:#19384de6;border:1px solid #b8dce255;border-radius:12px;padding:9px 12px;min-height:0;max-width:min(340px,65%);font-size:16px;pointer-events:none}.junior-mode .jg-shell[data-game="rover"] .jg-feedback,.junior-mode .jg-shell[data-game="glider"] .jg-feedback{bottom:138px}
.junior-mode .jg-shell.is-world .jg-rover-score{top:16px;left:auto;right:16px;transform:none;font-size:20px;background:#1a3548ec;z-index:4}.junior-mode .jg-shell.is-world .jg-rover-progress{display:none}.junior-mode .jg-shell.is-world .jg-flight-bearing{left:auto;right:16px;top:76px;transform:none;font-size:14px;max-width:225px;box-sizing:border-box;z-index:4}.junior-mode .jg-shell.is-world .jg-arcade-intro{z-index:8;background:#132b48c9}.junior-mode .jg-arcade-intro .jg-action{font-family:Arial,'QB Pictures',sans-serif}
.junior-mode .jg-shell.is-world .jg-camera-frame{position:absolute;left:50%;top:50%;width:46%;height:58%;transform:translate(-50%,-50%);border:3px solid #fff0b9bb;border-radius:20px;box-sizing:border-box;pointer-events:none;background:transparent}.junior-mode .jg-camera-frame i{position:absolute;left:50%;top:50%;width:20px;height:20px;transform:translate(-50%,-50%);border:1px solid #fff6bc;border-radius:50%;box-shadow:0 0 0 1px #27475a66}.junior-mode .jg-shell.is-world .jg-photo3d.is-framed .jg-camera-frame{border-color:#77f2b4;box-shadow:0 0 18px #6be9ad66}.junior-mode .jg-shell.is-world .jg-camera-help{position:absolute;left:18px;bottom:23px;transform:none;background:#17334bdf;padding:9px 12px;border-radius:12px;max-width:52%;box-sizing:border-box;white-space:normal;font:700 14px/1.3 Arial;color:#fff0c9;pointer-events:none}.junior-mode .jg-camera-bearing{position:absolute;top:16px;right:16px;background:#17334bdf;border:1px solid #b8dce255;border-radius:13px;padding:9px 13px;max-width:220px;font:700 15px Arial;color:#fff0c9;pointer-events:none;box-sizing:border-box;z-index:4}
@media(max-width:760px){.junior-mode #gameScreen.screen-game{height:100dvh;min-height:560px;padding:10px;gap:9px}.junior-mode #gameScreen .hud{padding:7px 10px;gap:8px;min-height:59px}.junior-mode #gameScreen .quantum-logo{width:39px;height:39px;font-size:25px}.junior-mode #gameScreen .hud h2{font-size:18px}.junior-mode #gameScreen #timerText{font-size:25px}.junior-mode #gameScreen .hud-left{gap:8px}.junior-mode #gameScreen .mini-game-host{height:100%;min-height:0}.junior-mode .jg-shell:not(.is-world){height:auto;min-height:100%}.junior-mode .jg-shell.is-world{height:100%;min-height:0}.junior-mode .jg-world-title{top:12px;left:12px;padding:9px 11px;max-width:calc(100% - 24px)}.junior-mode .jg-world-title h3{font-size:19px}.junior-mode .jg-world-title .jg-heading{gap:12px}.junior-mode .jg-world-title .jg-stage{gap:5px;margin-top:6px}.junior-mode .jg-world-title .jg-counter{font-size:12px;padding:4px 8px}.junior-mode .jg-world-goal{top:99px;left:12px;padding:8px 10px;max-width:60%}.junior-mode .jg-world-goal .jg-prompt{font-size:16px}.junior-mode .jg-shell[data-game="rover"] .jg-world-goal,.junior-mode .jg-shell[data-game="glider"] .jg-world-goal{top:72px;max-width:55%}.junior-mode .jg-world-controls{right:12px;bottom:12px;max-width:calc(100% - 24px)}.junior-mode .jg-world-controls .jg-action{font-size:16px;padding:9px 16px;min-height:46px}.junior-mode .jg-world-controls .jg-rover-controls{padding:8px;gap:7px}.junior-mode .jg-world-controls .jg-rover-controls span{font-size:11px}.junior-mode .jg-world-controls .jg-arrow{min-width:43px;min-height:41px;font-size:23px}.junior-mode .jg-shell.is-world .jg-rover-score{top:12px;right:12px;font-size:16px;padding:7px 11px}.junior-mode .jg-shell.is-world .jg-flight-bearing{top:128px;right:12px;font-size:12px;max-width:145px;gap:6px;padding:6px 9px}.junior-mode .jg-shell.is-world .jg-flight-bearing i{font-size:20px}.junior-mode .jg-camera-bearing{top:12px;right:12px;font-size:12px;padding:7px 9px;max-width:160px}.junior-mode .jg-shell[data-game="photo"] .jg-camera-bearing{top:166px}.junior-mode .jg-shell.is-world .jg-camera-frame{width:84%;height:55%}.junior-mode .jg-shell.is-world .jg-camera-help{left:12px;bottom:72px;font-size:11px;max-width:calc(100% - 24px);padding:7px 10px}.junior-mode .jg-shell.is-world .jg-feedback{right:12px;bottom:119px;max-width:85%;font-size:13px}.junior-mode .jg-shell[data-game="rover"] .jg-feedback,.junior-mode .jg-shell[data-game="glider"] .jg-feedback{bottom:122px}.junior-mode .jg-harvest-belt .jg-harvest-item{width:76px;min-height:69px}.junior-mode .jg-harvest-item .jg-symbol{font-size:40px}.junior-mode .jg-poster-palette .jg-card{width:112px;min-height:86px}}

/* Обновление 9: понятные действия и задания на наблюдение и планирование. */
.junior-mode .jg-step-note{margin:0;text-align:center;color:#ffe4a2;font:700 16px/1.35 Arial;min-height:22px}
.junior-mode .jg-action.is-ready{border-color:#ffe8a6;box-shadow:0 0 0 3px #ffde8b33,0 5px 18px #13243855}
.junior-mode .jg-section-label{display:block;text-align:center;color:#c2d3ec;font:700 11px/1.3 Arial;letter-spacing:.08em}

/* Настоящие цвета краски, две видимые чашки и одно действие смешивания. */
.junior-mode .jg-paint-recipe{align-self:center;width:min(100%,570px);padding:9px 14px;border:1px solid #bfc8f46b;border-radius:18px;background:#192b4d66;box-sizing:border-box}
.junior-mode .jg-paint-recipe>div{display:flex;align-items:center;justify-content:center;gap:24px;margin-top:7px}
.junior-mode .jg-paint-recipe b{font:700 25px Arial;color:#fff0c5}
.junior-mode .jg-color-chip{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.junior-mode .jg-color-chip i{display:block;width:43px;height:35px;border:2px solid #ffffffa0;border-radius:9px;box-shadow:inset 0 -5px 0 #17354b15;box-sizing:border-box}
.junior-mode .jg-color-chip small{font:700 13px/1.2 Arial;color:#f8f2e8}
.junior-mode .jg-paint-work{display:flex;align-items:center;justify-content:center;gap:17px;align-self:center}
.junior-mode .jg-paint-cup{position:relative;appearance:none;background:#1b304b80;color:#d5deef;border:2px dashed #b8c9e8;border-radius:12px 12px 25px 25px;width:125px;height:95px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font:700 30px Arial;padding:7px;box-sizing:border-box}
.junior-mode .jg-paint-cup>small{font:13px Arial}
.junior-mode .jg-paint-cup.is-full{background:#49627c;border-style:solid;border-color:#8debd1}
.junior-mode .jg-cup-check{position:absolute;top:3px;right:7px;font:700 17px Arial;color:#a0ffdb}
.junior-mode .jg-paint-plus{font:700 25px Arial}
.junior-mode .jg-paint-palette{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-self:center;width:min(100%,720px);gap:12px}
.junior-mode .jg-paint-choice{appearance:none;min-width:0;background:linear-gradient(145deg,#405577,#314565);border:2px solid #9fbce16b;border-bottom:5px solid #1c304f;border-radius:17px;min-height:117px;color:#fff5dc;padding:10px 6px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;font:700 15px Arial;box-sizing:border-box}
.junior-mode .jg-paint-choice small{font:11px/1.15 Arial;color:#c8daf2}
.junior-mode .jg-paint-choice.is-poured{border-color:#8df4ce;background:#355f65;opacity:.65}
.junior-mode .jg-paint-choice.is-poured small{color:#a9f7d7}
.junior-mode .jg-paint-pot{position:relative;width:62px;height:48px;border:3px solid #b7c9db;border-radius:7px 7px 18px 18px;background:linear-gradient(90deg,#899eb9,#c0d0e2 45%,#899eb9);box-sizing:border-box;display:block;margin-top:4px}
.junior-mode .jg-paint-pot:before{content:'';position:absolute;left:-5px;right:-5px;top:-8px;height:15px;border:3px solid #d2deeb;border-radius:50%;background:var(--paint)}
.junior-mode .jg-paint-pot i{position:absolute;left:20px;top:10px;width:18px;height:24px;border-radius:50% 50% 50% 15%;transform:rotate(-30deg);background:var(--paint);border:1px solid #ffffff99}
.junior-mode .jg-paint-result{align-self:center;display:flex;align-items:center;gap:15px;color:#fff4cc;font:700 20px Arial;min-height:49px}
.junior-mode .jg-new-paint{display:block;width:60px;height:43px;border-radius:40% 55% 35% 50%;border:2px solid #ffffffa0;animation:jg-paint-appear .45s ease-out both}
.junior-mode .jg-paint-work.is-mixing .jg-paint-cup{animation:jg-paint-shake .3s ease-in-out 2}
@keyframes jg-paint-appear{from{opacity:0;transform:scale(.35) rotate(-12deg)}to{opacity:1;transform:scale(1) rotate(0)}}
@keyframes jg-paint-shake{25%{transform:rotate(-6deg)}75%{transform:rotate(6deg)}}

/* Под микроскопом ребёнок восстанавливает повторяющийся узор. */
.junior-mode .jg-micro-lab{width:min(100%,840px);align-self:center;padding:22px 24px 27px;box-sizing:border-box;background:radial-gradient(ellipse at 50% 100%,#3d867e99,transparent 80%),#183149;border:3px solid #6b93b8;border-radius:30px;box-shadow:inset 0 0 0 7px #263f5a,inset 0 0 35px #102b44}
.junior-mode .jg-lab-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#e8f1ff;font:700 17px Arial;margin-bottom:27px}
.junior-mode .jg-lab-heading small{font:13px Arial;color:#a2e9d5}
.junior-mode .jg-lab-heading>span{font-family:Arial,'QB Pictures',sans-serif}
.junior-mode .jg-particle-sequence{display:grid;grid-template-columns:repeat(var(--particles),minmax(0,1fr));gap:7px}
.junior-mode .jg-particle-cell{border:2px dashed #7495b3;min-width:0;border-radius:12px;position:relative;background:#223b57;aspect-ratio:1;display:grid;place-items:center}
.junior-mode .jg-particle-cell>small{position:absolute;top:-20px;color:#b9cfe5;font:11px Arial}
.junior-mode .jg-particle-cell.is-known{border:1px solid #7299b866;background:#294b60}
.junior-mode .jg-particle-cell.is-added{background:#317569;border:2px solid #89f1ca}
.junior-mode .jg-particle-cell.is-next{border:3px solid #ffda85;background:#685d63;box-shadow:0 0 0 4px #ffe49a18}
.junior-mode .jg-particle-value{width:82%;display:grid;place-items:center;font:700 clamp(20px,3vw,34px) Arial;color:#ffdc96}
.junior-mode .jg-lab-particle{display:inline-block;width:100%;aspect-ratio:1;vertical-align:middle}
.junior-mode .jg-lab-particle svg{display:block;width:100%;height:100%}
.junior-mode .jg-particle-palette{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;width:min(100%,690px);align-self:center}
.junior-mode .jg-particle-choice{appearance:none;background:linear-gradient(135deg,#3d6079,#325069);color:#eaf3fd;border:2px solid #a0c0d16b;border-bottom:5px solid #1d354f;border-radius:17px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:103px;padding:10px 5px;font:700 13px Arial;min-width:0;box-sizing:border-box}
.junior-mode .jg-particle-choice .jg-lab-particle{width:48px}
.junior-mode .jg-particle-choice small{font:700 12px/1.25 Arial}

/* Три чертежа 7×7; палитра всегда содержит четыре сплошных цвета. */
.junior-mode .jg-blueprint-v9{gap:20px}
.junior-mode .jg-blueprint-v9 .jg-blueprint-mini,.junior-mode .jg-blueprint-v9 .jg-blueprint{grid-template-columns:repeat(var(--blueprint-cols),minmax(0,1fr));grid-template-rows:repeat(7,minmax(0,1fr));height:auto;aspect-ratio:1}
.junior-mode .jg-blueprint-reference,.junior-mode .jg-blueprint-drawing{display:flex;flex-direction:column;align-items:center;gap:8px}
.junior-mode .jg-blueprint-v9 small{font:700 11px Arial;letter-spacing:.05em;color:#ced8f2}
.junior-mode .jg-blueprint-v9 .jg-blueprint-mini{width:190px;padding:7px;gap:3px}
.junior-mode .jg-blueprint-v9 .jg-blueprint{width:305px;padding:8px;gap:4px}
.junior-mode .jg-blueprint-v9 .jg-pixel{aspect-ratio:1;border-radius:4px;padding:0;min-height:0}
.junior-mode .jg-blueprint-palette{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-self:center;width:min(100%,760px);margin-top:4px}
.junior-mode .jg-blueprint-palette .jg-card{min-height:88px;padding:8px;gap:5px}
.junior-mode .jg-blueprint-palette .jg-paint-square{width:40px;height:40px}
.junior-mode .jg-blueprint-palette small{font:700 13px Arial}

/* Четыре места и шесть деталей: учитываются размер и отверстие. */
.junior-mode .jg-mechanism-v9{width:min(100%,640px);height:auto;min-height:187px;padding:10px 20px;overflow:visible;box-sizing:border-box;--gear-scale:1}
.junior-mode .jg-machine-header{display:flex;align-items:center;justify-content:space-between;gap:12px;height:66px;color:#ffdf90;font:700 18px Arial}
.junior-mode .jg-machine-header small{color:#e2edf5;font:700 14px Arial}
.junior-mode .jg-mechanism-v9 .jg-machine-output{position:static;transform:none;height:60px;width:105px;font:45px 'QB Pictures',Arial}
.junior-mode .jg-mechanism-v9 .jg-machine-output svg{width:55px;height:55px}
.junior-mode .jg-gear-chain{position:relative;min-height:100px;display:flex;align-items:center;justify-content:center}
.junior-mode .jg-energy-line{position:absolute;left:2%;right:2%;top:calc(50% - 3px);height:6px;background:#8ba2b8;box-shadow:0 0 0 3px #28445a;border-radius:10px}
.junior-mode .is-running .jg-energy-line{background:#79f4bd;box-shadow:0 0 15px #63f2b6}
.junior-mode .jg-mechanism-v9 .jg-gear-slots{position:relative;inset:auto;gap:0;display:flex;align-items:center;justify-content:center}
.junior-mode .jg-mechanism-v9 .jg-gear-slot{width:calc(var(--gear-size)*var(--gear-scale));height:calc(var(--gear-size)*var(--gear-scale));margin:0 -1px;position:relative;z-index:1}
.junior-mode .jg-mechanism-v9 .jg-gear-slot:not(.is-geared){opacity:.85;border:none;filter:drop-shadow(0 0 2px #b4d7ee)}
.junior-mode .jg-mechanism-v9 .jg-gear-slot.is-geared{filter:drop-shadow(0 0 4px #9affd599)}
.junior-mode .jg-gear-palette{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;align-self:center;width:min(100%,780px);--gear-scale:1}
.junior-mode .jg-gear-choice{appearance:none;border:2px solid #acc1dc60;border-bottom:5px solid #1b304c;border-radius:16px;background:#314e70;color:#fff1cb;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;min-width:0;gap:7px;padding:9px 4px 7px;box-sizing:border-box;min-height:135px}
.junior-mode .jg-gear-drawing{display:flex;align-items:center;justify-content:center;height:90px}
.junior-mode .jg-gear-drawing svg{width:calc(var(--gear-size)*var(--gear-scale));height:calc(var(--gear-size)*var(--gear-scale));display:block}
.junior-mode .jg-gear-choice small{font:700 12px/1.25 Arial}
.junior-mode .jg-gear-choice.is-selected{outline:3px solid #ffe39d;outline-offset:1px;background:#69627b}
.junior-mode .jg-gear-choice.is-used{opacity:.28;border-color:#8ddcb9}

/* Кадр записывается одним нажатием на конкретный светящийся след. */
.junior-mode .jg-story-reference{gap:18px}
.junior-mode .jg-story-strip .jg-slot{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}
.junior-mode .jg-story-strip .jg-slot>small{font:700 11px Arial;color:#d6e3f4}
.junior-mode .jg-story-strip .jg-slot>b{font:700 32px Arial}
.junior-mode .jg-story-strip .is-next{border-color:#ffe5a0;box-shadow:0 0 0 3px #ffda8433}
.junior-mode .jg-animation-v9{width:min(100%,850px);height:235px;min-height:0;cursor:default;background:linear-gradient(#4c81b6 0 70%,#56966f 70%)}
.junior-mode .jg-animation-v9.film-1{background:radial-gradient(ellipse at 20% 90%,#8cc377 0 15%,transparent 16%),radial-gradient(ellipse at 75% 100%,#ac7cb8 0 20%,transparent 21%),linear-gradient(#497bb2,#4c9d85)}
.junior-mode .jg-animation-v9.film-2{background:radial-gradient(ellipse at 50% 130%,#71a56f 0 55%,transparent 56%),linear-gradient(#5896c9,#76b39c)}
.junior-mode .jg-animation-v9 .jg-anim-hero{transition:left .28s ease-in-out,top .28s ease-in-out;font-size:50px;z-index:3}
.junior-mode .jg-film-route{position:absolute;inset:0;width:100%;height:100%;opacity:.6;pointer-events:none}
.junior-mode .jg-frame-target{position:absolute;transform:translate(-50%,-50%);width:36px;height:36px;border:2px dashed #d2e5eb66;border-radius:50%;background:#2f587d55;color:#d8e9eeaa;display:grid;place-items:center;padding:0;font:700 17px Arial;z-index:5;appearance:none;box-sizing:border-box}
.junior-mode .jg-frame-target small{display:none}
.junior-mode .jg-frame-target.is-next{width:48px;height:48px;background:#ffe5a4;color:#353d58;border:3px solid #fff6d9;box-shadow:0 0 0 7px #ffe5a43d;animation:jg-frame-beacon 1.25s ease-in-out infinite;cursor:pointer}
.junior-mode .jg-frame-target.is-next small{display:block;position:absolute;top:49px;left:50%;transform:translateX(-50%);color:#fff9d9;background:#2e496bdc;border-radius:8px;padding:3px 7px;font:700 11px Arial;white-space:nowrap}
.junior-mode .jg-frame-target.is-recorded{opacity:.23;border-style:solid;background:#9de6c4;color:transparent;pointer-events:none}
.junior-mode .jg-animation-v9.is-playing .jg-frame-target,.junior-mode .jg-animation-v9.is-playing .jg-film-route{display:none}
.junior-mode .jg-timeline-v9{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:7px;align-self:center;width:min(100%,850px)}
.junior-mode .jg-frame-thumb{background:#2c4363;border:2px solid #798fab69;border-radius:9px;padding:4px;min-width:0;box-sizing:border-box;text-align:center;position:relative}
.junior-mode .jg-thumb-scene{display:block;position:relative;width:100%;height:42px;border-radius:5px;background:linear-gradient(#497aa6 0 70%,#619a76 70%);overflow:hidden;color:#c2d2e4;font:25px Arial}
.junior-mode .jg-thumb-scene i{position:absolute;transform:translate(-50%,-50%);font:21px 'QB Pictures',sans-serif;font-style:normal}
.junior-mode .jg-frame-thumb>small{color:#cfdcf0;font:700 11px Arial}
.junior-mode .jg-frame-thumb.is-recorded{border-color:#88e7c0;background:#32646a}
.junior-mode .jg-frame-thumb.is-current{border-color:#ffdf8b;box-shadow:0 0 0 2px #ffdf8b22}
@keyframes jg-frame-beacon{50%{box-shadow:0 0 0 12px #ffe5a410}}

/* Пчёлка: сначала видимый маршрут, потом полёт по нему. */
.junior-mode .jg-bee-garden{position:relative;align-self:center;width:min(100%,330px);aspect-ratio:1;isolation:isolate;border:3px solid #a5ce9d;border-radius:18px;box-shadow:0 6px 0 #1c3d44;background:#477c62;box-sizing:border-box;overflow:hidden}
.junior-mode .jg-bee-grid{position:absolute;inset:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(5,minmax(0,1fr));gap:3px;padding:4px;box-sizing:border-box}
.junior-mode .jg-bee-cell{appearance:none;position:relative;min-width:0;min-height:0;padding:4px;border:2px solid transparent;border-radius:9px;background:#62976b;display:flex;align-items:center;justify-content:center;color:#d7edbd;box-sizing:border-box}
.junior-mode .jg-bee-cell:nth-child(2n){background:#6ba676}
.junior-mode .jg-bee-cell .jg-symbol{font-size:38px;position:relative;z-index:3}
.junior-mode .jg-bee-cell svg{width:90%;height:90%;position:relative;z-index:3}
.junior-mode .jg-bee-cell.is-rock{background:#466f60}
.junior-mode .jg-bee-cell.is-hive{background:#bf9a56}
.junior-mode .jg-bee-cell.is-neighbor{border:3px solid #fff1a0;background:#a3bb79;box-shadow:inset 0 0 0 2px #eaffb933;cursor:pointer}
.junior-mode .jg-bee-cell.on-route{background:#648f9f}
.junior-mode .jg-bee-cell.is-route-end{background:#acaa73;border:3px solid #fff5b7}
.junior-mode .jg-bee-cell.is-planned:after{content:'✓';position:absolute;top:1px;right:2px;width:18px;height:18px;border-radius:50%;background:#245d58;color:#b5ffe2;font:700 15px Arial;z-index:4}
.junior-mode .jg-bee-cell.is-pollinated{background:#77c588;box-shadow:inset 0 0 15px #fff7ac}
.junior-mode .jg-grass-tuft{font:26px Arial;color:#9bcc86;pointer-events:none}
.junior-mode .jg-bee-route{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2;opacity:.8}
.junior-mode .jg-route-bee{position:absolute;transform:translate(-50%,-50%);pointer-events:none;z-index:5;filter:drop-shadow(0 2px 3px #183c42aa);transition:left .13s,top .13s}
.junior-mode .jg-route-bee .jg-symbol{font-size:37px}
.junior-mode .jg-bee-legend{display:flex;justify-content:center;align-items:center;gap:18px;color:#d4e4ec;font:13px Arial}
.junior-mode .jg-bee-legend>span{display:flex;align-items:center;gap:7px;color:#ffe6a5;font:700 16px Arial}
.junior-mode .jg-bee-legend .jg-symbol{font-size:26px}
.junior-mode .jg-bee-legend small{font:12px Arial}
.junior-mode .is-flying .jg-bee-cell:after{display:none}
.junior-mode .is-flying .jg-bee-cell.is-pollinated:after{display:block}
.junior-mode .is-flying .jg-bee-cell.is-route-end,.junior-mode .is-flying .jg-bee-cell.is-neighbor{border-color:transparent}

/* Корзина отвечает цветом, движением, значком и текстом. */
.junior-mode .jg-harvest-baskets{padding:13px 0 25px}
.junior-mode .jg-harvest-basket{transition:background .2s,border-color .2s,box-shadow .2s}
.junior-mode .jg-harvest-basket.is-correct{background:#3a8a6c;border-color:#a8ffd6;box-shadow:0 0 0 5px #88ffd92b,0 0 22px #59edb14d;animation:jg-basket-pop .5s ease-out}
.junior-mode .jg-harvest-basket.is-wrong{background:#924b63;border-color:#ffb1ae;box-shadow:0 0 0 4px #ff9f9f25;animation:jg-basket-no .4s ease-in-out}
.junior-mode .jg-basket-reaction{position:absolute;left:50%;bottom:-27px;transform:translateX(-50%);white-space:nowrap;color:#b4ffdb;font:700 14px Arial;pointer-events:none}
.junior-mode .is-wrong .jg-basket-reaction{color:#ffc4c3}
.junior-mode .jg-basket-drop{position:absolute;left:50%;top:-17px;z-index:4;pointer-events:none;animation:jg-harvest-drop .6s ease-in both}
.junior-mode .jg-basket-drop .jg-symbol{font-size:38px}
@keyframes jg-basket-pop{35%{transform:translateY(-8px) scale(1.09)}70%{transform:translateY(2px) scale(.97)}to{transform:none}}
@keyframes jg-basket-no{25%,75%{transform:translateX(-7px) rotate(-3deg)}50%{transform:translateX(7px) rotate(3deg)}to{transform:none}}
@keyframes jg-harvest-drop{from{transform:translate(-50%,-25px) scale(.7);opacity:1}65%{opacity:1}to{transform:translate(-50%,50px) scale(.4);opacity:0}}

@media(max-height:740px) and (min-width:761px){
  .junior-mode .jg-paint-recipe{padding:5px 12px}.junior-mode .jg-paint-recipe>div{margin-top:4px}
  .junior-mode .jg-paint-cup{height:76px}.junior-mode .jg-paint-choice{min-height:98px;padding:7px 5px}
  .junior-mode .jg-color-chip i{width:36px;height:29px}.junior-mode .jg-paint-pot{transform:scale(.85);margin:0}
  .junior-mode .jg-blueprint-v9 .jg-blueprint{width:260px}.junior-mode .jg-blueprint-v9 .jg-blueprint-mini{width:175px}
  .junior-mode .jg-blueprint-palette .jg-card{min-height:72px}.junior-mode .jg-blueprint-palette .jg-paint-square{width:32px;height:32px}
  .junior-mode .jg-animation-v9{height:195px}.junior-mode .jg-timeline-v9 .jg-thumb-scene{height:34px}
  .junior-mode .jg-bee-garden{width:260px}.junior-mode .jg-bee-cell .jg-symbol{font-size:31px}
  .junior-mode .jg-shell[data-game="pollinate"] .jg-play,.junior-mode .jg-shell[data-game="pollinate"] .jg-content{gap:6px}
  .junior-mode .jg-mechanism-v9{min-height:160px}.junior-mode .jg-machine-header{height:55px}
  .junior-mode .jg-gear-chain{min-height:85px}.junior-mode .jg-gear-choice{min-height:123px}.junior-mode .jg-gear-drawing{height:80px}
}
@media(max-width:760px){
  .junior-mode .jg-step-note{font-size:14px;min-height:19px}
  .junior-mode .jg-paint-recipe{padding:8px}.junior-mode .jg-paint-recipe>div{gap:12px}.junior-mode .jg-paint-recipe b{font-size:20px}
  .junior-mode .jg-color-chip i{width:34px;height:31px}.junior-mode .jg-color-chip small{font-size:11px}
  .junior-mode .jg-paint-cup{width:104px;height:80px}.junior-mode .jg-paint-work{gap:14px}
  .junior-mode .jg-paint-palette{gap:6px}.junior-mode .jg-paint-choice{min-height:110px;padding:8px 3px;font-size:12px}
  .junior-mode .jg-paint-choice small{font-size:10px}.junior-mode .jg-paint-pot{width:43px;height:39px;border-width:2px}
  .junior-mode .jg-paint-pot:before{left:-4px;right:-4px;top:-7px;height:12px;border-width:2px}.junior-mode .jg-paint-pot i{left:12px;top:8px;width:14px;height:21px}
  .junior-mode .jg-paint-result{font-size:17px}.junior-mode .jg-paint-result .jg-new-paint{width:46px;height:34px}
  .junior-mode .jg-micro-lab{padding:15px 10px 20px;border-radius:20px;border-width:2px}
  .junior-mode .jg-lab-heading{font-size:14px;align-items:flex-start;flex-direction:column;gap:4px;margin-bottom:26px}.junior-mode .jg-lab-heading small{font-size:12px}
  .junior-mode .jg-particle-sequence{gap:3px}.junior-mode .jg-particle-cell{border-radius:5px;border-width:1px}
  .junior-mode .jg-particle-cell.is-next{border-width:2px}.junior-mode .jg-particle-cell>small{font-size:10px;top:-16px}
  .junior-mode .jg-particle-value{font-size:20px;width:85%}.junior-mode .jg-particle-palette{gap:6px}
  .junior-mode .jg-particle-choice{min-height:104px;padding:8px 4px;border-radius:13px}.junior-mode .jg-particle-choice .jg-lab-particle{width:38px}.junior-mode .jg-particle-choice small{font-size:11px}
  .junior-mode .jg-blueprint-v9{gap:9px}.junior-mode .jg-blueprint-v9 .jg-copy-arrow{display:none}
  .junior-mode .jg-blueprint-v9 .jg-blueprint-mini{width:113px;padding:4px;gap:2px}.junior-mode .jg-blueprint-v9 .jg-blueprint{width:185px;padding:5px;gap:2px}
  .junior-mode .jg-blueprint-v9 small{font-size:9px}.junior-mode .jg-blueprint-reference,.junior-mode .jg-blueprint-drawing{gap:6px}
  .junior-mode .jg-blueprint-palette{gap:7px}.junior-mode .jg-blueprint-palette .jg-card{padding:7px 3px;min-height:77px;border-radius:14px}.junior-mode .jg-blueprint-palette .jg-paint-square{width:32px;height:32px}.junior-mode .jg-blueprint-palette small{font-size:11px}
  .junior-mode .jg-mechanism-v9{padding:8px 10px;min-height:170px;--gear-scale:.86}.junior-mode .jg-machine-header{gap:8px;font-size:14px;height:62px}.junior-mode .jg-machine-header small{font-size:12px}
  .junior-mode .jg-mechanism-v9 .jg-machine-output{width:70px;height:54px;font-size:38px}.junior-mode .jg-mechanism-v9 .jg-machine-output svg{width:46px;height:46px}
  .junior-mode .jg-gear-chain{min-height:85px}.junior-mode .jg-gear-palette{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;--gear-scale:.8}
  .junior-mode .jg-gear-choice{min-height:117px;padding:6px 3px;gap:3px;border-radius:12px}.junior-mode .jg-gear-choice small{font-size:11px}.junior-mode .jg-gear-drawing{height:75px}
  .junior-mode .jg-animation-v9{height:218px}.junior-mode .jg-animation-v9 .jg-anim-hero{font-size:36px}
  .junior-mode .jg-frame-target{width:26px;height:26px;font-size:12px}.junior-mode .jg-frame-target.is-next{width:36px;height:36px;border-width:2px}.junior-mode .jg-frame-target.is-next small{top:37px;font-size:10px;padding:3px 5px}
  .junior-mode .jg-timeline-v9{gap:4px}.junior-mode .jg-frame-thumb{padding:2px;border-radius:6px;border-width:1px}.junior-mode .jg-thumb-scene{height:38px}.junior-mode .jg-thumb-scene i{font-size:17px}.junior-mode .jg-frame-thumb>small{font-size:10px}
  .junior-mode .jg-story-reference{gap:12px}.junior-mode .jg-story-strip .jg-slot{width:70px;height:76px}.junior-mode .jg-story-strip .jg-slot>small{font-size:10px}
  .junior-mode .jg-bee-garden{width:min(100%,305px)}.junior-mode .jg-bee-cell .jg-symbol{font-size:32px}.junior-mode .jg-route-bee .jg-symbol{font-size:32px}.junior-mode .jg-bee-grid{padding:3px;gap:2px}
  .junior-mode .jg-bee-legend{gap:10px;flex-wrap:wrap}.junior-mode .jg-bee-legend small{font-size:11px}
  .junior-mode .jg-harvest-baskets{padding:13px 0 28px}.junior-mode .jg-basket-reaction{font-size:12px;bottom:-23px}
}
@media(prefers-reduced-motion:reduce){
  .junior-mode .jg-frame-target.is-next,.junior-mode .jg-paint-work.is-mixing .jg-paint-cup,.junior-mode .jg-harvest-basket.is-correct,.junior-mode .jg-harvest-basket.is-wrong{animation:none}
  .junior-mode .jg-animation-v9 .jg-anim-hero{transition:none}
}

/* Обновление 10. Компактные подсказки мыши и настоящие 3D-мастерские. */
.junior-mode .jg-mouse-coach{margin:0;width:145px;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;text-align:center;color:#fff1cf;pointer-events:none;box-sizing:border-box}
.junior-mode .jg-mouse-coach svg{width:106px;height:154px;display:block;filter:drop-shadow(0 8px 8px #15284466)}
.junior-mode .jg-mouse-coach figcaption{display:flex;flex-direction:column;gap:8px;max-width:100%}
.junior-mode .jg-mouse-action{font:700 15px/1.2 Arial;color:#ffdf8c}
.junior-mode .jg-mouse-caption{font:600 14px/1.3 Arial;color:#e1e9f5}
.junior-mode .jg-mouse-left,.junior-mode .jg-mouse-right{transition:fill .15s}
.junior-mode .jg-mouse-coach:is([data-mode="click"],[data-mode="hold"],[data-mode="carrying"]) .jg-mouse-left{fill:#ffd05f}
.junior-mode .jg-mouse-coach[data-mode="right"] .jg-mouse-right{fill:#ffd05f}
.junior-mode .jg-mouse-coach[data-pressed="left"] .jg-mouse-left,.junior-mode .jg-mouse-coach[data-pressed="right"] .jg-mouse-right{fill:#6de8b4}
.junior-mode .jg-mouse-click-ring{transform-origin:37px 62px;animation:jw-mouse-tap 1.3s ease-in-out infinite}
.junior-mode .jg-mouse-coach[data-mode="right"] .jg-mouse-click-ring{cx:83px;transform-origin:83px 62px}
.junior-mode .jg-mouse-coach:is([data-mode="hold"],[data-mode="carrying"]) .jg-mouse-click-ring{animation:jw-mouse-hold 1.7s ease-in-out infinite}
.junior-mode .jg-chess-with-mouse{display:flex;align-items:center;justify-content:center;gap:30px;align-self:center;width:min(100%,620px)}
.junior-mode .jg-chess-with-mouse .jg-board{flex:none;aspect-ratio:1;height:auto}
.junior-mode .jg-rescue-with-mouse{display:grid;grid-template-columns:150px minmax(0,1fr);gap:24px;width:min(100%,1130px);align-self:center;align-items:center}
.junior-mode .jg-rescue-with-mouse .jg-rescue{width:100%;height:300px;min-height:0;box-sizing:border-box}

.junior-mode .jw-field{background:#75bbe4;isolation:isolate}
.junior-mode .jw-field .jg-world-title{max-width:calc(100% - 36px);pointer-events:none}
.junior-mode .jw-field .jg-world-title h3{font-size:23px}
.junior-mode .jw-field>.jg-world-goal:empty,.junior-mode .jw-field>.jg-world-controls:empty{display:none}
.junior-mode .jw-instruction{position:absolute;z-index:7;left:18px;right:18px;top:var(--jw-top,107px);display:flex;flex-direction:column;gap:5px;align-items:center;text-align:center;pointer-events:none;background:linear-gradient(110deg,#19354fe8,#244d64e0);border:1px solid #bbd9ec80;border-radius:15px;padding:9px 14px;box-sizing:border-box;color:#fff0c7;box-shadow:0 4px 18px #152f4933}
.junior-mode .jw-prompt{font:700 19px/1.25 Arial}
.junior-mode .jw-note{font:600 14px/1.25 Arial;color:#e0edf7}
.junior-mode .jw-toolbar{position:absolute;z-index:10;bottom:14px;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;max-width:calc(100% - 36px);width:max-content;box-sizing:border-box}
.junior-mode .jw-toolbar:empty{display:none}
.junior-mode .jw-button,.junior-mode .jw-small-button,.junior-mode .jw-key,.junior-mode .jw-choice,.junior-mode .jw-color{appearance:none;box-sizing:border-box;border:2px solid #b2d7ea99;border-bottom:5px solid #254663;background:linear-gradient(130deg,#4a718a,#375871);border-radius:14px;padding:9px 17px;min-height:46px;color:#fff3cf;font:700 16px/1.15 Arial,'QB Pictures',sans-serif;box-shadow:0 4px 16px #12354b44;cursor:pointer}
.junior-mode .jw-button{background:linear-gradient(120deg,#ffd578,#f7ad83);color:#34354e;border-color:#ffe9b4;border-bottom-color:#a5735c}
.junior-mode .jw-button:disabled,.junior-mode .jw-small-button:disabled,.junior-mode .jw-key:disabled{opacity:.5;cursor:default;box-shadow:none}
.junior-mode .jw-button.is-ready{box-shadow:0 0 0 4px #ffe5a53b,0 5px 20px #142b4f44}
.junior-mode .jw-small-button{font-size:13px;min-height:42px;padding:8px 13px}
.junior-mode .jw-key{font-size:25px;min-width:49px;min-height:47px;padding:4px 11px;line-height:1}
.junior-mode .jw-keypad{display:flex;gap:7px;padding:7px;border-radius:15px;background:#1c3a54d9}
.junior-mode .jw-choice,.junior-mode .jw-color{min-width:110px;min-height:75px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;padding:10px 16px;background:#294a68ed}
.junior-mode .jw-choice small,.junior-mode .jw-color small{font:700 13px Arial}
.junior-mode .jw-block-count{font:700 24px/1 Arial;letter-spacing:2px;color:#ffda74}
.junior-mode .jw-color{min-width:105px}
.junior-mode .jw-color i{display:block;width:36px;height:30px;border:2px solid #ffffff9c;border-radius:5px;box-sizing:border-box}
.junior-mode .jw-color.is-selected,.junior-mode .jw-choice.is-selected,.junior-mode .jw-hotspot.is-selected{outline:3px solid #ffe39b;outline-offset:2px;background:#655b79f2}
.junior-mode .jw-hotspot{position:absolute;z-index:5;appearance:none;transform:translate(-50%,-50%);display:grid;place-items:center;min-width:30px;min-height:29px;max-width:170px;padding:5px 8px;border:1px solid #c6e3edba;border-radius:11px;box-sizing:border-box;background:#183d58e8;color:#fff5d9;font:700 12px/1.2 Arial;white-space:normal;text-align:center;cursor:pointer;box-shadow:0 3px 10px #132e4e55;touch-action:manipulation}
.junior-mode .jw-hotspot:hover{background:#416d86;border-color:#fff4c5}
.junior-mode .jw-hotspot:disabled{cursor:default}
.junior-mode .jw-hotspot.is-done{background:#2d7968dc;color:#bcffe0;border-color:#a2ffdc;opacity:.65}
.junior-mode .jw-number{width:30px;height:30px;padding:0;border-radius:50%;font-size:15px;background:#2c4562eb}
.junior-mode .jw-gear-label{font-size:11px;min-height:34px;max-width:130px;padding:5px 7px;background:#1e4059ef}
.junior-mode .jw-port-label{font-size:24px;padding:3px 7px;min-width:38px;min-height:36px;color:#ffedab}
.junior-mode .jw-cell-hit,.junior-mode .jw-pawn-hit{width:37px;height:31px;min-height:0;min-width:0;padding:0;max-width:none;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:3px}
.junior-mode .jw-pawn-hit{width:42px;height:50px}
.junior-mode .jw-cell-hit:hover,.junior-mode .jw-cell-hit:focus-visible,.junior-mode .jw-pawn-hit:hover,.junior-mode .jw-pawn-hit:focus-visible{background:#f9ed9d26!important;outline:2px solid #fff1ad;outline-offset:0}
.junior-mode .jw-letter-card{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;background:#193f5ceb;border:2px solid #ffe5a2;border-radius:13px;width:76px;height:76px;color:#ffeca7;box-sizing:border-box}
.junior-mode .jw-letter-card small{font:700 10px Arial;letter-spacing:.04em}
.junior-mode .jw-letter-card b{font:700 40px/.95 Arial}
.junior-mode .jw-mouse-coach{position:absolute;left:13px;top:51%;transform:translateY(-50%);z-index:8;width:145px;background:#1c3b56d9;border:1px solid #accee467;padding:12px 8px;border-radius:18px}
.junior-mode .jw-chess3d .jw-instruction{align-items:flex-start;text-align:left}
.junior-mode .jw-habitat-legend{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap;padding:9px 13px;border:1px solid #bce9d38c;border-radius:13px;background:#1e4d46ed;color:#e1ffe9;font:700 13px Arial;max-width:100%;box-sizing:border-box}
.junior-mode .jw-habitat-legend span{padding:2px 6px}
.junior-mode .jw-field .jg-feedback{bottom:var(--jw-bottom,90px);right:18px;font-size:14px;max-width:min(420px,75%);z-index:7;padding:7px 10px;background:#173e55ed}

.junior-mode .jw-film3d .jw-toolbar{width:min(850px,calc(100% - 36px));flex-direction:column;gap:8px}
.junior-mode .jw-film-timeline{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:7px;width:100%;padding:6px;border-radius:13px;background:#163952c9;box-sizing:border-box}
.junior-mode .jw-film-thumb{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;height:57px;border:2px solid #a8cad076;border-radius:8px;box-sizing:border-box;background:#46718dbd;color:#dae8f0}
.junior-mode .jw-film-thumb>i{font:700 10px Arial;font-style:normal;position:absolute;top:3px;left:4px}
.junior-mode .jw-film-thumb>span{font:29px 'QB Pictures',Arial}
.junior-mode .jw-film-thumb.is-done{border-color:#91f4c6;background:#3f8274de}
.junior-mode .jw-film-thumb.is-current{border-color:#ffe09a;box-shadow:0 0 0 2px #ffe39a33}
.junior-mode .jw-film-thumb.is-car .jg-symbol{transform:scaleX(-1)}
.junior-mode .jw-film-actions{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;width:100%}
.junior-mode .jw-frame-target{width:32px;height:32px;padding:0;min-height:0;border-radius:50%;font:700 16px Arial;background:#2352719c;border:2px dashed #d3ecf2;opacity:.6}
.junior-mode .jw-frame-target.is-next{z-index:9;width:47px;height:47px;background:#ffe5a2;border:3px solid #fff7d7;color:#2b415a;opacity:1;box-shadow:0 0 0 7px #ffe8b148;animation:jw-frame-beacon 1.3s ease-in-out infinite}
.junior-mode .jw-frame-target.is-done{opacity:.25}
@keyframes jw-mouse-tap{50%{opacity:.3;stroke-width:6}}
@keyframes jw-mouse-hold{50%{stroke:#70efbd;stroke-width:6}}
@keyframes jw-frame-beacon{50%{box-shadow:0 0 0 13px #ffe8b118}}

@media(max-height:740px) and (min-width:761px){
  .junior-mode .jw-field .jg-world-title{top:10px;left:12px;padding:8px 12px}.junior-mode .jw-field .jg-world-title h3{font-size:21px}.junior-mode .jw-field .jg-world-title .jg-stage{margin-top:4px}
  .junior-mode .jw-instruction{left:12px;right:12px;padding:7px 10px;gap:4px}.junior-mode .jw-prompt{font-size:17px}.junior-mode .jw-note{font-size:13px}
  .junior-mode .jw-toolbar{bottom:10px;gap:8px}.junior-mode .jw-choice,.junior-mode .jw-color{min-height:64px;padding:7px 14px}
  .junior-mode .jw-film-thumb{height:45px}.junior-mode .jw-film-timeline{padding:4px}.junior-mode .jw-film3d .jw-toolbar{gap:6px}
  .junior-mode .jw-mouse-coach svg{width:90px;height:130px}.junior-mode .jg-rescue-with-mouse .jg-rescue{height:250px}
}
@media(max-width:760px){
  .junior-mode .jg-mouse-coach{width:83px;gap:7px}.junior-mode .jg-mouse-coach svg{width:64px;height:93px}.junior-mode .jg-mouse-action{font-size:11px}.junior-mode .jg-mouse-caption{font-size:11px}
  .junior-mode .jg-mouse-coach figcaption{gap:5px}.junior-mode .jg-chess-with-mouse{gap:12px}.junior-mode .jg-chess-with-mouse .jg-board{width:min(60vw,220px)}
  .junior-mode .jg-rescue-with-mouse{grid-template-columns:75px minmax(0,1fr);gap:9px}.junior-mode .jg-rescue-with-mouse .jg-mouse-coach{width:75px}
  .junior-mode .jg-rescue-with-mouse .jg-rescue{height:340px}.junior-mode .jg-rescue-with-mouse .jg-rescue-home{width:75px;height:75px;left:5%}.junior-mode .jg-rescue-with-mouse .jg-rescue-home .jg-symbol{font-size:40px}
  .junior-mode .jg-rescue-with-mouse .jg-rescue-robot{width:45px;height:54px}.junior-mode .jg-rescue-with-mouse .jg-rescue-robot .jg-symbol{font-size:32px}
  .junior-mode .jw-field .jg-world-title{top:10px;left:10px;padding:8px 10px;max-width:calc(100% - 20px)}.junior-mode .jw-field .jg-world-title h3{font-size:18px}.junior-mode .jw-field .jg-world-title .jg-heading{gap:10px}.junior-mode .jw-field .jg-world-title .jg-counter{font-size:12px;padding:4px 7px}
  .junior-mode .jw-instruction{left:10px;right:10px;padding:7px 9px;gap:5px;border-radius:12px}.junior-mode .jw-prompt{font-size:15px}.junior-mode .jw-note{font-size:12px;line-height:1.3}
  .junior-mode .jw-toolbar{max-width:calc(100% - 20px);bottom:10px;gap:7px}.junior-mode .jw-button{font-size:14px;min-height:44px;padding:9px 13px}.junior-mode .jw-small-button{font-size:12px;min-height:38px;padding:7px 10px}
  .junior-mode .jw-color{min-width:0;width:63px;min-height:66px;padding:6px 3px;gap:5px;border-radius:11px}.junior-mode .jw-color i{width:28px;height:25px}.junior-mode .jw-color small{font-size:10px}
  .junior-mode .jw-choice{min-width:0;width:88px;min-height:68px;padding:7px 6px;gap:5px;border-radius:11px}.junior-mode .jw-choice small{font-size:12px}.junior-mode .jw-block-count{font-size:20px;letter-spacing:0}
  .junior-mode .jw-hotspot{font-size:10px;padding:4px 5px;min-height:25px;min-width:25px;max-width:100px;border-radius:8px}.junior-mode .jw-number{width:25px;height:25px;padding:0;border-radius:50%;font-size:12px}
  .junior-mode .jw-gear-label{max-width:85px;min-height:30px;font-size:9px;padding:4px}.junior-mode .jw-port-label{min-width:29px;font-size:20px;padding:2px 5px}
  .junior-mode .jw-cell-hit{width:24px;height:21px;min-width:0;min-height:0;padding:0}.junior-mode .jw-pawn-hit{width:27px;height:34px;min-width:0;min-height:0;padding:0}
  .junior-mode .jw-key{min-width:39px;min-height:41px;padding:4px 9px;font-size:23px}.junior-mode .jw-keypad{gap:5px;padding:6px;border-radius:13px}
  .junior-mode .jw-letter-card{width:62px;height:62px}.junior-mode .jw-letter-card b{font-size:33px}.junior-mode .jw-letter-card small{font-size:9px}
  .junior-mode .jw-mouse-coach{left:7px;width:76px;padding:9px 5px;border-radius:14px;top:54%}.junior-mode .jw-mouse-coach svg{width:55px;height:80px}
  .junior-mode .jw-habitat-legend{padding:7px 8px;gap:5px;font-size:11px}.junior-mode .jw-habitat-legend span{padding:2px 3px}
  .junior-mode .jw-film3d .jw-toolbar{width:calc(100% - 20px);gap:7px}.junior-mode .jw-film-timeline{gap:4px;padding:5px}.junior-mode .jw-film-thumb{height:45px;border-width:1px}.junior-mode .jw-film-thumb>span{font-size:20px}.junior-mode .jw-film-thumb>i{font-size:9px;top:2px;left:3px}
  .junior-mode .jw-film-actions{gap:7px}.junior-mode .jw-film-actions .jw-button{font-size:13px}.junior-mode .jw-film-actions .jw-small-button{font-size:11px}
  .junior-mode .jw-frame-target{width:25px;height:25px;min-height:0;min-width:0;font-size:12px;padding:0;border-radius:50%}.junior-mode .jw-frame-target.is-next{width:34px;height:34px;border-width:2px}
  .junior-mode .jw-field .jg-feedback{right:10px;max-width:calc(100% - 20px);font-size:12px;padding:6px 8px}
}
@media(prefers-reduced-motion:reduce){.junior-mode .jg-mouse-click-ring,.junior-mode .jw-frame-target.is-next{animation:none}}
.junior-mode .jw-hotspot:disabled{pointer-events:none}
.junior-mode .jw-habitat-legend>span{display:flex;align-items:center;justify-content:center;gap:5px}
.junior-mode .jw-habitat-legend .jg-symbol{font-size:27px}
.junior-mode .jw-habitat-legend svg{display:block;width:33px;height:33px}
@media(max-width:760px){.junior-mode .jw-habitat-legend .jg-symbol{font-size:23px}.junior-mode .jw-habitat-legend svg{width:28px;height:28px}}
@media(max-width:760px){.junior-mode .jw-gear-label{width:60px;max-width:60px;min-width:0;font-size:9px;padding:4px 3px}}

/* Update 11: original logos, click diagrams and the animation studio. */
.junior-mode #gameScreen .quantum-logo{padding:4px;box-sizing:border-box;background:linear-gradient(145deg,#f1ecde,#c6e0e8);border-color:#dcecf2aa}
.junior-mode #gameScreen .quantum-logo img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.junior-mode .jg-click-workspace{display:grid;grid-template-columns:145px minmax(0,1fr);align-items:center;gap:24px;width:min(100%,1120px);align-self:center;min-width:0}
.junior-mode .jg-click-area{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;min-width:0}
.junior-mode .jg-click-harvest .jg-harvest-belt{width:100%;gap:12px}
.junior-mode .jg-click-harvest .jg-harvest-item{width:clamp(64px,7vw,105px)}
.junior-mode .jg-click-network{width:min(100%,760px)}
.junior-mode .jg-click-network .jg-network{align-self:center;width:min(100%,430px);grid-template-columns:36px minmax(0,1fr) 36px}
.junior-mode .jg-click-network .jg-network-board{min-width:0}
.junior-mode .jw-pose-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:min(100%,670px)}
.junior-mode .jw-pose-button{appearance:none;display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:42px;padding:7px 9px;border:1px solid #bcd9eb88;border-bottom:4px solid #1c3d57;border-radius:12px;background:#254e6ce8;color:#f0f4e9;font:700 12px/1.15 Arial;box-sizing:border-box;cursor:pointer}
.junior-mode .jw-pose-button i{display:block;width:15px;height:23px;border:1px solid #ffffffa0;border-radius:5px;flex:none}
.junior-mode .jw-pose-button b{font:700 23px Arial;color:#ffe9a8}
.junior-mode .jw-pose-button:disabled{opacity:.48;cursor:default}
.junior-mode .jw-pose-reel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;width:255px;max-width:100%}
.junior-mode .jw-pose-reel>span{display:flex;align-items:center;justify-content:center;position:relative;height:55px;min-width:0;padding:10px 5px 2px;border:2px solid #9bbac980;border-radius:10px;background:#244b64db;box-sizing:border-box;color:#b0ccdc}
.junior-mode .jw-pose-reel small{position:absolute;left:0;right:0;top:3px;text-align:center;font:700 9px Arial;color:#e5ecf2}
.junior-mode .jw-pose-reel b{font:700 25px Arial}
.junior-mode .jw-pose-reel svg{height:40px;width:42px;display:block}
.junior-mode .jw-pose-reel .is-done{border-color:#8ce7c3;background:#306c69e0}
.junior-mode .jw-pose-reel .is-current{box-shadow:0 0 0 2px #ffdf8d40;border-color:#ffe4a1}
.junior-mode .jw-pose-hit{min-width:0;min-height:0;width:44px;height:44px;padding:0;border:0!important;background:transparent!important;box-shadow:none!important}
.junior-mode .jw-pose-hit:hover{outline:2px solid #ffe8a7;background:#ffed9d22!important}
.junior-mode .jw-capture-flash{position:absolute;inset:0;background:#ffffff;opacity:0;z-index:15;pointer-events:none}
@media(max-height:740px) and (min-width:761px){.junior-mode .jw-pose-reel>span{height:46px}.junior-mode .jw-pose-reel svg{height:32px}.junior-mode .jw-pose-controls{gap:6px}.junior-mode .jw-pose-button{min-height:38px;padding:5px 8px}}
@media(max-width:760px){
 .junior-mode .jg-click-workspace{grid-template-columns:75px minmax(0,1fr);gap:9px}.junior-mode .jg-click-workspace .jg-mouse-coach{width:75px}
 .junior-mode .jg-click-area{gap:13px}.junior-mode .jg-click-harvest .jg-harvest-belt{gap:8px;min-height:0;padding:10px 7px 16px}
 .junior-mode .jg-click-harvest .jg-harvest-item{width:60px;min-height:62px;padding:5px}.junior-mode .jg-click-harvest .jg-harvest-item .jg-symbol{font-size:35px}
 .junior-mode .jg-click-harvest .jg-harvest-basket{width:62px;height:91px}.junior-mode .jg-click-harvest .jg-harvest-baskets{gap:8px}
 .junior-mode .jg-click-network .jg-network{grid-template-columns:24px minmax(0,1fr) 24px;gap:3px;width:100%}.junior-mode .jg-click-network .jg-network-source,.junior-mode .jg-click-network .jg-network-goal{font-size:24px}
 .junior-mode .jg-click-network .jg-network-board{gap:3px}.junior-mode .jg-click-network .jg-wire{padding:0;border-radius:7px}
 .junior-mode .jw-pose-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:min(100%,325px)}
 .junior-mode .jw-pose-button{min-height:35px;padding:5px 6px;font-size:10px;gap:5px;border-radius:10px}.junior-mode .jw-pose-button i{height:19px;width:12px}.junior-mode .jw-pose-button b{font-size:19px}
 .junior-mode .jw-pose-reel{width:228px;gap:7px}.junior-mode .jw-pose-reel>span{height:46px}.junior-mode .jw-pose-reel svg{height:33px}
 .junior-mode .jw-pose-hit{width:29px;height:34px}
}

/* November update: direct controls and a single horizontal paint workflow. */
.junior-mode [hidden]{display:none!important}
.junior-mode .jg-paint-work{width:min(100%,880px);gap:14px;min-height:100px;flex-wrap:nowrap}
.junior-mode .jg-paint-work .jg-mix-action{flex:0 1 185px;min-width:115px;align-self:center;margin:0;font-size:17px;padding:13px 14px}
.junior-mode .jg-paint-work .jg-paint-result{flex:0 1 150px;min-width:80px;flex-direction:column;gap:7px;text-align:center;font-size:14px}
.junior-mode .jg-paint-work .jg-paint-cup{flex:0 1 125px;min-width:78px}
.junior-mode .jg-paint-result .jg-new-paint{width:72px;height:52px}
.junior-mode .jg-bee-layout{display:flex;align-items:center;justify-content:center;gap:26px;width:min(100%,620px);align-self:center}
.junior-mode .jg-bee-layout .jg-bee-garden{flex:0 1 340px;width:340px}
.junior-mode .jg-arrow-coach{flex:0 0 170px;display:flex;flex-direction:column;align-items:center;gap:14px;padding:18px 12px;box-sizing:border-box;background:#193a52c9;border:1px solid #b2d4dd66;border-radius:20px;color:#e5f2f2;text-align:center}
.junior-mode .jg-arrow-coach strong{font:700 17px/1.25 Arial}
.junior-mode .jg-arrow-coach small{font:13px/1.45 Arial;color:#c2dbe4}
.junior-mode .jg-arrow-coach-pad{display:grid;grid-template-columns:repeat(3,43px);grid-template-rows:repeat(2,43px);gap:5px}
.junior-mode .jg-coach-key{appearance:none;display:grid;place-items:center;padding:0;border:2px solid #bad8e3;border-bottom:5px solid #26415d;border-radius:9px;background:linear-gradient(#6c94ac,#426079);color:#fff5ce;font:700 26px Arial;cursor:pointer;touch-action:manipulation}
.junior-mode .jg-coach-key[data-direction="ArrowUp"]{grid-column:2;grid-row:1;animation:jg-key-invite 2.4s ease-in-out infinite}
.junior-mode .jg-coach-key[data-direction="ArrowLeft"]{grid-column:1;grid-row:2}
.junior-mode .jg-coach-key[data-direction="ArrowDown"]{grid-column:2;grid-row:2}
.junior-mode .jg-coach-key[data-direction="ArrowRight"]{grid-column:3;grid-row:2}
.junior-mode .jg-coach-key.is-pressed,.junior-mode .jw-key.is-pressed{background:#70ecc2;color:#193b50;border-color:#c1ffe8;box-shadow:0 0 0 4px #60f2bd33;transform:translateY(3px);animation:none}
.junior-mode .jg-route-bee{transition:left .13s ease-out,top .13s ease-out}
.junior-mode .jw-icon-instruction .jw-prompt,.junior-mode .jw-icon-instruction .jw-note{display:none}
.junior-mode .jw-icon-instruction{padding:6px 12px}
.junior-mode .jw-icon-instruction .jw-habitat-legend{border:0;background:transparent;padding:0;gap:24px}
.junior-mode .jw-icon-instruction .jw-habitat-legend .jg-symbol{font-size:34px}
.junior-mode .jw-icon-instruction .jw-habitat-legend svg{width:40px;height:40px}
.junior-mode .jw-letter-heading{display:flex;align-items:center;justify-content:center;gap:17px;font:700 clamp(23px,2.6vw,38px)/1.1 Arial}
.junior-mode .jw-target-letter{color:var(--target-color,#ffe16b);font:900 clamp(44px,4vw,64px)/1 Arial;text-shadow:0 2px 0 #122b45,0 0 25px #ffffff55;-webkit-text-stroke:1px #fff3}
.junior-mode .jw-letter-preview{display:block;flex:none;width:94px!important;height:94px!important;filter:drop-shadow(0 6px 7px #132b4966)}
.junior-mode .jw-letters3d .jw-instruction{gap:0;padding:1px 12px 8px}
.junior-mode .jg-train-order{border:1px solid #aacbdf80;background:#1b3654;border-radius:17px;min-height:78px;padding:10px 26px;display:flex;align-self:center;align-items:center;justify-content:center;gap:16px;color:#ffe8a3}
.junior-mode .jg-train-order small{font:700 12px Arial;max-width:100px;letter-spacing:1px}
.junior-mode .jg-train-order strong{font:800 40px Arial;white-space:nowrap}
.junior-mode .jg-train-order span{font:700 16px Arial}
.junior-mode .jg-train-scene{position:relative;width:min(100%,860px);height:245px;align-self:center;overflow:hidden;border:2px solid #a4c9d880;border-radius:23px;background:linear-gradient(#7cb9d1 0%,#b2d9dc 68%,#a0bc8b 68%,#70997d 100%)}
.junior-mode .jg-train-cloud{position:absolute;top:26px;left:11%;width:110px;height:22px;border-radius:40px;background:#e2f2eb88;box-shadow:30px -9px 0 6px #e2f2eb66}
.junior-mode .jg-train-cloud.cloud-b{left:70%;top:40px;transform:scale(.7)}
.junior-mode .jg-train-station{position:absolute;top:47px;right:7%;width:130px;height:105px;background:#eacb94;border:6px solid #987d65;border-top:14px solid #d78270;box-sizing:border-box}
.junior-mode .jg-train-station:before{content:'';position:absolute;left:38px;top:35px;width:32px;height:48px;background:#427084;border:4px solid #fff1c6}
.junior-mode .jg-train-station span{position:absolute;top:4px;left:-17px;right:-17px;padding:5px;background:#284c64;border-radius:5px;color:#fff1c5;font:700 10px Arial;text-align:center}
.junior-mode .jg-train-track{position:absolute;left:0;right:0;bottom:27px;height:15px;border-top:5px solid #738c98;border-bottom:5px solid #466477;background:repeating-linear-gradient(90deg,#9d886b 0 11px,transparent 11px 25px)}
.junior-mode .jg-freight-train{position:absolute;bottom:47px;left:8%;display:flex;align-items:flex-end;gap:17px;width:78%;max-width:610px;transition:transform 1.3s cubic-bezier(.4,0,.7,1)}
.junior-mode .jg-freight-train:after{content:'';position:absolute;left:15%;right:0;bottom:8px;height:7px;background:#314558;z-index:0}
.junior-mode .jg-locomotive{position:relative;flex:0 0 26%;height:74px;background:#2f8daf;border:4px solid #9ce0e4;border-radius:14px 25px 8px 8px;box-sizing:border-box;z-index:1}
.junior-mode .jg-locomotive:before{content:'';position:absolute;left:7px;top:-40px;width:45%;height:58px;background:#3b718a;border:5px solid #a3e1dc;border-radius:10px 10px 0 0}
.junior-mode .jg-locomotive i{position:absolute;left:18px;top:-28px;width:30%;height:23px;background:#c8f0ed;border-radius:3px}
.junior-mode .jg-locomotive b{position:absolute;right:12px;top:12px;color:#ffe2a2;font:30px Arial}
.junior-mode .jg-locomotive:after,.junior-mode .jg-freight-wagon:after{content:'';position:absolute;left:12px;bottom:-15px;width:26px;height:26px;border-radius:50%;background:#a8c8d1;border:7px solid #334c62;box-sizing:border-box;box-shadow:80px 0 0 -1px #334c62}
.junior-mode .jg-freight-wagon{flex:1;height:92px;min-width:0;position:relative;background:#e1ad61;border:5px solid #ffe0a0;border-radius:6px 6px 13px 13px;z-index:1;box-shadow:inset 0 -12px 0 #b8874c}
.junior-mode .jg-freight-wagon:after{left:15%;box-shadow:130px 0 0 -1px #334c62}
.junior-mode .jg-wagon-cargo{position:absolute;bottom:15px;left:8px;right:8px;display:grid;grid-template-columns:repeat(5,1fr);gap:5px;align-content:end}
.junior-mode .jg-cargo-crate{display:block;height:29px;box-sizing:border-box;border:3px solid #f5c587;background:linear-gradient(45deg,transparent 44%,#deb27b 44% 54%,transparent 54%),#927352;border-radius:3px;box-shadow:3px -3px 0 #67543d}
.junior-mode .jg-wagon-count{position:absolute;right:-12px;top:-23px;display:grid;place-items:center;width:37px;height:37px;background:#254c65;border:3px solid #b4e5db;border-radius:50%;color:#ffe6a6;font:700 22px Arial}
.junior-mode .jg-load-crates{display:flex;align-items:center;gap:12px;min-width:110px;justify-content:center}
.junior-mode .jg-crate-icon{letter-spacing:2px;color:#ffe6a7}
.junior-mode .jg-send-train{align-self:center;background:linear-gradient(120deg,#ffe19b,#efb67e);color:#293f58}
.junior-mode .jg-train-scene.is-departing .jg-freight-train{transform:translateX(120%)}
@keyframes jg-key-invite{50%{box-shadow:0 0 0 5px #b3edd526}}
@media(max-width:760px){
 .junior-mode .jg-paint-work{gap:8px}.junior-mode .jg-paint-work .jg-mix-action{font-size:14px;min-width:92px;padding:9px 8px;flex-basis:120px}.junior-mode .jg-paint-work .jg-paint-result{font-size:12px;min-width:60px}.junior-mode .jg-paint-result .jg-new-paint{width:53px;height:40px}
 .junior-mode .jg-bee-layout{gap:12px}.junior-mode .jg-arrow-coach{flex-basis:116px;padding:12px 4px}.junior-mode .jg-arrow-coach strong{font-size:13px}.junior-mode .jg-arrow-coach small{font-size:10px}.junior-mode .jg-arrow-coach-pad{grid-template-columns:repeat(3,30px);grid-template-rows:repeat(2,34px);gap:3px}.junior-mode .jg-coach-key{font-size:22px}
 .junior-mode .jw-letter-preview{width:70px!important;height:70px!important}.junior-mode .jw-letter-heading{gap:9px}.junior-mode .jw-icon-instruction .jw-habitat-legend{gap:8px}.junior-mode .jw-icon-instruction .jw-habitat-legend .jg-symbol{font-size:26px}.junior-mode .jw-icon-instruction .jw-habitat-legend svg{width:30px;height:30px}
 .junior-mode .jg-train-scene{height:210px}.junior-mode .jg-train-order{gap:10px;padding:8px 14px}.junior-mode .jg-train-order strong{font-size:32px}.junior-mode .jg-load-crates{min-width:80px}.junior-mode .jg-freight-wagon:after{box-shadow:80px 0 0 -1px #334c62}.junior-mode .jg-locomotive:after{box-shadow:40px 0 0 -1px #334c62}
}
@media(max-width:480px){
 .junior-mode .jg-paint-work{gap:5px}.junior-mode .jg-paint-work .jg-paint-cup{min-width:56px;width:64px;height:78px;padding:3px}.junior-mode .jg-paint-work .jg-paint-cup .jg-color-chip small{font-size:10px}.junior-mode .jg-paint-work .jg-mix-action{min-width:69px;font-size:12px;flex-basis:78px}.junior-mode .jg-paint-work .jg-paint-result{min-width:44px;font-size:10px;gap:4px}.junior-mode .jg-paint-result .jg-new-paint{width:40px;height:32px}.junior-mode .jg-paint-plus{font-size:18px}
 .junior-mode .jg-bee-layout .jg-bee-garden{flex-basis:245px}.junior-mode .jg-arrow-coach{flex-basis:96px}.junior-mode .jg-arrow-coach-pad{grid-template-columns:repeat(3,26px);grid-template-rows:repeat(2,31px)}.junior-mode .jg-bee-layout{gap:7px}.junior-mode .jg-bee-cell .jg-symbol{font-size:25px}.junior-mode .jg-route-bee .jg-symbol{font-size:27px}
 .junior-mode .jw-letter-heading{font-size:22px}.junior-mode .jw-target-letter{font-size:42px}.junior-mode .jw-letter-preview{width:60px!important;height:60px!important}
 .junior-mode .jg-train-order small{font-size:10px;max-width:70px}.junior-mode .jg-cargo-crate{height:23px}.junior-mode .jg-wagon-cargo{gap:3px}.junior-mode .jg-train-scene{height:200px}.junior-mode .jg-freight-train{left:5%;width:88%;gap:10px}
}
@media(prefers-reduced-motion:reduce){.junior-mode .jg-coach-key[data-direction="ArrowUp"]{animation:none}.junior-mode .jg-freight-train,.junior-mode .jg-route-bee{transition:none}}
.junior-mode .jw-letter-heading .jw-letter-preview{position:static!important;inset:auto!important;max-width:none!important;object-fit:initial}
.junior-mode .jg-shell[data-game="pollinate"] .jg-content>.jg-secondary{align-self:center;padding-left:24px;padding-right:24px}

/* Смешанный режим: общий экран — единый 3D-город в сдержанной тёмной палитре общего режима. */
body[data-qb-surface="board"].qb-mixed-board{overflow:auto;background:radial-gradient(ellipse at 16% 5%,#163449,transparent 55%),linear-gradient(130deg,#060913,#0b1527 65%,#101b2c);color:#f4f7ff}
body[data-qb-surface="board"].qb-mixed-board #leaderboardView,body[data-qb-surface="board"].qb-mixed-board #introShow,body[data-qb-surface="board"].qb-mixed-board #winnerOverlay,body[data-qb-surface="board"].qb-mixed-board #spaceHint,body[data-qb-surface="board"].qb-mixed-board #soundHint{display:none!important}
.qb-mixed-board #juniorMissionDisplay{max-width:1560px;margin:10px auto;padding:0 16px}
.qb-mixed-board .jm-city{background:linear-gradient(145deg,#101c2f,#131d31);border:1px solid rgba(109,181,216,.22);color:#e2ebf8}
.qb-mixed-board .jm-heading h2{color:#ebf8ff}
.qb-mixed-board .jm-phase,.qb-mixed-board .jm-caption{color:#9fadc2}
.qb-mixed-board .jm-eyebrow{color:#86b6c5}
.qb-mixed-board .jm-total{background:rgba(62,108,139,.17);border-color:#487ba05e}
.qb-mixed-board .jm-scene{height:clamp(430px,68vh,900px)}
@media(max-width:760px){.qb-mixed-board .jm-scene{height:60vh;min-height:320px}}

/* Liquid-glass title for the fullscreen city viewer, isolated from game HUD. */
.jm-city-glass-title{display:none;pointer-events:none;position:absolute;z-index:8;top:clamp(18px,3.1vh,38px);left:50%;transform:translateX(-50%);max-width:calc(100vw - 130px);padding:15px 32px;gap:13px;align-items:center;justify-content:center;white-space:nowrap;color:#163d39;border:1px solid rgba(255,255,255,.90);border-radius:999px;background:radial-gradient(ellipse at 12% 0%,rgba(185,249,223,.66),transparent 62%),linear-gradient(135deg,rgba(255,255,255,.87),rgba(236,255,252,.64) 58%,rgba(223,239,255,.79));box-shadow:inset 0 1px 0 rgba(255,255,255,1),inset 0 -1px 0 rgba(255,255,255,.45),0 14px 50px rgba(28,69,92,.22),0 3px 10px rgba(7,55,73,.10);backdrop-filter:blur(26px) saturate(1.7);-webkit-backdrop-filter:blur(26px) saturate(1.7)}
.jm-city-glass-title:before{content:'';position:absolute;inset:3px 8px auto;height:28%;border-radius:999px;background:linear-gradient(180deg,rgba(255,255,255,.53),transparent);pointer-events:none}.jm-city-glass-title strong{position:relative;font-family:Arial,'Segoe UI',sans-serif;font-weight:800;font-size:clamp(15px,1.6vw,25px);letter-spacing:-.025em;text-shadow:0 1px rgba(255,255,255,.64)}.jm-city-glass-title em{font-style:normal;color:#128b71}.jm-city-brand-separator{color:#89a9a0}.jm-city-brand-mark{position:relative;display:grid;place-items:center;flex:none;width:33px;height:33px;border-radius:12px;color:#fff;background:linear-gradient(140deg,#64d9b2,#49a7d2);box-shadow:inset 0 1px rgba(255,255,255,.75),0 4px 10px rgba(31,138,132,.22);font-size:21px}
.jm-scene.jm-immersive>.jm-city-glass-title,.jm-scene:fullscreen>.jm-city-glass-title{display:flex}.jm-demo-view .jm-district-toolbar,.jm-demo-view .jm-district-cards,.jm-demo-view .jm-award,.jm-demo-view .jm-rules{display:none!important}.jm-demo-scene .jm-scene-caption,.jm-demo-scene .jm-scene-notice{display:none!important}
body[data-qb-surface="board"].qb-demo-city{overflow:auto!important}body[data-qb-surface="board"].qb-demo-city #leaderboardView,body[data-qb-surface="board"].qb-demo-city #introShow,body[data-qb-surface="board"].qb-demo-city #winnerOverlay,body[data-qb-surface="board"].qb-demo-city #spaceHint,body[data-qb-surface="board"].qb-demo-city #soundHint{display:none!important}
body[data-qb-surface="board"].qb-demo-city #juniorMissionDisplay{display:block!important}
@media(max-width:730px){.jm-city-glass-title{max-width:calc(100vw - 75px);padding:12px 15px;gap:7px;white-space:normal;text-align:center}.jm-city-glass-title strong{font-size:clamp(12px,3vw,17px)}.jm-city-brand-mark{width:28px;height:28px;border-radius:10px;font-size:17px;flex-shrink:0}}
