.python-stage{min-height:7.5rem}.python-pop{animation:.48s both python-pop}.python-chip,.python-door,.python-helper{background:#fff8ee;border:2px solid #243056;border-radius:.9rem;align-items:center;min-height:2.75rem;padding:.25rem .7rem;font-weight:800;display:inline-flex}.python-door[data-picked=true]{background:#d9f6ef}.python-door[data-picked=false]{opacity:.55}@keyframes python-pop{0%{opacity:0;transform:translateY(10px)scale(.96)}to{opacity:1;transform:none}}[data-reduced-motion=true] .python-pop{animation:none}@media (prefers-reduced-motion:reduce){.python-pop{animation:none}}
.coding-room{overflow-wrap:anywhere}.coding-room .btn{white-space:normal;min-height:44px}.coding-workspace{align-items:start;gap:1rem;min-width:0;scroll-margin-top:12px;display:grid}.coding-scene,.coding-editor{min-width:0}.coding-editor{gap:.65rem;display:grid}.coding-scene{z-index:2;background:#fffdf7;border-radius:1rem;position:sticky;top:8px}.coding-settings>summary,.coding-help>summary,.coding-trace>summary{cursor:pointer;min-height:44px;padding:.6rem 0;font-size:.875rem;font-weight:700}.coding-help{border-top:1px solid #d7ded4}.coding-help[open]{background:#f5f7f0;border-radius:.75rem;padding:.5rem}.coding-help>p{margin-block:.75rem;font-size:.875rem}.coding-machine-values{gap:.7rem;display:grid}.coding-machine-values>div{flex-wrap:wrap;align-items:center;gap:.6rem;font-size:.875rem;display:flex}.coding-machine-values strong{min-width:5rem}.coding-number-workspace .coding-scene{position:static}.coding-number-workspace .coding-blocks{max-height:none;overflow:visible}.coding-number-workspace .coding-block-button{background:#f0e9fb;flex-direction:row;justify-content:flex-start;gap:.4rem;padding:.4rem;font-size:.875rem;box-shadow:0 3px #c9bbdb}.coding-block-symbol{color:#514466;background:#fffaf2;border-radius:.5rem;place-items:center;min-width:1.8rem;height:1.8rem;font-size:1rem;font-weight:900;display:inline-grid}.coding-number-workspace [data-step=sum],.coding-number-workspace [data-step=count]{background:#e3f2db;box-shadow:0 3px #abc69b}.coding-number-workspace [data-step=double],.coding-number-workspace [data-step=reverse]{background:#fff0cd;box-shadow:0 3px #ddc18d}.coding-program-number{background:#fffaf2;border-radius:50%;place-items:center;min-width:1.2rem;height:1.2rem;font-size:.75rem;display:inline-grid}.coding-number-actions .btn{gap:.4rem;padding:.5rem}.coding-results{scroll-margin-block:1rem}.coding-results[data-checked=true]{background:#fff4d1;border:2px solid #9b7426;border-radius:1rem;padding:1rem}.coding-results:focus{outline-offset:3px;outline:3px solid #325d27}.coding-test-cases{border-top:1px solid #d7ded4}.coding-test-cases>summary{min-height:44px;padding-block:.6rem}.coding-test-case{gap:.4rem;display:grid}.coding-machine-art{justify-content:center;align-items:center;height:100px;display:flex;position:relative}.coding-machine-art>.coding-character{flex-shrink:0;width:72px;height:80px}.coding-machine{width:min(240px,70%);height:100%;overflow:visible}.coding-machine-prize{width:42px;position:absolute;top:0;right:0}.coding-opponent-plan{background:#f4f0fc;border:1px solid #c9bbdb;border-radius:.75rem;padding:.5rem}.coding-opponent-plan li{border:2px solid #0000;border-radius:.5rem;align-items:center;gap:.35rem;padding:.25rem;font-size:.875rem;display:flex}.coding-opponent-plan [aria-current=step]{background:#fff5bd;border-color:#655485}.coding-feedback[data-turn=rival]{background:#eee8fa;border-left:4px solid #655485}.coding-feedback[data-turn=you]{border-left:4px solid #426c34}.coding-demo-controls:empty{display:none}.coding-demo-controls{gap:.5rem;display:grid}.coding-spar-workspace{--coding-cell-size:6rem}.coding-arena-players{grid-template-columns:1fr 1fr;gap:.4rem;margin-bottom:.5rem;display:grid}.coding-arena-players>div{background:#f0f8e8;border:2px solid #b8d5bd;border-radius:.85rem;align-items:center;min-width:0;padding:.4rem;display:flex}.coding-arena-players>div:last-child{background:#f1ebfa;border-color:#c9bcdf}.coding-arena-players>div[data-active=true]{background:#fff4d1;border-color:#9b7426;box-shadow:inset 0 0 0 2px #ffe19d}.coding-arena-players .coding-legend{font-size:.75rem}.coding-arena-players .coding-legend>svg{width:2.6rem;height:2.6rem}.coding-arena-scenery{z-index:-1;width:100%;height:100%;position:absolute;inset:0}.coding-stage[data-arena]{--arena-sky:#d7edf3;--arena-hill:#b9dcb9;--arena-ground:#91b9a1;--arena-rim:#648e95;--arena-deck:#e0ede0}.coding-stage[data-arena="1"]{--arena-sky:#ede3fa;--arena-hill:#c8b9df;--arena-ground:#9d9ec5;--arena-rim:#6f789e;--arena-deck:#ede5f3}.coding-stage[data-arena="2"]{--arena-sky:#fff0d8;--arena-hill:#e1d3a4;--arena-ground:#b4c39b;--arena-rim:#819785;--arena-deck:#f3eddb}.coding-workspace .coding-stage[data-arena]{border-color:var(--arena-rim);align-items:center;width:100%;min-height:230px;margin-bottom:.5rem;padding:4.2rem 2.4rem 2.4rem;display:grid}.coding-stage[data-arena] .coding-board{box-shadow:0 8px #426773,0 13px 16px #24455530}.coding-trail[data-trail=computer]{background:#796098;left:65%;box-shadow:-5px -2px #b39cc9}.coding-spar-workspace:has(.coding-action-guide[open])>.coding-scene{position:static}.coding-spar-workspace .coding-board{background:#527887;border-color:#527887;box-shadow:0 6px #b0c9cb,0 10px 16px #24455518}.coding-spar-workspace .coding-tile:not([data-wall=true]){background:#eef7f5;border-color:#a6c4c5;border-radius:12%}.coding-spar-workspace .coding-spar-block{text-align:left;background:linear-gradient(#fff,#f4f8fa);border-color:#c9d7dc;justify-content:flex-start;gap:.5rem;min-height:76px;padding:.5rem}.coding-spar-block .coding-action-icon{background:#fff4d6;border-radius:.7rem;width:2.5rem;height:2.5rem}.coding-spar-block>span:last-child{min-width:0}.coding-spar-block strong{font-size:.875rem;display:block}.coding-spar-block small{color:#46556c;margin-top:.15rem;font-size:.75rem;font-weight:600;line-height:1.3;display:block}.coding-action-guide{background:#f8fbfc;border:1px solid #c9d7dc;border-radius:.75rem}.coding-action-guide>summary{cursor:pointer;min-height:44px;padding:.6rem;font-size:.875rem;font-weight:700}.coding-action-explanation{align-items:flex-start;gap:.6rem;font-size:.875rem;line-height:1.5;display:flex}.coding-action-explanation .coding-action-icon{width:2.5rem;height:2.5rem}.coding-action-picture{gap:.65rem;display:grid}.coding-action-picture .coding-stage{padding:.5rem}.coding-action-picture .coding-scenery{display:none}.coding-action-picture .coding-board{--coding-cell-size:4rem}.coding-actor[data-tagged=true] .coding-actor-body{opacity:.7;transform:translateY(12%)scale(.9,.7)}.coding-actor[data-frozen=true]{filter:drop-shadow(0 0 5px #68bce7)}.coding-spark .coding-tag-beam{overflow:visible}.coding-machine-art[data-active=true] .coding-machine-parcel{animation:.65s ease-in-out coding-feed}.coding-machine-art[data-active=true] .coding-machine-output{animation:.65s ease-out coding-output}.coding-machine-art[data-complete=true]>.coding-character,.coding-machine-prize{animation:.6s ease-out coding-leap}@keyframes coding-feed{0%{transform:translate(0)}70%,to{transform:translate(72px)}}@keyframes coding-output{0%,40%{opacity:0;transform:translate(-42px)}to{opacity:1;transform:translate(0)}}.coding-blocks{overscroll-behavior:contain;max-height:188px;padding:3px;overflow-y:auto}.coding-workspace .coding-program{max-height:96px;padding:4px;position:relative;overflow-y:auto}.coding-workspace .coding-feedback{min-height:44px;padding:.45rem .6rem;font-size:.875rem}.coding-workspace .coding-legend-row{justify-content:center;gap:.25rem .65rem;padding:.3rem}.coding-workspace .coding-legend{font-size:.75rem}.coding-workspace .coding-legend>svg{width:1.6rem;height:1.6rem}.coding-activity .coding-workshop{padding:.6rem .8rem}.coding-activity .coding-workshop-team{float:right;gap:.2rem;margin:0 0 .25rem .5rem}.coding-activity .coding-workshop-team>svg{width:1.75rem;height:1.75rem}.coding-activity .coding-workshop-team>span{display:none}@media (min-width:900px){.coding-workspace{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:1.25rem}.coding-workspace .coding-stage{padding:1.5rem .65rem .75rem}}@media (max-width:899px){.coding-workspace .coding-stage[data-arena]{--coding-cell-size:4rem;min-height:150px;padding:2.7rem 1.35rem 1.7rem}.coding-workspace{gap:.65rem}.coding-workspace .coding-stage{border-radius:.9rem;width:min(100%,248px);margin-inline:auto;padding:.4rem}.coding-workspace .coding-scenery{display:none}.coding-workspace .coding-preview{padding:.65rem}.coding-workspace .coding-preview-row{gap:.3rem}.coding-workspace .coding-execution{gap:.3rem;padding:.4rem}.coding-workspace .coding-execution .btn{padding:.4rem;font-size:.875rem}}.coding-stage{isolation:isolate;background:#edf7ed;border:2px solid #bdd7ce;border-radius:1.5rem;padding:3.25rem .65rem 1.25rem;position:relative;overflow:hidden}.coding-scenery{z-index:-1;width:100%;height:85px;position:absolute;inset:0 0 auto}.coding-board{grid-template-columns:repeat(var(--coding-cols), minmax(0, 1fr));border:3px solid var(--maze-frame,#6e9b83);background:var(--maze-frame,#6e9b83);border-radius:.8rem;width:100%;margin:auto;display:grid;position:relative;overflow:visible;box-shadow:0 5px #bfd3bb}.coding-tile{background:var(--maze-path,#fbefd7);border:1px solid var(--maze-path-line,#d0c5a7);border-radius:15%;min-width:0;position:relative}.coding-tile[data-wall=true]{background:var(--maze-wall,#dce7d4);border-color:var(--maze-wall-line,#92ac94)}.coding-stage[data-motif=leaf]{--maze-path:#e8f6cf;--maze-path-line:#c3deaf;--maze-wall:#d7eec4;--maze-wall-line:#7eae62;--maze-frame:#5d9450;background:#e7f6df}.coding-stage[data-motif=water]{--maze-path:#e7f6f8;--maze-path-line:#b7d5dc;--maze-wall:#d4eef3;--maze-wall-line:#6aa3b0;--maze-frame:#4f8f9c;background:#e4f3f6}.coding-stage[data-motif=stone]{--maze-path:#f6efe4;--maze-path-line:#d9cbb8;--maze-wall:#efe4d6;--maze-wall-line:#a89078;--maze-frame:#8d7360;background:#f3ebe3}.coding-stage[data-motif=timber]{--maze-path:#f8efd8;--maze-path-line:#e0cfaa;--maze-wall:#f3e2c4;--maze-wall-line:#c4a06a;--maze-frame:#b08a52;background:#f8f1e2}.coding-stage[data-motif=glow]{--maze-path:#fff6d8;--maze-path-line:#ead58a;--maze-wall:#f8e7b0;--maze-wall-line:#c9a04a;--maze-frame:#c4923a;background:#fff4d4}.coding-tile[data-goal=true]{background:#fff5bd}.coding-tile>svg{width:100%;height:100%;display:block}.coding-trail{background:#658c50;border-radius:50%;width:14%;height:9%;position:absolute;bottom:7%;left:43%;box-shadow:-5px -2px #8faf70}.coding-actor{pointer-events:none;z-index:1;transition:left .32s ease-in-out,top .32s ease-in-out;position:absolute}.coding-orientation{position:absolute;inset:0}.coding-orientation[data-maze=true]{transform:rotate(var(--coding-heading))}.coding-orientation[data-maze=true][data-action=left]{animation:.3s ease-in-out coding-turn-left}.coding-orientation[data-maze=true][data-action=right]{animation:.3s ease-in-out coding-turn-right}.coding-orientation[data-maze=true] .coding-actor-body{transform-origin:50%;inset:4%}.coding-orientation[data-maze=true] .coding-actor-body:is([data-action=left],[data-action=right]){animation:none}@keyframes coding-turn-left{0%{transform:rotate(calc(var(--coding-heading) + 90deg))}to{transform:rotate(var(--coding-heading))}}@keyframes coding-turn-right{0%{transform:rotate(calc(var(--coding-heading) - 90deg))}to{transform:rotate(var(--coding-heading))}}.coding-actor-body{transform-origin:50% 90%;position:absolute;inset:9% 4% 0}.coding-character{width:100%;height:100%;display:block}.coding-facing{color:#325d27;position:absolute;inset:0}.coding-facing svg{width:100%;height:100%}.coding-actor[data-actor=robot] .coding-facing{color:#51448f}.coding-actor-body[data-active=true]{animation:.36s ease-out coding-step}.coding-actor-body[data-action=leap]{animation-name:coding-leap}.coding-actor-body[data-action=swap]{animation-name:coding-swap}.coding-actor-body[data-action=pull],.coding-actor-body[data-action=shove]{animation-name:coding-push}.coding-actor-body[data-action=wait],.coding-actor-body[data-action=shield],.coding-actor-body[data-action=freeze]{animation-name:coding-ready}.coding-board-action{z-index:3;width:38%;animation:.4s ease-out coding-feedback;position:absolute;top:-8%;right:-8%}.coding-action-icon{color:#39436a;background:#fff8dc;border:1px solid #b7a578;border-radius:50%;flex:none;justify-content:center;align-items:center;width:1.8rem;height:1.8rem;font-size:1.15rem;font-weight:900;line-height:1;display:inline-flex}.coding-board-action .coding-action-icon{aspect-ratio:1;width:100%;height:auto;font-size:clamp(.75rem,3vw,1.25rem)}.coding-action-icon svg{width:100%;height:100%}.coding-shield{background:radial-gradient(at 30% 20%,#e5fbff99,#b5e4f512 65%);border:3px solid #4b98bc;border-radius:45% 45% 50% 50%;position:absolute;inset:2%;box-shadow:inset 0 0 8px #a3e1ff,0 0 5px #6aaecd}.coding-spark{animation:.4s ease-out coding-spark;position:absolute;inset:0}.coding-spark svg{width:100%;height:100%}.coding-legend-row{flex-wrap:wrap;gap:.6rem 1.25rem;display:flex}.coding-legend{align-items:center;gap:.4rem;min-width:0;font-size:.875rem;font-weight:800;display:inline-flex}.coding-legend>svg{flex:none;width:2.6rem;height:2.6rem}.coding-legend small{font-size:.75rem;font-weight:600;display:block}.coding-feedback{background:#e9f2eb;border-radius:1rem;align-items:center;gap:.65rem;min-height:3rem;padding:.65rem .8rem;font-weight:700;display:flex}.coding-feedback[data-complete=true]{background:#e1f3d6;animation:.42s ease-out coding-feedback}.coding-feedback>svg{flex:none;width:2rem;height:2rem}.coding-workshop{background:#f4f0fc;border:2px solid #c9c0e3;border-radius:1.5rem;padding:1rem;position:relative;overflow:hidden}.coding-workshop-team{justify-content:center;align-items:center;gap:.5rem;margin-bottom:.75rem;display:flex}.coding-workshop-team>svg{width:4.25rem;height:4.25rem}.coding-workshop-team>span{color:#76639c;font-size:1.5rem}.coding-example{background:#fffaf2;border-radius:1rem;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:.5rem;padding:.75rem;font-size:.875rem;font-weight:700;display:grid;box-shadow:0 2px #e2d9ef}.coding-example small{color:#655773;margin-bottom:.3rem;font-size:.75rem;display:block}.coding-values{align-items:center;gap:.15rem;display:flex}.coding-number-list{flex-wrap:wrap;gap:.2rem;min-width:0;display:flex}.coding-values[data-list=true]:before{content:"[";align-self:center}.coding-values[data-list=true]:after{content:"]";align-self:center}.coding-number{text-align:center;background:#f0e9fb;border:1px solid #c9bbdb;border-radius:.45rem;flex-direction:column;justify-content:center;align-items:center;gap:.2rem;min-width:1.5rem;padding:.2rem .3rem;display:inline-flex}.coding-dots{grid-template-columns:repeat(3,3px);gap:2px;display:grid}.coding-dots i{background:#655773;border-radius:50%;width:3px;height:3px}.coding-howto{gap:.5rem;padding:.5rem 0;font-size:.875rem;display:grid}.coding-howto li{align-items:baseline;gap:.5rem;display:flex}.coding-howto li>span{background:#dcefe5;border-radius:50%;flex:none;place-items:center;width:1.5rem;height:1.5rem;font-weight:800;display:inline-grid}.coding-preview{background:#f4fbf6;border:2px solid #bbd5c7;border-radius:1rem;padding:1rem}.coding-preview-row{flex-wrap:wrap;align-items:center;gap:.6rem;font-size:.875rem;display:flex}.coding-preview-step{border-left:3px solid #b4cbbb;padding-left:.6rem}.coding-preview-step>p{margin-bottom:.4rem}.coding-block-button{flex-direction:column;gap:.2rem;padding:.65rem .5rem}.coding-block-button small{font-size:.75rem;font-weight:600;line-height:1.35}.coding-block-guide{background:#faf7ff;border:1px solid #d8cee7;border-radius:1rem;padding:.85rem}.coding-block-example{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.coding-result{align-items:flex-start;gap:.6rem;animation:.38s ease-out coding-feedback;display:flex}.coding-result-mark{border:1px solid;border-radius:50%;flex:none;place-items:center;width:1.5rem;height:1.5rem;display:grid}.coding-program{counter-reset:coding-step;align-items:flex-start}.coding-program li{counter-increment:coding-step;align-items:center;gap:.35rem;display:inline-flex}.coding-program li:before{content:counter(coding-step);opacity:.65;font-size:.7rem}.coding-program li[aria-current=step]{outline-offset:1px;background:#fff0ac;outline:3px solid #946928}.coding-program li[aria-current=step]:before{content:"▶ " counter(coding-step);opacity:1}.coding-execution{background:#e7f2ee;border-radius:1rem;flex-wrap:wrap;gap:.5rem;padding:.75rem;display:flex}.coding-execution .btn{flex:5rem}.coding-mission{background:#f1f8ec;border-left:4px solid #64967c;border-radius:.25rem .75rem .75rem .25rem;padding:.75rem;font-weight:700}.coding-mission-picker>summary{cursor:pointer;min-height:44px;padding:.5rem 0;font-weight:700}.coding-examples>summary{cursor:pointer;min-height:44px;padding:.5rem 0}@keyframes coding-step{45%{transform:translateY(-7%)rotate(-3deg)}}@keyframes coding-leap{50%{transform:translateY(-24%)rotate(5deg)}}@keyframes coding-swap{50%{transform:translateY(-18%)rotate(-8deg)}}@keyframes coding-push{45%{transform:scale(1.08,.95)}}@keyframes coding-ready{50%{transform:scale(1.06)}}@keyframes coding-spark{0%{opacity:.3}to{opacity:1}}@keyframes coding-feedback{0%{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}[data-reduced-motion=true] .coding-room *,[data-reduced-motion=true] .coding-room :before{transition:none!important;animation:none!important}@media (prefers-reduced-motion:reduce){.coding-room *,.coding-room :before{transition:none!important;animation:none!important}}
