.route-page{max-width:1100px;margin:auto;padding:24px 24px 56px;color:#203c35}.route-game{--terrain: #c9ddba;--road: #fff9e9;--scene: #e6eedc;scroll-margin-top:86px}.route-game[data-world=harbor]{--terrain: #a9d2da;--scene: #e1f0ee}.route-game[data-world=hill]{--terrain: #c5c3df;--scene: #edebf6}.route-game [hidden]{display:none!important}.route-game button,.route-game select{font:inherit;color:inherit}.route-game button{cursor:pointer}.route-game button:disabled{opacity:.45;cursor:default}.route-game :is(button,a,select,summary):focus-visible{outline:3px solid #2855a0;outline-offset:4px}.route-game__heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.route-eyebrow{margin:0 0 6px;font-size:.8rem;font-weight:800;letter-spacing:.05em;color:#456255}.route-game h1{margin:0;font-size:clamp(1.8rem,4vw,2.8rem);line-height:1.3;letter-spacing:.02em}.route-game h1 span{margin-left:.35em}.route-total{flex-shrink:0;margin:0;padding:10px 14px;border:1px solid #bed0ba;border-radius:50px;background:#f0f5e7}.route-total>span{font-size:1.5rem;font-weight:900}.route-total small{font-size:.75rem}.route-stagebar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 20px;border:2px solid #365747;border-radius:20px 20px 0 0;background:#fffdf6}.route-stagebar>div>span{font-size:.78rem;font-weight:800;color:#456255}.route-stagebar>div{min-width:0}.route-stagebar h2{display:flex;gap:12px;align-items:baseline;margin:2px 0 0;font-size:clamp(1rem,2.6vw,1.35rem)}.route-stagebar h2 small{font-size:1rem;color:#6e4c2d}.route-level-picker{position:relative;flex-shrink:0;z-index:5;font-size:.83rem}.route-level-picker summary{padding:12px;min-height:44px;cursor:pointer;border-radius:10px;background:#eaf0e5;font-weight:750}.route-level-picker>div{position:absolute;top:calc(100% + 8px);right:0;width:min(290px,calc(100vw - 48px));padding:14px;border:2px solid #365747;border-radius:16px;background:#fffdf6;box-shadow:0 8px 24px #203c3526}.route-level-picker section+section{margin-top:12px}.route-level-picker h3{margin:0 0 6px;font-size:.82rem}.route-level-picker section>div{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.route-level-picker button{min-height:44px;position:relative;border:1px solid #9bb49b;border-radius:10px;background:#fff;font-weight:750}.route-level-picker button[aria-current=step]{outline:2px solid #285345;outline-offset:1px;background:#f7e6ac}.route-level-picker button span{color:#285345;margin-left:2px}.route-workspace{display:grid;grid-template-columns:1.08fr 1fr;border:2px solid #365747;border-top:0;border-radius:0 0 24px 24px;overflow:hidden}.route-scene{min-width:0;position:relative;padding:22px;background:var(--scene)}.route-mission{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;min-height:40px}.route-mission p{margin:0;font-weight:750;font-size:.94rem;line-height:1.7}.route-mission>span{flex-shrink:0;padding:6px 8px;border:1px solid #ae914a;border-radius:50px;background:#fff5c8;font-weight:800;font-size:.75rem}.route-board{position:relative;width:min(100%,420px);aspect-ratio:1;margin:auto;border:8px solid #fbf7e7;outline:2px solid #728968;border-radius:25px;background:var(--terrain);box-shadow:0 9px #203c351a}.route-tiles{position:absolute;inset:0;display:grid;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(5,1fr);padding:4px;gap:4px}.route-tile{min-width:0;position:relative;display:grid;place-items:center;border-radius:10px}.route-tile.is-road{border:1px solid #d6c9a9;background:var(--road);box-shadow:0 3px #9b95672b}.route-tile.is-wall{background:radial-gradient(ellipse at 35% 60%,#8faf7b 0 25%,transparent 27%),radial-gradient(ellipse at 65% 45%,#a4bf8f 0 30%,transparent 32%)}[data-world=harbor] .route-tile.is-wall{background:repeating-linear-gradient(165deg,transparent 0 12px,#71aebb55 13px 15px,transparent 16px 23px)}[data-world=hill] .route-tile.is-wall{background:radial-gradient(ellipse at 45% 55%,#a5a3c6 0 24%,transparent 26%),radial-gradient(ellipse at 65% 65%,#b3afd1 0 23%,transparent 25%)}.route-tile>small{position:absolute;bottom:1px;left:5px;color:#56705a;font:800 11px sans-serif}.route-spark{color:#936000;font-size:clamp(1.25rem,4vw,2.5rem);text-shadow:1px 1px white}.route-home{display:grid;place-items:center;width:74%;height:74%;border:2px solid #76612d;border-radius:50% 50% 35% 35%;background:#f5d777;color:#674d1b;font:800 clamp(1.4rem,4vw,2.6rem)/1 sans-serif}.route-player{position:absolute;top:0;left:0;z-index:2;width:20%;height:20%;display:grid;place-items:center;transform:translate(calc(var(--x)*100%),calc(var(--y)*100%));transition:transform .22s ease-in-out;pointer-events:none}.route-player img{width:115%;max-width:none;height:115%;object-fit:contain;transform:translateY(-10%);filter:drop-shadow(0 4px 2px #203c3538)}.route-arrival{position:absolute;z-index:3;top:8%;left:12%;right:12%;padding:14px;border:2px solid #704e25;border-radius:18px;background:#fff7d0;text-align:center;color:#593b19;font-size:clamp(1.2rem,4vw,1.8rem);font-weight:850;box-shadow:0 6px #704e2526}.route-arrival span{margin-left:8px;color:#8b5a00}.route-position{margin:16px 0 0;font-size:.75rem;color:#456255;text-align:center}.route-textmap{margin-top:12px;font-size:.78rem}.route-textmap summary{min-height:44px;padding:10px 0;cursor:pointer}.route-textmap>div{overflow-x:auto}.route-textmap table{width:100%;margin:8px 0;border-collapse:collapse;font-size:.72rem;background:#fffdf6}.route-textmap th,.route-textmap td{padding:7px 3px;border:1px solid #a7b8a4;text-align:center}.route-textmap caption{text-align:left;line-height:1.7}.route-plan{min-width:0;padding:24px;background:#fffdf6}.route-plan__head{display:flex;gap:8px;justify-content:space-between;align-items:baseline}.route-plan__head h2{margin:0;font-size:1.05rem}.route-plan__head>span{white-space:nowrap;font-size:.78rem;color:#456255}.route-plan__note{margin:8px 0 16px;color:#456255;font-size:.82rem}.route-direction-pad{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.route-direction-pad button{display:grid;gap:3px;place-items:center;min-height:68px;padding:5px;border:2px solid #456255;border-radius:14px;background:#edf2dc;box-shadow:0 3px #45625538}.route-direction-pad b{font:800 28px/1 sans-serif}.route-direction-pad span{font-size:.75rem;font-weight:800}.route-direction-pad [data-add-direction=right],.route-program [data-direction=right]{background:#f9dfc0}.route-direction-pad [data-add-direction=down],.route-program [data-direction=down]{background:#d8e9f3}.route-direction-pad [data-add-direction=left],.route-program [data-direction=left]{background:#e8e0f2}.route-program-area{min-height:86px;margin-top:18px;padding:10px;border:1.5px dashed #879d7e;border-radius:14px;background:#f3f4e8}.route-program{display:flex;flex-wrap:wrap;gap:7px;padding:0;margin:0;list-style:none}.route-program button{position:relative;display:grid;min-width:49px;min-height:62px;padding:7px;border:1px solid #59715f;border-radius:10px;background:#edf2dc}.route-program button>small{position:absolute;top:0;left:4px;font-size:9px}.route-program button>b{font:800 26px/1 sans-serif;margin-top:3px}.route-program button>span{font-size:.64rem;font-weight:800}.route-program button[aria-pressed=true]{outline:3px solid #2855a0;outline-offset:1px}.route-program button.is-active{outline:3px solid #8d4d10;outline-offset:1px;opacity:1}.route-program-area>p{margin:10px 0;font-size:.85rem;text-align:center;color:#506853}.route-run-controls{display:grid;grid-template-columns:1.35fr 1fr;gap:8px;margin-top:16px}.route-run-controls button{min-height:50px;padding:10px;border:2px solid #285345;border-radius:12px;background:#f5efd9;font-weight:850}.route-run-controls .route-run{color:#fff;background:#285345;box-shadow:0 3px #17392e}.route-small-controls{display:flex;justify-content:space-between;gap:8px}.route-small-controls button{min-height:44px;padding:8px 0;border:0;background:none;font-size:.72rem;text-decoration:underline;text-underline-offset:3px}.route-feedback{min-height:68px;margin:12px 0 0;padding:14px;border:1px solid #d5c996;border-radius:12px;background:#fff5d2;font-size:.86rem;line-height:1.8}.route-hint{margin-top:8px;font-size:.82rem}.route-hint summary{min-height:44px;padding:10px 0;cursor:pointer;font-weight:800}.route-hint p{margin:0;line-height:1.9}.route-repeat{display:flex;gap:6px;padding:10px;margin:0 0 14px;border:1px solid #bbb5ce;border-radius:12px;background:#f4eff8}.route-repeat legend{padding:0 4px;font-size:.78rem;font-weight:800}.route-repeat button{min-width:44px;min-height:44px;border:1px solid #8d83aa;border-radius:9px;background:#fff}.route-repeat button small{font-size:.7rem;margin-left:2px}.route-repeat button[aria-pressed=true]{border:2px solid #4c3d6d;background:#e7dcf2;font-weight:850}.route-editor{padding:12px;margin-top:12px;border:2px solid #7289a4;border-radius:12px;background:#edf3f7;font-size:.8rem}.route-editor>p{display:flex;justify-content:space-between;align-items:center;margin:0 0 8px}.route-editor button{min-height:44px;border:1px solid #9aaab4;border-radius:8px;background:#fff;padding:6px 10px}.route-editor>div{display:flex;flex-wrap:wrap;gap:8px}.route-editor label{display:grid;gap:4px}.route-editor select{min-height:44px;padding:6px;border:1px solid #6d828f;border-radius:8px;background:#fff}.route-edit-actions{margin-top:10px}.route-result{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:24px;margin-top:20px;border:2px solid #ad8b32;border-radius:20px;background:#fff4cb}.route-result h2{margin:0 0 8px;font-size:1.5rem}.route-result p{margin:0;line-height:1.8}.route-result>div:last-child{display:grid;flex-shrink:0;gap:12px;text-align:center}.route-result button{min-height:48px;padding:10px 20px;border:2px solid #285345;border-radius:12px;color:#fff;background:#285345;font-weight:800}.route-result a{color:#3e533b;font-size:.83rem;text-underline-offset:4px}.route-storage-note{margin:18px 0 0;font-size:.72rem;color:#516a5b;text-align:center}.route-about{max-width:780px;margin:38px auto 0}.route-about details{padding:16px 0;border-top:1px solid #c7cdbb}.route-about summary{min-height:44px;cursor:pointer;font-weight:800}.route-about p,.route-about li{line-height:1.9}.route-about a{color:#285345;text-underline-offset:4px}@media(max-width:760px){.route-page{padding:12px 16px 32px}.route-game__heading{align-items:center;gap:8px;margin-bottom:12px}.route-eyebrow{font-size:.66rem}.route-game h1{font-size:clamp(1.15rem,5.5vw,1.5rem)}.route-game h1 span{margin-left:0}.route-total{padding:6px 8px}.route-total>span{font-size:1.15rem}.route-total small{display:block;font-size:.6rem}.route-stagebar{padding:12px;gap:8px}.route-level-picker summary{padding:10px 8px;font-size:.72rem}.route-workspace{grid-template-columns:1fr}.route-scene{padding:12px}.route-board{width:min(100%,220px);border-width:6px;border-radius:19px}.route-mission{margin-bottom:10px;min-height:28px}.route-mission p{font-size:.82rem}.route-position{margin-top:9px;font-size:.68rem}.route-textmap{margin:8px 0 0}.route-plan{padding:14px 12px}.route-plan__head h2{font-size:.95rem}.route-plan__note{margin:5px 0 8px;font-size:.74rem}.route-direction-pad button{min-height:56px}.route-program-area{min-height:68px;margin-top:12px;padding:6px}.route-program button{min-width:44px;min-height:53px;padding:5px}.route-program button>b{font-size:23px}.route-run-controls{margin-top:12px}.route-result{flex-direction:column;align-items:stretch;padding:20px}.route-result>div:last-child{grid-template-columns:1fr 1fr;align-items:center}body:has([data-command-game]) .k-mnav{display:none}}@media(prefers-reduced-motion:reduce){.route-player{transition:none}}
