:root{color-scheme:dark;--bg:#101b26;--panel:#162430;--border:#2a3b48;--ink:#edf3ef;--muted:#9aafb6;--green:#b5efb0;--teal:#70c7be;--red:#ee8c85;--amber:#edc98d}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:15px}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible,[role=button]:focus-visible{outline:3px solid var(--amber);outline-offset:5px}button{color:inherit}a{color:inherit;text-decoration:none}.app{max-width:1360px;margin:auto;padding:0 56px}header{height:102px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}.brand{display:flex;align-items:center;gap:12px;font:600 17px 'Space Grotesk',sans-serif;letter-spacing:1.5px}.brand-icon{background:var(--green);color:var(--bg);font-size:27px;width:35px;height:35px;display:grid;place-items:center;border-radius:10px;transform:rotate(-7deg)}.prototype{font:500 9px 'DM Sans',sans-serif;letter-spacing:1px;color:var(--muted);border:1px solid var(--border);padding:5px 7px;margin-left:6px;border-radius:5px}.language{background:transparent;border:1px solid var(--border);padding:8px 12px;border-radius:6px;font-size:12px}.language span{color:var(--muted);margin-left:12px}.intro{padding:49px 0 37px}.eyebrow{display:flex;align-items:center;gap:9px;color:var(--green);letter-spacing:1.8px;font-size:10px;font-weight:600}.live-dot{height:6px;width:6px;background:var(--green);border-radius:50%;box-shadow:0 0 13px #b5efb044}h1{font:500 clamp(30px,3.3vw,45px)/1.15 'Space Grotesk',sans-serif;letter-spacing:-1.8px;margin:17px 0 14px}h1 em{color:var(--muted);font-style:normal}.intro p{color:var(--muted);margin:0;font-size:14px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 296px;gap:22px}.board-panel{background:var(--panel);border:1px solid var(--border);border-radius:15px;overflow:hidden;display:flex;flex-direction:column}.board-top{padding:24px 28px 0;display:flex;align-items:center;justify-content:space-between}.small-label{font-size:10px;letter-spacing:1.7px;color:var(--muted);font-weight:600}h2{font:500 23px 'Space Grotesk',sans-serif;letter-spacing:-.6px;margin:7px 0} .budget{font:500 25px 'Space Grotesk',sans-serif;text-align:right;white-space:nowrap}.budget #limit{color:#67808a;font-size:19px}.budget small{display:block;color:var(--muted);font:500 8px 'DM Sans',sans-serif;letter-spacing:1px;margin-top:4px}.budget.full{color:var(--amber)}.board-container{position:relative;flex:1;display:flex;flex-direction:column;justify-content:center;background-image:radial-gradient(#32444f99 .7px,transparent .7px);background-size:22px 22px;background-position:center}#board{width:100%;height:auto;max-height:480px;display:block;min-height:300px}.board-note{font-size:11px;color:var(--muted);display:flex;gap:9px;justify-content:center;padding:0 10px 24px;text-align:center}.signal-bars{color:var(--green)}.board-bottom{border-top:1px solid var(--border);padding:16px 24px;display:flex;justify-content:space-between;gap:12px}.legend{display:flex;gap:15px;font-size:9px;color:var(--muted)}.legend>span{display:flex;align-items:center;gap:5px}.legend-dot{width:6px;height:6px;display:inline-block;border-radius:50%}.green{background:var(--green)}.red{background:var(--red)}.hollow{border:1px solid #75949f}.local-tag{font-size:8px;letter-spacing:.7px;color:#66818c;white-space:nowrap}aside{display:flex;flex-direction:column;gap:18px}.mission{border:1px solid var(--border);border-radius:14px;padding:22px;background:#182733}.mission>p{font-size:15px;line-height:1.55;margin:13px 0 16px}.rule{padding:11px 12px;background:#21343e;border-radius:7px;font-size:11px;color:#b7ccc9;line-height:1.5;border-left:2px solid var(--teal)}.status{font-size:11px;line-height:1.5;min-height:44px;padding:13px 0 10px;color:var(--muted)}.status.error{color:var(--red)}.status.success{color:var(--green)}.primary{display:flex;align-items:center;justify-content:space-between;width:100%;border:0;border-radius:7px;background:var(--green);color:#162b25;padding:13px 15px;font-size:12px;font-weight:700;transition:background .2s}.primary:hover{background:#cefaca}.primary>span:last-child{font-size:19px}.tools{display:flex;justify-content:space-between;margin-top:16px;gap:4px}.tools button{background:transparent;border:0;color:var(--muted);padding:4px 0;font-size:15px}.tools button span{font-size:10px}.tools button:hover{color:var(--green)}.hint-box{color:var(--amber);font-size:12px;line-height:1.5;border-top:1px solid var(--border);padding-top:13px;margin-top:13px}.journey{border:1px solid var(--border);border-radius:14px;padding:20px 22px;flex:1}.journey-top{display:flex;justify-content:space-between;align-items:center}.journey-top>span:last-child{font:500 11px 'Space Grotesk',sans-serif;color:var(--green)}#levels{margin-top:16px;display:flex;flex-direction:column;gap:9px}.level-button{display:flex;align-items:center;gap:11px;padding:8px 9px;background:transparent;border:1px solid transparent;border-radius:6px;color:var(--muted);text-align:left;font-size:11px}.level-button.selected{border-color:#3c5759;background:#233a40;color:var(--ink)}.level-number{border:1px solid #405761;border-radius:50%;width:22px;height:22px;display:grid;place-items:center;font:11px 'Space Grotesk',sans-serif}.level-button.done .level-number{background:var(--green);color:var(--bg);border-color:var(--green)}.level-button .level-name{flex:1}.level-button .arrow{color:var(--green)}.journey>p{font-size:10px;color:#6f8992;margin:19px 0 0}.how{display:grid;grid-template-columns:1.5fr repeat(3,1fr);gap:30px;padding:40px 0 36px;border-bottom:1px solid var(--border)}.how-heading h2{font-size:21px;line-height:1.3;margin-top:12px}.how-item>b{font:12px 'Space Grotesk',sans-serif;color:var(--green)}.how-item h3{font-size:12px;font-weight:500;margin:12px 0 8px}.how-item p{font-size:11px;line-height:1.7;color:var(--muted);margin:0}footer{font-size:9px;color:#78919a;display:flex;justify-content:space-between;align-items:center;gap:15px;padding:25px 0 30px;letter-spacing:.5px}footer button{border:0;background:transparent;color:var(--muted);font-size:10px;padding:0}.footer-dot{margin:0 12px;color:var(--green)}.edge-line{stroke:#49616c;stroke-width:2;stroke-dasharray:5 7;transition:stroke .2s}.edge.active .edge-line{stroke:var(--green);stroke-dasharray:none;stroke-width:3}.edge.failed .edge-line{stroke:var(--red);opacity:.5}.edge-hit{stroke:transparent;stroke-width:44;fill:none;vector-effect:non-scaling-stroke}.edge{cursor:pointer}.edge circle{fill:#20333f;stroke:#4a6470;stroke-width:1.5}.edge text{fill:#b0c4ca;font:20px 'Space Grotesk',sans-serif;text-anchor:middle;dominant-baseline:central;pointer-events:none}.edge.active circle{fill:var(--green);stroke:var(--green)}.edge.active text{fill:#153326}.edge:hover .edge-line{stroke:var(--teal)}.edge.suggested circle{stroke:var(--amber);stroke-width:4}.edge.on-path .edge-line{stroke:var(--amber);stroke-width:5;stroke-dasharray:9 7;animation:flow 1s linear infinite}.node circle.outer{fill:#162731;stroke:#53717b;stroke-width:1.5}.node circle.inner{fill:#223c48}.node text.letter{fill:#c2d4d5;font:500 16px 'Space Grotesk',sans-serif;text-anchor:middle;dominant-baseline:central}.node.endpoint circle.outer{stroke:var(--green);stroke-width:2}.node.endpoint circle.inner{fill:#29483f}.node.endpoint text.letter{fill:var(--green);font-size:24px}.node text.node-label{fill:#8eaab2;font:10px 'DM Sans',sans-serif;text-anchor:middle;letter-spacing:1.5px}.node.offline circle.outer{stroke:var(--red);stroke-dasharray:4 4}.node.offline circle.inner{fill:#483239}.node.offline text.letter,.node.offline text.node-label{fill:var(--red)}.node.on-path circle.outer{stroke:var(--amber);stroke-width:3}.result{border-top:1px solid #3a514f;margin-top:18px;padding-top:18px}.result-icon{display:inline-grid;place-items:center;background:var(--green);color:#143426;border-radius:50%;height:25px;width:25px}.result h3{font:500 19px 'Space Grotesk',sans-serif;margin:10px 0 8px;color:var(--green)}.result p{color:var(--muted);font-size:12px;line-height:1.5}.share{display:block;background:transparent;border:1px solid var(--border);border-radius:6px;padding:9px 12px;font-size:11px;color:var(--muted);width:100%;margin-top:10px}#share-status,#clear-message{font-size:10px;color:var(--green);display:block;margin-top:8px}dialog{max-width:490px;width:calc(100% - 32px);padding:32px;background:var(--panel);color:var(--ink);border:1px solid #49626b;border-radius:14px}dialog::backdrop{background:#060d15c9;backdrop-filter:blur(4px)}dialog p{font-size:13px;line-height:1.7;color:var(--muted)}.dialog-close{float:right;border:0;background:transparent;font-size:27px;color:var(--muted)}@keyframes flow{to{stroke-dashoffset:-32}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media(min-width:1200px){.board-container{min-height:415px}}@media(max-width:1000px){.app{padding:0 28px}.game-layout{grid-template-columns:minmax(0,1fr) 260px;gap:16px}.mission,.journey{padding:19px}.local-tag{display:none}.how{gap:20px;grid-template-columns:1.2fr repeat(3,1fr)}.prototype{display:none}}@media(max-width:720px){.app{padding:0 18px}header{height:76px}.brand{font-size:14px;letter-spacing:1px}.brand-icon{width:30px;height:30px;font-size:23px}.intro{padding:32px 0 26px}h1{font-size:33px;letter-spacing:-1.3px}.intro p{font-size:12px;line-height:1.6}.eyebrow{font-size:8px;letter-spacing:1.3px}.game-layout{grid-template-columns:1fr}.board-top{padding:20px 20px 0}.board-top h2{font-size:21px}.board-container{min-height:260px}#board{min-height:230px}.board-bottom{padding:13px 18px}.board-note{font-size:10px;padding-bottom:18px}.mission{padding:21px}.mission>p{margin:10px 0 14px}.status{min-height:40px}.tools{justify-content:space-around}.tools button span{font-size:11px}.journey{padding:19px}.journey>p{display:none}#levels{flex-direction:row;gap:5px}.level-button{flex:1;flex-direction:column;gap:7px;padding:10px 5px;text-align:center}.level-button .arrow{display:none}.how{grid-template-columns:repeat(3,1fr);gap:16px;padding-top:30px}.how-heading{grid-column:1/-1}.how-heading h2 br{display:none}.how-heading h2{font-size:20px;margin:9px 0}.how-item p{font-size:10px}.how-item h3{font-size:11px}footer{align-items:flex-start;line-height:1.8}footer>span{max-width:220px}footer button{max-width:95px;text-align:right}#footer-line{display:block}.footer-dot{display:none}}

@media(max-width:720px){.node text.node-label{font-size:18px;letter-spacing:.4px}.node text.letter{font-size:24px}.node.endpoint text.letter{font-size:28px}.edge text{font-size:24px}.edge circle{r:18px}}

/* Reading order: mission, board, controls and journey. */
.game-layout{grid-template-rows:auto 1fr;align-items:start}.game-layout>.mission{grid-column:1/-1;padding:20px 24px;display:grid;grid-template-columns:130px minmax(0,1fr) minmax(210px,.8fr);gap:18px;align-items:center}.mission>p{margin:0}.mission .rule{margin:0}.board-panel{grid-column:1;grid-row:2;align-self:start}aside{grid-column:2;grid-row:2}.controls{border:1px solid var(--border);border-radius:14px;padding:22px;background:#182733}.controls .status{padding-top:0;min-height:35px}#levels{display:grid;grid-template-columns:1fr 1fr;gap:7px}.level-button{font-size:10px;gap:7px;min-height:48px;padding:6px}.level-button .arrow{display:none}.level-number{flex:none}.journey{padding:18px 15px}.edge text.cost-label{font-size:12px;fill:var(--amber);paint-order:stroke;stroke:var(--panel);stroke-width:5px;stroke-linejoin:round}.edge.broken .edge-line{stroke:var(--red);stroke-dasharray:4 9;stroke-width:4}.tip-button{color:var(--green)}#tips{text-align:center}#tips h2{margin-top:15px}#tip-qr{background:white;border:10px solid white;border-radius:10px;max-width:80%;height:auto;image-rendering:pixelated}#tip-address{display:block;font-size:13px;margin:17px 0;color:var(--green);overflow-wrap:anywhere}#tip-wallet{justify-content:center}#tip-page{text-decoration:none}#tip-note{font-size:11px}#tip-status{font-size:11px;color:var(--green)}footer{flex-wrap:wrap}footer>span{margin-right:auto}.prototype{display:inline-block}.controls [hidden],dialog [hidden]{display:none!important}
@media(max-width:1000px){.game-layout>.mission{grid-template-columns:100px 1fr}.mission .rule{grid-column:2}.game-layout{grid-template-columns:minmax(0,1fr) 275px}}
@media(max-width:720px){.game-layout{grid-template-columns:1fr;gap:14px}.game-layout>.mission{display:block;padding:19px 20px}.mission>p{margin:10px 0 12px;font-size:14px}.board-panel{grid-column:1;grid-row:2}aside{grid-column:1;grid-row:3}.controls{padding:20px}#levels{grid-template-columns:repeat(2,1fr)}.level-button{flex-direction:row;text-align:left;font-size:12px;padding:8px;min-height:44px}.prototype{display:none}footer>span{max-width:none;width:100%}footer button{max-width:none;text-align:left;margin-top:4px}.game-layout>.mission .rule{font-size:12px}.node text.node-label{font-size:17px}}

/* Prominent optional support, with comfortable touch targets. */
footer #tip-button{display:inline-flex;align-items:center;justify-content:center;min-height:56px;min-width:210px;padding:16px 24px;margin:0 18px 0 0;border:1px solid var(--green);border-radius:10px;background:var(--green);color:var(--bg);font-size:16px;font-weight:700;line-height:1.4;text-align:center;box-shadow:0 4px 16px #0002}
footer #tip-button:hover{background:#cefaca}#tip-wallet{min-height:56px;font-size:16px;padding:16px 20px}
@media(max-width:720px){footer #tip-button{width:100%;min-width:0;max-width:none;margin:8px 0;font-size:17px;min-height:58px}#tip-wallet{font-size:17px;min-height:58px}}
