/* V0.732 · Line Atlas: local-only progressive UX layer. Original engine and bank unchanged. */
:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#172c36;background:#f1f4f1}
body{background:radial-gradient(circle at 8% 8%,#d9e9e1 0,transparent 30%),radial-gradient(circle at 98% 25%,#e9e9db 0,transparent 25%),#f1f4f1}
.top{height:54px;background:#fffdf9;border-bottom:1px solid #dce5df;padding-inline:max(18px,calc((100vw - 1210px)/2))}
.brand{font-size:19px;color:#1e3b40}.brand span{color:#ae7845}.top nav{color:#42656a}
.wrap{max-width:1250px;padding:12px 18px 45px}
.intro{margin:0 0 12px;align-items:center;gap:12px}.intro h1{font-size:clamp(28px,3vw,36px);letter-spacing:-1.3px;margin:2px 0 3px;color:#182e35}
.intro h1 .hand{font-family:Georgia,serif;color:#a77a49;letter-spacing:-.3px;font-size:.48em;white-space:nowrap}
.intro p{font-size:12px;line-height:1.45;color:#567079}
.eyebrow{font-size:9px;letter-spacing:1.5px;color:#388474}
.collection{border:1px solid #d5dfd9;background:#fffdf9;min-width:120px;padding:8px 14px;border-radius:14px}.collection strong{font-size:19px;color:#285e59}
.columns{display:grid;grid-template-columns:minmax(0,1fr) 244px;align-items:start;gap:12px}
.play{display:grid;grid-template-columns:minmax(0,1fr) 235px;grid-template-rows:auto 1fr auto auto auto auto;grid-template-areas:'heading heading' 'board metrics' 'board track' 'board buttons' 'board notice' 'board modes';gap:0 14px;align-items:start;min-width:0;background:#fffefa;border:1px solid #d4ded8;border-radius:22px;padding:14px;box-shadow:0 12px 33px #173e3c0a}
.play-top{grid-area:heading;padding:0 3px 8px;border-bottom:1px solid #e7e9e1;min-width:0}
.play-top h2{font-size:18px;line-height:1.12;margin:4px 0 0;color:#163942}.level-mark{width:42px;height:42px;border-radius:13px;background:#e8f0e9;color:#297668;border-color:#d3e2d7}.level-mark b{font-size:16px}
.metrics{grid-area:metrics;align-self:center;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0 7px}
.metrics div{background:#f4f6f2;border-radius:12px;padding:10px 5px;align-items:center;text-align:center;min-width:0}
.metrics b{font-size:16px;color:#224e4f}.metrics span{font-size:8px;letter-spacing:.45px;color:#678582}
.track{grid-area:track;height:7px;margin:0 0 9px;background:#e5ece8}.track>div{background:linear-gradient(90deg,#b8894c,#3fa892)}
.canvas-shell{grid-area:board;width:100%;max-width:500px;justify-self:center;margin:10px auto 0;aspect-ratio:1/1;border-radius:19px;border:1px solid #244956;background:radial-gradient(circle at 75% 25%,#214f57,#143841 75%,#10323c);box-shadow:inset 0 0 0 6px #1d404b,0 10px 25px #173e3c16;touch-action:none}
.canvas-shell:before{inset:12px;background-image:radial-gradient(#73a3a5 1px,transparent 1px);background-size:19px 19px;opacity:.15}
.paper-label{font-size:8px;letter-spacing:1.3px;text-transform:uppercase;font-family:inherit;font-weight:800;color:#8ab9af;top:12px}.paper-label.bottom-right{font-family:inherit;font-size:9px;color:#a1d7c7}
.edge{stroke:#699093;stroke-width:7}.edge.done{stroke:#ffc97c;stroke-width:12}.edge.hint{stroke:#ffe19f;stroke-width:10}
.node-halo{fill:#244c53;stroke:#427e7b;stroke-width:2}.node-halo.startable{fill:#4d523d;stroke:#f6c983;stroke-width:4}.node-halo.active{fill:#425c4c;stroke:#ffe4a0;stroke-width:5}
.node-core{fill:#f3e9cd;stroke:#8eb3ab;stroke-width:4;filter:none}.node-core.active{fill:#ffcb7c;stroke:#fff3d2}.node-group:focus-visible .node-halo{stroke:#fff;stroke-width:7}
.notice{grid-area:notice;margin:0 0 8px;min-height:52px;padding:10px 11px;font-size:11px;line-height:1.38;background:#edf4ef;border:1px solid #d8e5dc;color:#46625c;border-radius:12px}
.buttons{grid-area:buttons;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0 0 9px}
.buttons button{min-height:39px;padding:8px 6px;border-radius:11px;font-size:11px;background:#eff4ef;color:#275650;border:1px solid #d5e4db;transition:transform .1s,background .1s}
.buttons button:hover{background:#dceddf;transform:translateY(-1px)}.buttons button:active{transform:translateY(0)}
.buttons #hintBtn{background:#f4e6cc;color:#745328;border-color:#e6cf9f}
.buttons button:focus-visible{outline:3px solid #d9a85a;outline-offset:2px}.buttons button:disabled{opacity:.52}
.mobile-modes{grid-area:modes}
.side{gap:9px}.side-card{padding:12px;border:1px solid #d4ded8;border-radius:16px;background:#fffefa}.side-card h3{font-size:15px;margin:7px 0 10px;color:#224b47}
.mode-list{gap:5px}.mode-list button{min-height:48px;padding:7px 8px;border:1px solid #e0e8e1;border-radius:10px;background:#f4f6f2;gap:7px}
.mode-list button.chosen{background:#deebe0;border-color:#80bb9f}.mode-icon{height:28px;width:28px;border-radius:9px;font-size:15px}
.mode-list strong{font-size:11px}.mode-list small{font-size:9px}.step{margin:7px 0}.step span{font-size:10px}.step b{padding:5px}.legend{padding-top:7px}
.level-grid{gap:4px;margin-top:8px}.level-grid button{font-size:10px;border-radius:6px}.gallery-head button{padding:6px 8px}
.below{margin:17px auto;padding:9px 0}.below h2{font-size:22px}.below p{margin:7px 0}
.overlay{z-index:90}.modal{border:1px solid #b3d5c5}.win-actions button.primary{background:#1e7466}
@media(max-width:1000px) and (min-width:691px){.columns{grid-template-columns:minmax(0,1fr) 190px;gap:9px}.play{grid-template-columns:minmax(0,1fr) 155px;padding:10px;gap:0 9px}.metrics{grid-template-columns:1fr;gap:4px}.metrics div{padding:5px;flex-direction:row;justify-content:space-between}.metrics b{font-size:14px}.metrics span{font-size:8px}.canvas-shell{max-width:470px}.buttons{gap:5px}.buttons button{font-size:10px;min-height:34px}.notice{font-size:10px}.side-card{padding:9px}}
@media(max-width:690px){.top{height:46px;padding:0 12px}.brand{font-size:18px}.wrap{padding:7px 9px 30px}.intro{margin-bottom:7px;gap:4px}.intro h1{font-size:26px;margin:1px 0 1px}.intro h1 .hand{font-size:.44em}.intro p{font-size:10px;line-height:1.25;max-width:375px}.intro .eyebrow{font-size:8px}.columns{display:block}.play{display:flex;flex-direction:column;gap:0;padding:9px;border-radius:16px}.play-top{order:0;width:100%;padding:0 2px 5px;border:0}.play-top h2{font-size:15px;margin-top:1px}.play-top .eyebrow{font-size:8px}.level-mark{width:31px;height:31px;border-radius:10px}.level-mark b{font-size:13px}
.mobile-modes{order:1;display:grid;grid-template-columns:repeat(3,1fr);width:100%;gap:4px;margin:4px 0 5px}.mobile-modes button{padding:7px 3px;border:1px solid #d6e3d9;background:#f0f4ee;color:#275b51;border-radius:8px;min-height:32px;font-size:10px}.mobile-modes .sel{background:#276e62;color:#fff;border-color:#276e62}
.metrics{order:2;display:flex;justify-content:space-between;width:100%;gap:5px;margin:0 0 4px}.metrics div{padding:4px 5px;display:flex;flex:1;flex-direction:row;align-items:baseline;justify-content:space-between;gap:3px}.metrics b{font-size:12px}.metrics span{font-size:7px;letter-spacing:.1px}.track{order:3;width:100%;height:5px;margin:0 0 2px}
.canvas-shell{order:4;width:100%;max-width:315px;align-self:center;margin:2px auto 4px;border-radius:15px;box-shadow:inset 0 0 0 4px #1c4149}.paper-label{top:7px;left:9px;font-size:7px}.paper-label.bottom-right{right:9px;bottom:7px;font-size:8px}.notice{order:5;width:100%;min-height:31px;padding:7px 9px;font-size:10px;line-height:1.3;margin-bottom:5px}.buttons{order:6;width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:0}.buttons button{min-height:34px;padding:6px 2px;border-radius:8px;font-size:10px}.side{margin-top:9px}.steps{display:none}.mode-card{display:none}.side-card{padding:12px}.below{margin-top:8px}}
@media(max-width:370px){.intro h1{font-size:24px}.intro p{font-size:9px}.canvas-shell{max-width:280px}.play{padding:8px}.buttons button{font-size:9px}.metrics span{font-size:6.5px}.paper-label{font-size:6.5px}}
@media(prefers-reduced-motion:reduce){.edge,.track>div,.buttons button{transition:none!important}.edge.hint{animation:none!important}}
