:root{color-scheme:light;--ink:#302a3d;--muted:#786e83;--purple:#715287;--line:#e6deea;--paper:#faf8fb;--green:#26715d}
*{box-sizing:border-box}body{margin:0;font:14px/1.5 "Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--paper)}button,input{font:inherit}button{cursor:pointer;color:var(--ink);background:white;border:1px solid var(--line);border-radius:7px;padding:8px 12px}button:hover{border-color:var(--purple);background:#f5eff8}button:focus-visible,input:focus-visible{outline:3px solid #b09bc4;outline-offset:3px}button:disabled{cursor:default;opacity:.5}h1,h2,p{margin:0}.topbar{min-height:98px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:20px 30px;background:#fff;gap:24px}.brand{display:flex;gap:13px;align-items:center}.brand img{border-radius:8px}.brand h1{font-size:21px;letter-spacing:-.6px}.brand p{color:var(--muted);font-size:12px;margin-top:2px}.counters{display:flex;gap:25px;align-items:center}.level-control{display:flex;gap:10px;align-items:center;color:var(--muted);font-size:12px}.level-control input{width:72px;padding:6px 8px;border:1px solid var(--line);border-radius:6px;font-size:20px;font-weight:600;color:var(--ink)}.counter{font-size:12px;color:var(--muted);border-left:1px solid var(--line);padding-left:25px}.counter strong{display:block;font-size:25px;line-height:1.2;color:var(--ink);font-variant-numeric:tabular-nums}.counter.remaining strong{color:var(--green)}.layout{display:grid;grid-template-columns:255px minmax(0,1fr);min-height:calc(100vh - 98px)}.sidebar{border-right:1px solid var(--line);background:white;display:flex;flex-direction:column}.sidebar-top{padding:22px 20px 16px}.sidebar h2{font-size:15px;margin-bottom:16px;display:flex;justify-content:space-between;align-items:center}.sidebar h2 span{font-size:11px;color:var(--purple);background:#f0eaf5;padding:2px 8px;border-radius:12px}.search-label{display:block;color:var(--muted);font-size:11px;margin-bottom:6px}#search{width:100%;border:1px solid var(--line);border-radius:6px;padding:9px 10px;font-size:12px}#professionList{padding:0 10px 16px}.profession-group h3{font-size:10px;letter-spacing:1.2px;text-transform:uppercase;margin:18px 12px 9px;color:var(--muted)}.profession-button{border:1px solid transparent;display:flex;align-items:center;gap:10px;width:100%;padding:6px 10px;text-align:left;border-radius:6px;background:transparent;font-size:13px;min-height:44px}.profession-button img{width:29px;height:29px;border-radius:4px}.profession-button .count{margin-left:auto;color:#a094aa;font-size:10px}.profession-button.active{background:#f0e9f5;border-color:#e3d6eb;color:#633c7c;font-weight:600}.profession-button.ancestor{color:#715287}.profession-button[hidden]{display:none}.sidebar-footer{font-size:11px;color:var(--muted);margin-top:auto;padding:16px 20px;border-top:1px solid var(--line)}main{padding:28px 30px 40px;min-width:0}.workspace-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--purple);font-weight:700;margin-bottom:5px}.workspace-heading h2{font-size:29px;font-weight:650;letter-spacing:-.8px}.path{color:var(--muted);font-size:12px;margin-top:5px}.actions{display:flex;gap:7px;flex-wrap:wrap}.actions button{font-size:12px}.instructions{margin-top:24px;padding:13px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:11px;align-items:center;flex-wrap:wrap}.instructions b{font-weight:600;color:var(--ink)}.instructions label{display:flex;gap:5px;align-items:center;white-space:nowrap}input[type=checkbox]{accent-color:var(--purple)}#status{min-height:47px;padding:14px 0;color:var(--green);font-size:12px}#status.error{color:#aa4b33}#trees{display:flex;align-items:flex-start;gap:18px;flex-wrap:wrap}.profession-tree{border:1px solid #d9cbe2;border-top:3px solid #9b80ac;border-radius:9px;background:white;overflow:hidden;box-shadow:0 3px 12px #30213d04;max-width:100%;flex-shrink:0}.profession-tree.selected{border-top-color:#75518b}.tree-title{display:flex;gap:9px;align-items:center;min-height:58px;padding:13px 14px;background:#fcfafd;border-bottom:1px solid #f0eaf3}.tree-title img{width:29px;height:29px;border-radius:4px}.tree-title h3{font-size:14px;margin:0}.tree-title small{display:block;color:var(--muted);font-size:10px;font-weight:400}.tree-points{margin-left:auto;font-variant-numeric:tabular-nums;font-size:12px;color:var(--purple)}.tree-viewport{overflow-x:auto}.tree-canvas{position:relative;margin:12px 6px 0}.tree-canvas svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.tree-canvas path{fill:none;stroke:#b7c9bd;stroke-width:2}.tree-canvas polygon{fill:#8ca695}.skill-node{position:absolute;width:40px;height:40px;display:block;border-radius:5px;padding:0;border:1px solid #ccc0d3;background:#ede8ef;box-shadow:0 2px 4px #30213d20;isolation:isolate}.skill-node img{display:block;width:38px;height:38px;border-radius:4px;filter:saturate(.35);opacity:.74;pointer-events:none}.skill-node.learned{border-color:#9a7137;box-shadow:0 0 0 1px #cca35f55}.skill-node.learned img{filter:none;opacity:1}.skill-node.maxed{border-color:#417d63}.skill-node.unavailable{opacity:.47}.skill-node.match{outline:3px solid #b17d35;outline-offset:3px}.skill-node:hover,.skill-node:focus-visible{z-index:2;transform:translateY(-1px);box-shadow:0 0 0 2px #a994bc}.skill-node .rank{position:absolute;right:-5px;bottom:-6px;min-width:20px;border-radius:4px;background:#42354d;color:#fff;box-shadow:0 0 0 1px #fff;font-size:11px;line-height:18px;font-weight:700;padding:0 3px;pointer-events:none}.skill-node.maxed .rank{background:#26715d}.source-note{max-width:850px;font-size:10px;line-height:1.8;color:var(--muted);border-top:1px solid var(--line);margin-top:28px;padding-top:16px}/* Game tooltip: follows hover, never captures or pins the pointer. */
.tooltip{position:fixed;z-index:20;width:max-content;max-width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:hidden;pointer-events:none;background:rgba(151,112,47,.87);border:1px solid #f1ce48;border-radius:2px;padding:12px 16px;color:#fff;box-shadow:inset 0 0 0 3px #a88632,inset 0 0 0 4px #e1bc4b,0 3px 9px #51390530;font-size:16px;font-weight:400;line-height:1.45;text-shadow:0 1px 1px #61451d45}
.tooltip::before,.tooltip::after{content:"";position:absolute;left:5px;right:5px;height:7px;border-left:2px solid #ffe47c;border-right:2px solid #ffe47c;pointer-events:none}
.tooltip::before{top:5px;border-top:1px solid #ffe47c}.tooltip::after{bottom:5px;border-bottom:1px solid #ffe47c}
.tooltip[hidden]{display:none}.game-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45}
.description-section{margin-top:22px}.description-section h3{font-size:inherit;line-height:inherit;font-weight:400;margin:0;color:#ffcb4a}
.requirements{margin-top:2px;color:#fff}.requirements p{margin:0}
.empty-search{padding:12px;color:var(--muted);font-size:12px}
@media(min-width:1000px){.sidebar{max-height:calc(100vh - 98px);position:sticky;top:0}#professionList{overflow-y:auto;scrollbar-width:thin}.sidebar-top,.sidebar-footer{flex-shrink:0}}
@media(max-width:760px){.topbar{padding:15px 18px;align-items:flex-start;flex-direction:column;gap:16px}.brand h1{font-size:19px}.counters{width:100%;justify-content:space-between;gap:14px}.level-control{font-size:11px}.counter{padding-left:18px}.layout{grid-template-columns:minmax(0,1fr)}.sidebar{border-right:0;border-bottom:1px solid var(--line)}.sidebar-top{padding:16px 18px 10px}.sidebar h2{margin-bottom:9px}#professionList{display:flex;gap:15px;overflow-x:auto;max-height:210px;padding:0 10px 10px}.profession-group{flex:0 0 180px;overflow-y:auto}.profession-group h3{margin-top:8px}.profession-button{font-size:12px;min-height:37px;padding:4px 8px}.profession-button img{width:25px;height:25px}.sidebar-footer{display:none}main{padding:22px 16px 30px}.workspace-heading h2{font-size:25px}.actions button{padding:7px 9px}.instructions{margin-top:18px}#trees{gap:12px}.profession-tree{flex-grow:1}.tree-canvas{margin-left:auto;margin-right:auto}.tooltip{left:12px!important;top:auto!important;bottom:12px;max-width:calc(100vw - 24px);max-height:70dvh;font-size:14px}.source-note{font-size:10px}}

/* Qworld TuNa: shared colors, logo, and atmosphere from the home page. */
:root{--ink:#30253e;--muted:#665b73;--purple:#79559a;--line:rgba(107,81,137,.20);--paper:#eeecf9;--green:#426e61}
body{background:#eeecf9 url('../assets/branding/ambient.jpg') center -18.3vw/100% auto no-repeat}
a:focus-visible{outline:3px solid #f3d693;outline-offset:4px}
.topbar{background:rgba(13,14,27,.96);border-bottom:1px solid rgba(243,214,147,.25);color:#f6f2ff;box-shadow:0 8px 30px rgba(21,16,36,.15)}
.brand{min-width:0;gap:17px}.brand-logo-link{display:flex;align-items:center;justify-content:center;width:172px;height:68px;flex:none;overflow:hidden}.brand .brand-logo{display:block;width:172px;height:auto;max-width:none;border-radius:0}.brand-title{border-left:1px solid rgba(243,214,147,.28);padding-left:18px}.brand h1{color:#f7f2ff}.brand p{color:#c9bfd3}.home-link{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;margin-left:7px;padding:9px 13px;border:1px solid rgba(243,214,147,.65);color:#f3d693;text-decoration:none;font-size:12px;font-weight:600;transition:background .2s,color .2s}.home-link:hover{background:#f3d693;color:#211a2b}
.counters .level-control,.counters .counter{color:#c9bfd3}.level-control input{background:#242034;border-color:#71647d;color:#fff}.counter{border-color:rgba(243,214,147,.25)}.counter strong{color:#f8f5fc}.counter.remaining strong{color:#f3d693}
.sidebar{background:rgba(255,255,255,.88);border-color:var(--line);box-shadow:8px 0 35px rgba(87,69,118,.05)}
.sidebar h2 span{color:#76509c;background:#efe8f6}.search-label,.profession-group h3,.sidebar-footer{color:#76677f}#search{background:rgba(255,255,255,.9);border-color:#d9cee3}
.profession-button.active{background:#ece3f4;border-color:#d9c8e7;color:#633c7c}.profession-button:hover{background:#f3edf8}
main{background:linear-gradient(135deg,rgba(249,247,253,.82),rgba(239,235,249,.88))}.eyebrow{color:#8a6da7;letter-spacing:.22em}.workspace-heading h2{color:#3c2b4f}.path{color:#706177}
.actions button{border:1px solid rgba(120,96,150,.35);background:rgba(255,255,255,.76);color:#624978}.actions button:hover{background:#eee5f7;border-color:#79559a}
.instructions{border-color:rgba(107,81,137,.2)}
.profession-tree{border-color:rgba(120,96,150,.25);border-top-color:#a68ab9;background:rgba(255,255,255,.92);box-shadow:0 12px 35px rgba(87,69,118,.08)}.profession-tree.selected{border-top-color:#79559a}.tree-title{background:linear-gradient(120deg,#f9f6fc,#f0eaf7);border-color:#e9dfef}.tree-title h3{color:#4b345b}.tree-points{color:#79559a}.tree-canvas path{stroke:#b4a0bf}.tree-canvas polygon{fill:#9b86a8}
@media(max-width:1000px){.brand{gap:10px}.brand-logo-link{width:130px;height:58px}.brand .brand-logo{width:145px}.brand-title{padding-left:12px}.brand h1{font-size:18px}.home-link{padding:8px 9px;margin-left:0}}
@media(max-width:760px){.topbar{gap:12px}.brand{width:100%;justify-content:space-between;gap:8px}.brand-logo-link{width:115px;height:52px}.brand .brand-logo{width:130px}.brand-title{flex:1;border-left:1px solid rgba(243,214,147,.28);padding-left:10px}.brand h1{font-size:16px;line-height:1.25}.brand p{font-size:11px}.home-link{font-size:11px;padding:8px}.sidebar{box-shadow:none}main{background:rgba(248,246,252,.9)}body{background-position:center -10vw;background-size:auto 1000px}}
@media(max-width:420px){.brand{flex-wrap:wrap}.brand-logo-link{width:105px}.brand .brand-logo{width:120px}.brand-title{min-width:145px}.home-link{margin-left:auto}.counters{gap:8px}.counter{padding-left:10px}.counter strong{font-size:21px}.level-control input{width:60px;font-size:18px}}