.learning-path{margin-top:27px;padding-top:23px;border-top:1px dashed #c9deeb}.learning-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.learning-head h3{font-size:22px;letter-spacing:-.5px;color:#5e5796;margin-top:4px}.learning-head .section-kicker{font-size:10px;color:#8b6ca6}.path-counter{font-size:11px;background:#e9def8;color:#9069ae;padding:6px 13px;border:1px solid #ddc7ed;border-radius:30px;white-space:nowrap}.path-progress{height:7px;border-radius:20px;background:#e6eef1;overflow:hidden;margin-top:17px}.path-progress>span{display:block;height:100%;background:linear-gradient(90deg,#9b66d0,#75bf93);border-radius:20px;transition:width .3s}.learning-track{display:grid;grid-template-columns:repeat(var(--steps),1fr);gap:14px;margin-top:20px;position:relative}.learning-track:before{content:"";position:absolute;top:32px;left:6%;right:6%;border-top:2px dashed #d2d9e4;z-index:0}.path-stop{position:relative;padding:3px 4px 0;background:transparent;text-align:center;z-index:1;border-radius:13px;transition:transform .17s}.path-stop:hover{transform:translateY(-4px)}.path-picture{display:block;position:relative;width:65px;height:65px;margin:auto;border:3px solid white;border-radius:21px;box-shadow:0 3px 0 #c6d3df,0 6px 12px #4f6c7d10;background:#d7e9e5}.path-picture img{height:100%;width:100%;object-fit:cover;border-radius:17px;display:block}.path-picture>b{position:absolute;bottom:-5px;left:-6px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;font-size:10px;line-height:1;background:#e5d9f1;border:2px solid white;color:#9171a4;box-shadow:0 2px 0 #c0a8d0}.path-stop.next .path-picture{outline:2px solid #b483d7;outline-offset:3px;box-shadow:0 4px 0 #bca2d3}.path-stop.next .path-picture>b{background:#a56ed2;color:#fff}.path-stop.done .path-picture{outline:2px solid #9ac98a;outline-offset:2px;box-shadow:0 4px 0 #a6c595}.path-stop.done .path-picture>b{background:#91bf80;color:white}.path-stop>strong{display:block;font-size:11px;color:#6c648b;line-height:1.4;margin-top:13px;white-space:normal}.path-stop>small{display:block;font-size:9px;color:#9b95ab;margin-top:3px}.path-stop.done>small{color:#709968}.path-stop.next>small{color:#a575c1}.learning-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:20px;padding-top:15px;border-top:1px solid #e5e9ec}.learning-bottom p{font-size:10px;color:#78939d}.path-continue{background:linear-gradient(145deg,#a872dc,#8a52bf);border:1px solid #b083d6;border-radius:11px;box-shadow:0 3px 0 #74409f;padding:9px 16px;font-size:11px;color:white;white-space:nowrap;font-weight:bold}.path-continue:hover{transform:translateY(-2px)}.new-game-tag{background:#eee0ff;color:#9b62be;padding:2px 7px;border-radius:20px;font-size:8px}.parent-learning{border:1px solid #e4deee;border-radius:14px;padding:14px;margin-bottom:18px;background:#fbf9ff}.parent-learning h3{font-size:13px;color:#8c72a1;margin-bottom:10px}.parent-learning>div{display:grid;grid-template-columns:90px 43px 1fr;align-items:center;gap:12px;padding:6px 0;font-size:11px;color:#9486a1}.parent-learning>div>strong{font-size:10px;direction:ltr;text-align:right;color:#ae90c0}.parent-path-track{display:block;background:#ece5f3;border-radius:9px;height:5px;overflow:hidden}.parent-path-track i{display:block;height:100%;border-radius:9px;background:#b295ce}.game-tools{display:flex;align-items:center;gap:9px}.game-header .game-tools .icon-button{height:38px;width:38px;min-width:38px;font-size:21px}.game-tools #readButton[aria-pressed="true"]{background:#e4daf4;color:#9369b5;border-color:#c9b2de;box-shadow:0 3px 0 #b69bcf}
/* A tap swaps two pieces, so the picture puzzle works without precise dragging. */
.swap-frame{position:relative;width:min(365px,100%);padding:9px;border:3px solid #e0d0a7;background:linear-gradient(145deg,#d9c99f,#c3ae82);border-radius:20px;box-shadow:0 6px 0 #a69065,0 12px 23px #8f795524}.swap-board{display:grid;grid-template-columns:repeat(var(--grid),1fr);gap:5px;aspect-ratio:1;background:#bca87f;border-radius:11px;overflow:hidden}.swap-piece{position:relative;min-width:0;padding:0;border-radius:6px;border:1px solid #ffffff88;background-image:url('./assets/school-world.webp');background-size:var(--image-size) var(--image-size);background-position:var(--piece-x) var(--piece-y);box-shadow:0 2px 0 #72795b66,inset 0 1px 0 #ffffff66;transition:transform .15s,filter .15s}.swap-piece:hover:not(:disabled){transform:scale(.97)}.swap-piece.selected{outline:4px solid #ffe17a;outline-offset:-4px;filter:brightness(1.13);transform:scale(.96);z-index:1}.piece-check{display:none;position:absolute;right:6px;top:6px;height:23px;width:23px;border-radius:50%;font-size:12px;background:#fff0bd;color:#b19753;line-height:23px;box-shadow:0 2px 0 #d4b46e}.swap-piece.selected .piece-check{display:block}.swap-look{display:none;position:absolute;inset:9px;background:url('./assets/school-world.webp') center/100% 100%;border-radius:10px;pointer-events:none}.swap-frame.looking .swap-look{display:block}.swap-frame.completed .swap-board{gap:1px}.swap-frame.completed .swap-piece{border-radius:0;border:0;box-shadow:none}.play-tip{font-size:11px;color:#938474;margin-top:16px;text-align:center}.game-dialog[data-game="puzzle"] .game-body:before{background-image:url('./assets/school-world.webp');opacity:.06}.game-dialog[data-game="code"] .game-body:before{background-image:url('./assets/puzzle.webp');opacity:.045}
.code-lab{display:flex;flex-direction:column;align-items:center;width:min(440px,100%)}.secret-lock{display:flex;align-items:center;justify-content:center;gap:9px;direction:ltr;padding:9px 17px;background:linear-gradient(#eadff2,#d8c6e4);border:2px solid #eddfef;box-shadow:0 4px 0 #bca3ca;border-radius:14px;min-height:56px;min-width:165px}.secret-lock>span:not(.code-gem){color:#aa8aba;font-size:28px;line-height:1;text-shadow:0 2px 0 #f6edf7}.code-caption{font-size:10px;color:#a18aaa;margin-top:12px;margin-bottom:15px}.code-slots{display:flex;gap:10px;justify-content:center;direction:ltr}.code-slot{height:58px;width:58px;border-radius:15px;background:#fffaf0;border:2px solid #e8dbbf;box-shadow:0 4px 0 #ccb890;display:grid;place-items:center;padding:4px}.code-slot.selected{outline:3px solid #b991d2;outline-offset:3px}.empty-code{color:#c5b89a;font-size:26px}.code-gem{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;border-radius:11px;background:linear-gradient(145deg,#ffffff44,#ffffff00),var(--gem);color:#fffdf1;font-size:25px;line-height:1;text-shadow:0 2px 0 #34344a30;box-shadow:inset 0 2px 0 #ffffff55,0 3px 0 color-mix(in srgb,var(--gem) 78%,#574a69);border:1px solid #fff3}.code-palette{display:flex;justify-content:center;gap:9px;margin-top:20px;direction:ltr}.code-palette button{background:transparent;padding:3px 4px 0;border-radius:11px;transition:transform .15s;min-width:44px}.code-palette button:hover:not(:disabled){transform:translateY(-3px)}.code-palette small{display:block;font-size:8px;line-height:1.4;margin-top:8px;color:#9987a4}.code-check{font-size:12px;min-height:41px;border-radius:12px;padding:9px 20px;gap:25px;margin-top:20px}.code-check:disabled{opacity:.45;box-shadow:0 3px 0 #b9a4cf;transform:none}.code-legend{display:flex;gap:16px;font-size:9px;color:#a291ab;margin-top:20px}.code-legend>span{display:flex;align-items:center;gap:6px}.peg{display:inline-block;height:9px;width:9px;border-radius:50%;flex-shrink:0;border:1px solid #ffffff77;box-shadow:0 1px 0 #887e8e22}.peg.exact{background:#85b883}.peg.misplaced{background:#e7c36a}.peg.absent{background:#e2d9e7}.code-history{width:100%;max-height:145px;overflow:auto;margin-top:13px;padding:0 6px;scrollbar-width:thin;overscroll-behavior:contain}.code-history-row{display:flex;align-items:center;gap:11px;padding:8px 6px;border-bottom:1px solid #e8dfeb;direction:ltr}.attempt{font-size:10px;color:#b4a3bb;min-width:13px}.history-gems{display:flex;gap:7px}.code-gem.small{height:25px;width:25px;border-radius:7px;font-size:16px;box-shadow:inset 0 1px 0 #ffffff55,0 2px 0 color-mix(in srgb,var(--gem) 78%,#574a69)}.history-pegs{display:flex;align-items:center;gap:5px;margin-left:auto}
@media(max-width:760px){.learning-head h3{font-size:20px}.learning-track{gap:8px}.path-picture{width:57px;height:57px;border-radius:18px}.path-picture img{border-radius:15px}.learning-track:before{top:29px}.path-stop>strong{font-size:10px}.path-stop>small{font-size:8px}.learning-bottom p{font-size:9px}.path-continue{font-size:10px;padding:8px 13px}.path-counter{font-size:10px;padding:5px 10px}.learning-head{gap:14px}.game-header .game-tools .icon-button{height:35px;width:35px;min-width:35px}.game-tools{gap:7px}}
@media(max-width:480px){.learning-path{margin-top:23px;padding-top:19px}.learning-head{align-items:flex-end;gap:12px}.learning-head h3{font-size:19px;line-height:1.3;letter-spacing:-.5px}.learning-head .section-kicker{font-size:8px}.path-counter{font-size:8px;white-space:nowrap;padding:5px 8px}.path-progress{margin-top:14px;height:6px}.learning-track{grid-template-columns:repeat(3,1fr);gap:19px 10px;margin-top:19px}.learning-track:before{display:none}.path-picture{height:59px;width:59px;border-radius:18px}.path-picture img{border-radius:15px}.path-picture>b{height:22px;width:22px;left:-5px;bottom:-4px;font-size:10px}.path-stop>strong{font-size:10px;margin-top:10px;line-height:1.35}.path-stop>small{font-size:8px;margin-top:2px}.learning-bottom{align-items:center;gap:14px;margin-top:18px;padding-top:13px}.learning-bottom p{font-size:8px;line-height:1.8;max-width:160px}.path-continue{font-size:9px;padding:8px 11px;min-height:37px;white-space:nowrap}.game-header{gap:8px}.game-header h2{font-size:19px}.game-header .section-kicker{font-size:8px}.game-header .game-tools .icon-button{height:32px;width:32px;min-width:32px;font-size:19px}.game-tools{gap:6px}.game-tools #readButton svg{width:17px;height:17px}.parent-learning{padding:12px;margin-bottom:16px}.parent-learning h3{font-size:12px}.parent-learning>div{grid-template-columns:78px 38px 1fr;gap:9px;font-size:10px}.swap-frame{width:min(310px,100%);padding:7px;border-width:2px;border-radius:16px}.swap-board{gap:4px}.swap-look{inset:7px;border-radius:8px}.swap-piece.selected{outline-width:3px;outline-offset:-3px}.piece-check{height:18px;width:18px;line-height:18px;right:4px;top:4px;font-size:10px}.play-tip{font-size:10px;line-height:1.7;margin-top:14px}.secret-lock{min-height:48px;min-width:140px;padding:7px 13px;gap:8px;border-radius:12px}.secret-lock>span:not(.code-gem){font-size:23px}.code-caption{font-size:9px;margin-top:11px;margin-bottom:14px}.code-slots{gap:9px}.code-slot{height:49px;width:49px;border-radius:13px;padding:3px}.code-slot.selected{outline-width:2px;outline-offset:3px}.code-gem{width:31px;height:31px;border-radius:9px;font-size:22px}.code-palette{gap:5px;margin-top:18px}.code-palette button{min-width:39px;padding:3px 3px 0}.code-palette small{font-size:7px;margin-top:8px}.code-check{font-size:11px;min-height:39px;padding:9px 17px;margin-top:18px}.code-legend{gap:12px;font-size:8px;margin-top:18px}.peg{height:8px;width:8px}.code-history{max-height:116px;margin-top:10px;padding:0 3px}.code-history-row{padding:7px 3px;gap:9px}.attempt{font-size:9px;min-width:11px}.history-gems{gap:6px}.code-gem.small{width:23px;height:23px;font-size:15px;border-radius:6px}.history-pegs{gap:4px}.new-game-tag{font-size:7px;padding:2px 6px}}
@media(max-width:350px){.learning-head h3{font-size:17px}.path-counter{font-size:7px;padding:5px 6px}.learning-head .section-kicker{font-size:7px}.path-continue{font-size:8px;padding:8px 9px}.learning-bottom p{font-size:7px}.game-header h2{font-size:17px}.game-header .game-tools .icon-button{height:29px;width:29px;min-width:29px}.code-palette{gap:3px}.code-palette button{min-width:35px;padding:3px 2px 0}.code-palette .code-gem{height:28px;width:28px;font-size:20px}}
@media(prefers-reduced-motion:reduce){.path-stop,.path-progress>span,.swap-piece,.code-palette button{transition:none!important}}
