:root{color-scheme:dark;--gold:#c6a66b;--muted:#9daba6}*{box-sizing:border-box}body{margin:0;background:#080f12;color:#eee7d8;font:14px system-ui,"PingFang TC",sans-serif;overflow:hidden}canvas{display:block}#world{position:fixed;inset:0}button{font:inherit;color:#e5dbc6;background:#152023db;border:1px solid #796747;border-radius:3px;padding:10px 15px;cursor:pointer}button:hover{background:#394039;border-color:#e6c68c}button:disabled{opacity:.4;cursor:default}header{display:flex;align-items:center;gap:28px;padding:24px 30px;background:linear-gradient(#071012ef,transparent);pointer-events:auto}.brand{font:24px Georgia,serif;letter-spacing:5px;color:var(--gold)}small{display:block;font-size:10px;letter-spacing:3px;color:var(--gold);margin-bottom:8px}.brand small{font:8px system-ui;letter-spacing:3px;margin-top:5px}.stats{width:210px}.stats b{font-size:11px;font-weight:400;color:#c4c4b6}.bar{height:19px;background:#291c1d;border:1px solid #77634e;position:relative;margin-top:6px}.bar i{display:block;background:linear-gradient(90deg,#7f252b,#c15745);height:100%;transition:width .15s}.bar span{position:absolute;inset:0;text-align:center;font-size:11px}.xp{height:3px;background:#26363c;margin-top:6px}.xp i{display:block;background:#67a9b9;height:100%}.right{margin-left:auto;display:flex;gap:9px;align-items:center}.right>span{margin-right:15px;color:#c4bcaa}#hud{position:fixed;inset:0;pointer-events:none}aside{position:absolute;top:120px;left:30px;width:245px}aside p{line-height:1.8;color:#c4d0ca;text-shadow:0 2px 6px black}#notice{color:#e7bd73;line-height:1.7}#map{position:absolute;right:30px;top:108px;background:#091316c9;border:1px solid #6d6043}footer{position:absolute;bottom:22px;left:0;right:0;text-align:center}.help{color:#bec8bf;font-size:11px;text-shadow:0 2px 5px #000;margin-bottom:15px}#skills{display:flex;justify-content:center;gap:8px;pointer-events:auto}.slot{width:92px;height:65px;padding:6px;position:relative;box-shadow:0 5px 22px #0008}.slot em{display:block;color:#bea578;font-style:normal;font-size:11px}.slot span{display:block;font-size:12px;margin-top:7px}#status{margin-top:10px;color:#b3baa8;font-size:12px}.overlay{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:#040b0fba;backdrop-filter:blur(6px);padding:24px;z-index:5}.hidden{display:none!important}.intro{text-align:center;max-width:620px;padding:45px 60px;background:linear-gradient(135deg,#122126ef,#0a141aef);border:1px solid #6d6044;box-shadow:0 30px 100px #0009}.intro h1{font:64px Georgia,"Songti TC",serif;letter-spacing:12px;color:#ddc393;margin:24px 0}.intro p{line-height:1.9;color:#aebdb7}.intro .subtitle{font-size:17px;color:#d9d2bf}.primary{background:#ab8950;color:#111a1a;padding:14px 28px;margin:18px 8px;font-weight:650}.hint{font-size:11px;margin-top:22px}.treePanel{background:#101c20f5;border:1px solid #7b6844;width:min(1080px,96vw);max-height:94vh;overflow:auto;padding:24px 32px}.treeHead{display:flex;justify-content:space-between;align-items:center}h2{font-size:28px;font-weight:500;letter-spacing:3px;margin:8px 0}h2 span{font-size:14px;color:var(--gold)}.treePanel>p,.treeBottom{color:var(--muted);font-size:12px}#branches{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin:23px 0}.branch h3{font-size:18px;font-weight:500;color:var(--branch)}.node{padding:11px 13px;border:1px solid #354345;margin:8px 0;position:relative;background:#172429}.node.owned{border-color:var(--branch);background:#24312e}.node strong{font-size:13px;font-weight:500}.node p{font-size:11px;color:#aab9b7;margin:5px 0 9px}.node button{font-size:11px;padding:4px 10px}.node select{margin-left:5px;background:#102024;color:#ddd2b8;border:1px solid #6c694c;font-size:11px;padding:4px}.treeBottom{display:flex;align-items:center;justify-content:space-between;gap:10px}@media(max-width:850px){header{padding:12px;gap:12px}.brand{font-size:17px}.right>span,.brand small{display:none}.right button{padding:8px;font-size:11px}.stats{width:140px}aside{left:12px;top:90px;width:180px}#map{right:12px;top:80px;width:120px;height:120px}.help{font-size:9px}.intro{padding:25px}.intro h1{font-size:42px}#branches{gap:8px}.treePanel{padding:15px}.node{padding:8px}.slot{width:75px}}
/* Brass, charcoal and warm parchment: the HUD remains outside the combat focus. */
body{font-family:"PingFang TC","Noto Sans TC",system-ui,sans-serif}button{transition:background .16s,border-color .16s,transform .16s}button:active:not(:disabled){transform:translateY(1px)}button:focus-visible,select:focus-visible{outline:2px solid #edce90;outline-offset:4px}::selection{background:#9b784b;color:#fff2d8}*{scrollbar-width:thin;scrollbar-color:#766346 #142125}.vignette{position:fixed;inset:0;pointer-events:none;box-shadow:inset 0 0 130px 35px #02070c95;background:linear-gradient(180deg,#050c12aa,transparent 20%,transparent 75%,#050c12c9)}header{padding:23px 28px;background:linear-gradient(#060d12ba,transparent);align-items:flex-start}.brand{font-family:"Songti TC",Georgia,serif;font-size:25px;font-weight:600;letter-spacing:4px}.stats{padding-top:2px;width:220px}.bar{height:15px;clip-path:polygon(4px 0,100% 0,calc(100% - 4px) 100%,0 100%)}.bar span{font-variant-numeric:tabular-nums;font-size:10px}.bar i{background:linear-gradient(90deg,#6f232c,#c45a43)}.right button{background:#0a161bba;font-size:12px}.right>span{font-size:12px;color:#c0b69f;padding-top:12px}aside{top:106px;left:30px;width:215px}aside small{font-size:10px}aside p{font-size:12px;line-height:1.8;color:#d0cfb9}#notice{font-size:12px;color:#f0cc8d}#map{width:145px;height:145px;top:90px;border-color:#69583b;background:#071015c4;opacity:.85}footer{bottom:16px}.help{font-size:10px;color:#cad0c8;letter-spacing:.4px;margin-bottom:12px}#skills{gap:7px}.slot{height:83px;width:86px;background:linear-gradient(145deg,#28312ded,#101a20ed);border:1px solid #816b46;box-shadow:0 7px 20px #0007;border-radius:3px;position:relative}.slot:after{content:'';position:absolute;inset:3px;border:1px solid #a1803c25;pointer-events:none}.slot em{position:absolute;left:6px;top:3px;font-size:9px;color:#c6b383}.slot svg{width:34px;height:35px;margin-top:7px;fill:none;stroke:#edc487;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.6;filter:drop-shadow(0 2px 3px #0008)}.slot:nth-child(2) svg{stroke:#ffb35a}.slot:nth-child(3) svg{stroke:#9bd9e8}.slot:nth-child(4) svg{stroke:#b2ccff}.slot span{font-size:10px;line-height:1.3;margin-top:1px;color:#e7ddc3;white-space:nowrap}#status{font-size:10px;letter-spacing:1px;color:#b9b89f}.overlay{background:#03090d8c;backdrop-filter:blur(3px)}.intro{background:linear-gradient(140deg,#0e1b21ed,#0a151be6);padding:37px 46px;max-width:640px;border-color:#78613c}.intro h1{font-family:"Songti TC",Georgia,serif;font-size:65px;color:#e9d1a2;text-shadow:0 3px 18px #000;letter-spacing:10px;margin:20px 0}.intro p{font-size:13px}.intro .subtitle{font-size:17px}.intro .hint{font-size:11px;color:#aab9b4}.intro .primary{margin:14px 7px 14px 0}#loadStatus{font-size:11px;color:#d2b378}#practice{margin-left:6px;color:#cbb995}.treePanel{max-width:1080px;background:linear-gradient(130deg,#142329fa,#0b141bfa);border-color:#9a8154;max-height:94vh}.treePanel h2{font-family:"Songti TC",Georgia,serif;color:#eddbb4}.branch h3{border-bottom:1px solid #6c65564d;padding-bottom:12px;margin:6px 0 14px}.node{background:#16232980;border-color:#34423f;margin:12px 0;padding:10px 14px}.node.owned{background:#29372c77}.node:not(:last-child):after{content:'';height:13px;width:1px;background:#71664c;position:absolute;left:24px;bottom:-14px}.node strong{font-size:13px}.node p{color:#bac7c1;line-height:1.5}.node button{margin-right:5px;padding:4px 8px;color:#e4d6b8}.treeBottom{color:#bac5bc;line-height:1.6}#combatText{position:fixed;inset:0;pointer-events:none;z-index:2}.damage{position:absolute;left:0;top:0;font:bold 19px Georgia,serif;text-shadow:0 2px 4px #000,0 0 6px #000;will-change:transform,opacity}@media(max-width:850px){header{padding:14px;gap:15px}.brand{font-size:20px}.stats{width:155px}.right button{padding:8px}.right>span{display:none}aside{left:15px;top:90px;width:180px}#map{width:115px;height:115px;right:15px;top:80px}.slot{width:74px;height:74px}.slot svg{width:28px;height:30px}.help{font-size:9px}.intro{padding:28px}.intro h1{font-size:47px}.treePanel{padding:18px}.node{padding:8px}.treePanel>p{line-height:1.6}}@media(prefers-reduced-motion:reduce){button{transition:none}}
.primary:hover{background:#d7b778;color:#111a1a}.bar i{width:100%;transform-origin:left;transition:transform .15s}.help,.slot em,.slot span,#status,.bar span{font-size:11px}.intro{box-shadow:none}@media(max-width:850px){.help{font-size:11px;max-width:90%;margin:0 auto 12px;line-height:1.5}.slot{width:76px}.slot span{font-size:11px}}
