:root{font-family:"Avenir Next",system-ui,sans-serif;color:#f6ecd5;background:#112624;--gold:#ecc683;--line:#526a60;--soft:#c1cbbd}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at top,#385045,#102522 75%)}main{max-width:1120px;margin:auto;padding:clamp(12px,3vw,32px)}header{position:relative;isolation:isolate;overflow:hidden;border-radius:10px;border:1px solid #977c55;min-height:clamp(158px,20vw,220px);display:flex;align-items:end;padding:clamp(16px,3vw,34px)}header img,header:after{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}header:after{content:"";background:linear-gradient(90deg,#081b1cee,#10232595 48%,transparent 82%);z-index:-1}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Georgia,serif;font-weight:400}h1{font-size:clamp(3rem,7vw,5.8rem);letter-spacing:-.075em;line-height:1.1}h2{font-size:clamp(1.75rem,3.6vw,2.7rem);letter-spacing:-.04em}h3{font-size:1.45rem}.over{color:var(--gold);text-transform:uppercase;font-weight:700;letter-spacing:.17em;font-size:.72rem}.heading,.maphead,.buttons,.target,#balances,.valve{display:flex;align-items:center;gap:9px}.heading,.maphead,.valve{justify-content:space-between}.heading{margin:15px 0 10px}.target{border:1px solid var(--line);border-radius:6px;background:#223c34;padding:5px 11px;font-size:.75rem;color:var(--soft)}.target img{height:42px}.target strong{display:block;font-size:1.12rem;color:var(--gold)}.desk{display:grid;grid-template-columns:minmax(0,1.36fr) minmax(0,1fr);gap:17px;align-items:start}.map,.controls,#finish{padding:clamp(12px,2vw,23px);background:#193732;border:1px solid var(--line);border-radius:8px}.map{background:linear-gradient(130deg,#203e38,#142f2c)}.maphead span,.guide,#brief,#receipt,details{color:var(--soft)}.maphead span{font-size:.8rem}#network{width:100%;display:block;margin:8px 0;background:radial-gradient(ellipse,#284943,#132c29);border-radius:4px}.pipe{stroke:#b68659;stroke-width:8;stroke-linecap:round}.active .pipe{stroke:#d5a56d}.tube{cursor:pointer}.tube:focus .pipe,.tube.picked .pipe{stroke:#ffe9ae}.tube text{fill:#f9e6bd;font:600 14px system-ui}.tube .plaque{fill:#213c35;stroke:#b49369}.tube .arrow{fill:#ffe9ac}.station circle{fill:#163532;stroke:#debd83;stroke-width:2}.station text{fill:#ffedc9;font:bold 15px system-ui;text-anchor:middle;dominant-baseline:middle}#balances{flex-wrap:wrap}.badge{font-size:.78rem;padding:4px 8px;border:1px solid #617c6b;border-radius:20px;background:#234e43}.off{background:#51392d;border-color:#9f7359}.guide,#brief,#notice{font-size:.9rem;line-height:1.45}.guide{margin:10px 0 0}#brief{margin:5px 0 11px}.valve{border-top:1px solid var(--line);padding:3px 0;font-weight:600}.valve span:first-child{flex:1}.valve output{min-width:42px;text-align:center;color:#e9d8b4;font:650 .88rem ui-monospace,monospace}button{font:650 .86rem system-ui;cursor:pointer;border-radius:4px;border:1px solid #718777;background:#2c4b40;color:#faf1d8;padding:8px 12px}.valve button{padding:3px 10px;font-size:1.06rem}.valve.selected{background:#344f40}button:disabled{opacity:.4;cursor:default}.primary{color:#25352b;background:#e5c184;border-color:#e5c184}.buttons{margin-top:12px;flex-wrap:wrap}button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #ffe2a1;outline-offset:1px}#notice{margin:9px 0;color:#f3cf96}#finish{display:flex;gap:20px;align-items:center;margin-top:16px}#finish img{width:84px}#receipt{margin:8px 0 12px}details{border-top:1px solid var(--line);margin-top:16px;padding-top:12px;font-size:.88rem}summary{cursor:pointer}details p{max-width:78ch;line-height:1.45;margin:8px 0}a{color:#a6e5cf}[hidden]{display:none!important}@media(max-width:720px){.desk{grid-template-columns:1fr;gap:8px}main{padding:10px}header{min-height:138px}.heading{margin:9px 0}.target img{height:29px}.target{padding:4px 8px}.map,.controls{padding:11px}.maphead h3,.controls h3{font-size:1.2rem}.guide,#brief{font-size:.83rem}#network{margin:2px 0}.valve{padding:4px 0}.buttons{margin-top:7px}}
.tube text{pointer-events:none}
