
:root{
  --bg:#121212; --panel:#1e1e1e; --panel2:#262626; --bar:#2b2b2b; --line:#3a3a3a;
  --ink:#e8e8e8; --ink2:#bdbdbd; --muted:#8a8a8a;
  --gold:#ffd100; --gold2:#c89b1a; --green:#1eff00; --green2:#4fbf3a; --blue:#58a6ff; --red:#ff4d4d;
  --tip-bg:#0e0e10; --tip-line:#5a4a1e;
}
*{box-sizing:border-box;touch-action:manipulation}
html{touch-action:manipulation}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:"Open Sans",system-ui,Segoe UI,Arial,sans-serif;font-size:14px;line-height:1.4}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;touch-action:manipulation}
button,.talent,.removed span,.sheet,.classes,.topbar{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
select{font:inherit}
button:focus-visible,select:focus-visible,input:focus-visible,.talent:focus-visible{outline:2px solid var(--gold);outline-offset:2px}

.app{max-width:1200px;margin:0 auto;padding:16px 16px 48px}
.masthead{display:flex;align-items:center;gap:12px;margin:0 0 12px;padding-bottom:12px;border-bottom:1px solid transparent;border-image:linear-gradient(90deg,var(--gold2),rgba(200,155,26,.25) 45%,transparent) 1}
.masthead .emblem{--cc:#ffd100;position:relative;width:52px;height:52px;flex:none;margin:0 8px 0 2px;border-radius:50%;background:#000;box-shadow:0 0 0 2px #000,0 0 0 4px var(--gold2),0 0 0 5px #3a2a08,0 0 22px color-mix(in srgb,var(--cc) 55%,transparent),0 4px 10px rgba(0,0,0,.7);transition:box-shadow .5s}
.masthead .emblem::before{content:"";position:absolute;inset:-14px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--cc) 28%,transparent),transparent 70%);z-index:-1;transition:background .5s}
.masthead .emblem.pulse img{animation:epulse .55s ease-out}
@keyframes epulse{0%{transform:scale(.7);filter:brightness(2)}60%{transform:scale(1.08)}100%{transform:scale(1);filter:brightness(1)}}
@media (prefers-reduced-motion:reduce){.masthead .emblem.pulse img{animation:none}.masthead .emblem,.masthead .emblem::before{transition:none}}
.masthead .emblem img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
.masthead .emblem::after{content:"";position:absolute;inset:0;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(255,232,154,.55),inset 0 6px 10px rgba(0,0,0,.45)}
.masthead .emblem .rk{position:absolute;right:-8px;bottom:-4px;padding:0 5px;height:17px;line-height:17px;border-radius:3px;background:#000;border:1px solid #6a5510;color:var(--gold);font-size:11px;font-weight:700;font-variant-numeric:tabular-nums}
.mtext{display:flex;flex-direction:column;gap:2px;min-width:0}
h1{margin:0;font-family:Cinzel,Georgia,serif;font-size:24px;font-weight:700;letter-spacing:.03em;line-height:1.1;color:#ffd75e;text-shadow:0 1px 0 #7a5a10,0 2px 6px rgba(0,0,0,.6)}
.masthead .tag{color:var(--muted);font-size:12px;line-height:1.3}
.masthead .tag b{color:var(--ink2);font-weight:600}
@media (max-width:480px){h1{font-size:21px}.masthead .emblem{width:44px;height:44px}.masthead .emblem .rk{font-size:10px;height:15px;line-height:15px}.masthead .tag{font-size:11px}}

.topbar{display:flex;flex-wrap:wrap;align-items:center;gap:0;background:var(--bar);border-radius:4px;padding:0;overflow:hidden}
.classes{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:6px;flex-basis:100%;padding:10px;background:#181818;box-shadow:inset 0 -1px 0 #000}
@media (max-width:820px){.classes{grid-template-columns:repeat(3,minmax(0,1fr))}}
.classes button{display:flex;align-items:center;justify-content:flex-start;gap:7px;padding:6px 8px;border-radius:5px;background:#2a2a2a;box-shadow:inset 0 0 0 1px #333;font-weight:600;color:var(--ink2);min-width:0;white-space:nowrap}
.classes button img{width:24px;height:24px;border-radius:4px;display:block;flex:none;border:1px solid #000}
.classes button span{overflow:hidden;text-overflow:ellipsis}
.classes button:hover{background:#3e3e3e;color:#fff}
.classes button[aria-pressed="true"]{background:#4a4229;color:#fff;box-shadow:inset 0 0 0 1px var(--gold)}
.topbar .controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px;flex:1;padding:8px 10px;border-top:1px solid #3d3d3d;background:linear-gradient(180deg,#303030,var(--bar))}
.classes button.soon{opacity:.4;cursor:not-allowed}
.topbar .spacer{flex:1}
.topbar label{display:flex;align-items:center;gap:6px;color:var(--ink2);font-weight:600}
.topbar select{background:#3a3a3a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23ddd' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 8px center;color:#fff;border:0;border-radius:4px;padding:5px 24px 5px 8px;appearance:none;-webkit-appearance:none;font:inherit;font-size:13px}
#loadBuild{font-weight:600;max-width:240px;text-overflow:ellipsis}#loadBuild[hidden]{display:none}
.topbar .btn{background:#3a3a3a;border-radius:4px;padding:5px 10px;font-weight:600;color:#fff}
.topbar .btn:hover{background:#4a4a4a}

.banner{--cc:#ffd100;margin-top:10px;min-height:0;border-radius:4px;background:#2a2a2a center/cover no-repeat;position:relative;overflow:hidden;display:flex;align-items:center;gap:16px;padding:12px 16px}
.banner::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.86),rgba(0,0,0,.7) 60%,rgba(0,0,0,.55))}
.banner::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 0 50%,color-mix(in srgb,var(--cc) 16%,transparent),transparent 40%);pointer-events:none}
.banner>*{position:relative;z-index:1}
.bmed{position:relative;width:60px;height:60px;flex:none;border-radius:50%;background:#000;box-shadow:0 0 0 2px #000,0 0 0 4px var(--gold2),0 0 0 5px #3a2a08,0 0 22px color-mix(in srgb,var(--cc) 55%,transparent),0 4px 10px rgba(0,0,0,.7)}
.bmed img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
.bmed::after{content:"";position:absolute;inset:0;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(255,232,154,.55),inset 0 6px 10px rgba(0,0,0,.45)}
.btext{flex:1;min-width:0}
.banner h2{margin:0;font-family:Cinzel,Georgia,serif;font-size:22px;font-weight:700;letter-spacing:.03em;line-height:1.1;color:#ffd75e;text-shadow:0 1px 0 #7a5a10,0 2px 8px rgba(0,0,0,.8)}
.bsum{margin-top:3px;font-size:13px;color:#e6e6e6;text-shadow:0 1px 2px #000,0 0 6px rgba(0,0,0,.9);display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline}
.bsum .spec{color:var(--cc);font-weight:700;font-size:14px}
.bsum .split b{color:var(--ink);font-weight:700;font-variant-numeric:tabular-nums}
.bsum .hint{color:#cfcfcf}
.bbars{display:grid;gap:4px;flex:none;width:160px}
.bbar{display:grid;grid-template-columns:18px 1fr 22px;align-items:center;gap:6px;font-size:11px;color:#fff;text-shadow:0 1px 2px #000,0 0 6px rgba(0,0,0,.9);font-variant-numeric:tabular-nums}
.bbar img{width:18px;height:18px;border-radius:50%;border:1px solid #000}
.bbar .tk{height:4px;border-radius:3px;background:rgba(0,0,0,.75);box-shadow:0 0 0 1px rgba(255,255,255,.18);overflow:hidden}
.bbar .fl{height:100%;width:0;border-radius:3px;background:linear-gradient(90deg,var(--gold2),var(--gold));transition:width .35s ease}
.bbar.lead .fl{background:linear-gradient(90deg,color-mix(in srgb,var(--cc) 70%,#000),var(--cc))}
.bbar b{text-align:right;color:var(--ink)}
@media (max-width:640px){.banner{flex-wrap:wrap;gap:8px 12px;padding:10px 12px}.bbars{width:100%;grid-template-columns:repeat(3,1fr);gap:8px}.bbar{grid-template-columns:18px 1fr 20px}.banner h2{font-size:20px}}
@media (prefers-reduced-motion:reduce){.bbar .fl{transition:none}}

.status{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--panel);padding:10px 12px;margin-top:8px;border-radius:4px 4px 0 0}
.status strong{font-size:16px}
.status .r{font-variant-numeric:tabular-nums;color:var(--ink2);display:flex;flex-wrap:wrap;gap:2px 14px;justify-content:flex-end}
.status .r b{color:var(--blue);font-weight:700}
.status .r .left{margin-left:0}
.status .r .left b{color:var(--green2)}
.status .r .left b.over{color:var(--red)}

.trees{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;background:var(--panel);padding:0 6px 6px;border-radius:0 0 4px 4px}
@media (max-width:820px){.trees{grid-template-columns:1fr}}
.tree{background:var(--panel2);border-radius:4px;overflow:hidden;display:flex;flex-direction:column}
.thead{--fill:0%;--cc:var(--gold);display:flex;align-items:center;gap:8px;padding:8px 10px;background:#333;position:relative}
.thead::after{content:"";position:absolute;left:0;bottom:0;height:3px;width:var(--fill);background:linear-gradient(90deg,var(--gold2),var(--gold));transition:width .3s ease;box-shadow:0 0 8px rgba(255,209,0,.35)}
.thead.lead::after{background:linear-gradient(90deg,color-mix(in srgb,var(--cc) 70%,#000),var(--cc));box-shadow:0 0 8px color-mix(in srgb,var(--cc) 45%,transparent)}
.thead.spent .c b{color:var(--gold)}
.thead.lead .c b{color:var(--cc)}
.thead .n{display:flex;flex-direction:column;gap:1px;min-width:0}
.thead .nr{font-size:10px;font-weight:400;color:var(--muted);letter-spacing:.04em}
@media (prefers-reduced-motion:reduce){.thead::after{transition:none}}
.thead img{width:30px;height:30px;border-radius:50%;border:2px solid #4fc3f7;box-shadow:0 0 0 1px #000}
.thead .n{font-weight:700;font-size:15px;flex:1;line-height:1.15}
.thead .c{font-variant-numeric:tabular-nums;color:var(--ink2);font-weight:600}
.thead .c b{color:#fff}
.thead .tr{opacity:.55;font-size:15px;line-height:1;padding:2px 4px;border-radius:3px}
.thead .tr:hover{opacity:1;background:#444}
.status .r .lvl{margin-left:0;color:var(--muted)}
.status .r .lvl b{color:var(--ink2);font-weight:600}
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:60;background:var(--tip-bg);border-top:1px solid var(--tip-line);padding:10px 14px 0;box-shadow:0 -10px 30px rgba(0,0,0,.6);font-size:14px;line-height:1.35;max-height:42vh;overflow:auto;overscroll-behavior:contain}
.sheet .tip-body .hd{padding-right:36px}
.sheet .tip-body .hd .r{color:#bbb;font-size:12px}
.sheet .nx{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin-top:6px;color:#ddd}
.sheet .nx .lab{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:#888;margin-right:2px}
.sheet .nx .pair s{color:#999;text-decoration-color:#777}.sheet .nx .pair b{color:var(--gold);margin-left:5px}
.sheet .nx .pair b::before{content:"→ ";color:#777;font-weight:400}
.sheet .nxd{margin-top:6px}.sheet .nxd summary{cursor:pointer;color:#ccc;font-size:13px;list-style:none;display:flex;align-items:center;gap:6px}.sheet .nxd summary::before{content:"▸";color:var(--gold);font-size:11px}.sheet .nxd[open] summary::before{content:"▾"}
.sheet .nxd .d{margin-top:4px}
.sheet[hidden]{display:none}
.sheet .tip-body .n{font-size:16px;font-weight:600}
.sheet .tip-body .cost{color:#bbb}.sheet .tip-body .p{margin-top:6px}.sheet .tip-body .d{color:var(--gold);margin-top:2px;white-space:pre-line}
.sheet .tip-body .est{color:#d8c58a;font-style:italic;font-size:12px;margin-top:4px}.sheet .tip-body .next{margin-top:6px}.sheet .tip-body .req{color:var(--red);margin-top:6px}.sheet .tip-body .cta{display:none}
.sheet .acts{display:flex;gap:8px;margin-top:10px;position:sticky;bottom:0;padding:8px 0 calc(10px + env(safe-area-inset-bottom));background:var(--tip-bg);box-shadow:0 -10px 12px -6px var(--tip-bg)}
.sheet .acts button{flex:1;padding:10px;border-radius:6px;font-weight:700;font-size:15px;background:#2a2a2a;color:#fff;user-select:none;-webkit-user-select:none}
.sheet .acts .add{background:#1f5a1f;color:#bfffbf}.sheet .acts .rem{background:#5a1f1f;color:#ffbfbf}
.sheet .acts button:disabled{opacity:.35}
.sheet .x{position:absolute;right:10px;top:8px;font-size:20px;color:#aaa;padding:4px 8px}
@media (hover:none){.tip{display:none!important}}
.tbody{position:relative;flex:1;background:#111 center/cover no-repeat;padding:14px 8px 16px}
.tbody::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.35),rgba(0,0,0,.65));pointer-events:none}
.grid{position:relative;display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:64px;gap:4px 0}
.tree.empty .tbody{display:flex;align-items:center;justify-content:center;min-height:260px;color:var(--ink2);text-align:center;font-style:italic;padding:20px}
.tree.empty .tbody p{position:relative;margin:0;max-width:24ch}
.arrows{position:absolute;inset:0;pointer-events:none;overflow:visible}
.arrows line,.arrows polyline{stroke:#c9c9c9;stroke-width:2;fill:none;opacity:.55}
.arrows .on{stroke:var(--gold);opacity:1}
.arrows marker path{fill:#c9c9c9}
.arrows marker.on path{fill:var(--gold)}
.tier{position:absolute;left:0;right:0;border-top:1px dashed rgba(255,255,255,.08);pointer-events:none}

.talent{position:relative;width:44px;height:44px;margin:4px auto 0;border-radius:5px;cursor:pointer;user-select:none;background:#000;box-shadow:0 0 0 1px #000,0 0 0 2px #6b6b6b}
.talent img,.talent .ab{position:absolute;inset:0;width:100%;height:100%;border-radius:5px;object-fit:cover}
.talent .ab{display:flex;align-items:center;justify-content:center;font-weight:700;font-size:12px;letter-spacing:.02em;color:#ddd;background:linear-gradient(135deg,#3a3a3a,#1a1a1a)}
.talent.locked img,.talent.locked .ab{filter:grayscale(1) brightness(.55)}
.talent.avail{box-shadow:0 0 0 1px #000,0 0 0 2px var(--green2)}
.talent.partial{box-shadow:0 0 0 1px #000,0 0 0 2px var(--green2)}
.talent.maxed{box-shadow:0 0 0 1px #000,0 0 0 2px var(--gold)}
.talent:hover{box-shadow:0 0 0 1px #000,0 0 0 2px #fff}
.talent .rk{position:absolute;right:-8px;bottom:-8px;padding:0 4px;min-width:26px;height:17px;line-height:17px;border-radius:3px;background:#000;border:1px solid #444;color:#aaa;font-size:11px;font-weight:700;text-align:center;font-variant-numeric:tabular-nums}
.talent.avail .rk,.talent.partial .rk{color:var(--green);border-color:#2a5a1a}
.talent.maxed .rk{color:var(--gold);border-color:#6a5510}
.talent.unknown{outline:1px dashed #a88}
/* Build complete (no points left): unpicked talents go quiet so the build itself is all you see. */
body.done .trees .talent.avail{box-shadow:0 0 0 1px #000,0 0 0 2px #6b6b6b}
body.done .trees .talent.avail img,body.done .trees .talent.avail .ab{filter:grayscale(1) brightness(.55)}
body.done .trees .talent.avail .rk,body.done .trees .talent.locked .rk{display:none}
body.done .trees .talent.avail:hover,body.done .trees .talent.locked:hover{box-shadow:0 0 0 1px #000,0 0 0 2px #fff}
.badge{display:none;position:absolute;left:-7px;top:-7px;width:16px;height:16px;border-radius:50%;font-size:10px;font-weight:800;line-height:16px;text-align:center;color:#000;border:1px solid #000;z-index:2}
body.cmp .badge{display:block}
.badge.new{background:#4ade80}.badge.changed{background:#fbbf24}.badge.moved{background:#60a5fa}
body.cmp .talent.same img,body.cmp .talent.same .ab{filter:grayscale(.6) brightness(.75)}
.legend{display:none;align-items:center;gap:14px;flex-wrap:wrap;background:var(--panel);padding:6px 12px;font-size:12px;color:var(--ink2);border-top:1px solid var(--line)}
body.cmp .legend{display:flex}
.legend i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:5px;vertical-align:-1px}
.removed{display:none;position:relative;margin:8px 4px 0;padding:8px 10px;background:rgba(0,0,0,.55);border-radius:4px;font-size:12px;color:var(--ink2)}
body.cmp .removed{display:block}
.removed b{color:#f87171;display:block;margin-bottom:3px;font-size:11px;letter-spacing:.06em;text-transform:uppercase}
.removed span{display:inline-block;margin:1px 8px 1px 0;border-bottom:1px dotted #666;cursor:help}
.removed span:hover,.removed span:focus-visible{color:#fff;border-bottom-color:var(--gold)}
.tip .cl,.sheet .cl{margin-top:8px;padding-top:6px;border-top:1px solid #333;color:#bbb;font-size:12px}
.cl b{color:#ddd}
.cl .t{color:#9aa}
.cl .m{color:#8b8b8b;font-size:11px;margin-top:2px}
.cl .diff{display:grid;grid-template-columns:auto 1fr;gap:3px 8px;margin-top:6px;align-items:start}
.cl .lab{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:#777;padding-top:2px}
.cl .old{color:#9a9a9a}
.cl .new{color:#e6e6e6}
.cl del{color:#e07a7a;text-decoration:line-through;text-decoration-color:rgba(224,122,122,.7)}
.cl ins{text-decoration:none;color:#ffe08a;background:rgba(255,209,0,.14);border-radius:2px;padding:0 1px}
.talent.flash{animation:tflash .55s ease-out}
.talent.flash .rk{animation:tflashrk .55s ease-out}
@keyframes tflash{0%{box-shadow:0 0 0 1px #000,0 0 0 2px var(--gold),0 0 0 6px rgba(255,209,0,.5),0 0 22px rgba(255,209,0,.9)}100%{box-shadow:0 0 0 1px #000,0 0 0 2px var(--gold)}}
@keyframes tflashrk{0%{transform:scale(1.35);color:#fff}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.talent.flash,.talent.flash .rk{animation:none}}
.topbar .btn[aria-pressed="true"]{background:#5a4a1e;color:var(--gold)}
#cmp{box-shadow:inset 0 0 0 1px var(--gold2);color:var(--gold);background:#2e2a1f}
#cmp:hover{background:#3a3323}
#cmp[aria-pressed="true"]{background:var(--gold);color:#1a1a1a;box-shadow:none}
@media (max-width:640px){#cmp{flex-basis:100%;text-align:center;padding:8px 10px}.topbar .spacer{display:none}.topbar .lvl-word{display:none}.topbar .controls{gap:6px;justify-content:space-between}#loadBuild{flex:0 1 auto;min-width:0;max-width:80px;padding-left:6px;padding-right:20px;background-position:right 5px center}}

.tip{position:fixed;z-index:50;width:300px;max-width:calc(100vw - 16px);background:var(--tip-bg);color:#fff;border:1px solid var(--tip-line);border-radius:5px;padding:9px 11px;font-size:13px;line-height:1.35;pointer-events:none;box-shadow:0 10px 30px rgba(0,0,0,.7)}
.tip[hidden]{display:none}
.tip .n{font-size:15px;font-weight:600}
.tip .r,.tip .cost{color:#fff}
.tip .cost{color:#bbb}
.tip .p{margin-top:7px}
.tip .d{color:var(--gold);margin-top:2px;white-space:pre-line}
.tip .est{color:#d8c58a;font-style:italic;margin-top:4px;font-size:12px}
.tip .next{margin-top:7px}
.tip .req{color:var(--red);margin-top:6px}
.tip .cta{color:var(--green);margin-top:7px}
.tip .cta.no{color:#999}


.racials{margin-top:10px;background:var(--panel);border-radius:4px;padding:10px 12px}
.racials .rh{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:8px}
.racials .rh strong{font-size:16px}
.racials .rh label{display:flex;align-items:center;gap:6px;color:var(--ink2);font-size:13px;cursor:pointer}
.racials .rh .cnt{color:var(--muted);font-size:12px}
.race.ccard{border-left-color:var(--cc)!important}
.race.ccard .rn .cls img{border-radius:50%}.race.ccard .rn .cls img.nyet{opacity:.35}
.race.ccard .rn img.portrait{box-shadow:0 0 0 1px var(--cc)}
.race.rc .crs{display:none}.race.rc.open .crs{display:block}
.race li.csub{margin-top:6px;padding-top:6px;border-top:1px dashed var(--line)}
.race li.csub img{border-radius:50%}
.factions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (max-width:820px){.factions{grid-template-columns:1fr}}
.faction h3{margin:0 0 8px;font-size:13px;letter-spacing:.08em;text-transform:uppercase;padding-bottom:4px;border-bottom:1px solid var(--line)}
.faction.horde h3{color:#e6432f}.faction.alliance h3{color:#3d8bff}
.race{background:var(--panel2);border-radius:6px;padding:10px 12px;margin-bottom:8px;border-left:3px solid transparent}
.faction.horde .race{border-left-color:#7a2a20}.faction.alliance .race{border-left-color:#24507f}
.faction.ctier{grid-column:1/-1}.faction.ctier h3{color:var(--gold)}
.race.dim{opacity:.4}
.race .rn{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.race.rc{cursor:pointer;padding:8px 12px}
.race.rc .rn{margin-bottom:0}
.race.rc .rmeta{flex:1;min-width:0}
.race.rc .strip{display:flex;gap:4px;flex:none}
.race.rc .strip img{width:26px;height:26px;border-radius:4px;border:1px solid #000;box-shadow:0 0 0 1px #3a3a3a;background:#111}
.race.rc .chev{color:var(--muted);font-size:14px;flex:none;transition:transform .15s}
.race.rc.open .chev{transform:rotate(180deg)}
.race.rc ul{display:none}
.race.rc.open ul{display:grid;margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.race.rc:hover{background:#2c2c2c}
.race.rc:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
@media (max-width:480px){.race.rc .strip img{width:22px;height:22px}.race.rc .cls img{width:16px;height:16px}}
@media (prefers-reduced-motion:reduce){.race.rc .chev{transition:none}}
.race .rn img.portrait{width:44px;height:44px;border-radius:50%;border:2px solid #000;box-shadow:0 0 0 1px var(--line);background:#000;flex:none}
.race .rn .nm{font-weight:700;font-size:15px;line-height:1.15}
.race .rn .cls{display:flex;flex-wrap:wrap;gap:3px;margin-top:4px}
.race .rn .cls img{width:18px;height:18px;border-radius:3px;border:1px solid #000;display:block}
.race ul{list-style:none;margin:0;padding:0;display:grid;gap:5px;font-size:13px}
.race li{display:grid;grid-template-columns:26px 1fr;gap:8px;align-items:start}
.race li img,.race li .ab{width:26px;height:26px;border-radius:4px;border:1px solid #000;box-shadow:0 0 0 1px #3a3a3a;background:#111;display:block;object-fit:cover}
.race li .ab{display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:700;color:#999}
.race li b{color:var(--gold);font-weight:600;display:block;line-height:1.2}
.race li span{color:var(--ink2);display:block;line-height:1.3}
#classRacials{margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid var(--line);display:grid;gap:8px}
.legacy.fold{margin:0;background:var(--panel2)}
.legacy.fold .lfan img{width:30px;height:30px}
.legacy.fold .ltitle strong{font-size:15px}
.ltrees.one{grid-template-columns:1fr}
.ltree h4 img.portrait{width:26px;height:26px;border-radius:50%;border:2px solid #000;box-shadow:0 0 0 1px var(--line)}
.legacy.fold .ltree{background:var(--panel)}
.legacy.fold .crs{margin:8px 0 0}
.crh{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px;margin-bottom:8px}
.crh strong{font-size:14px}.crh span{color:var(--muted);font-size:12px;max-width:70ch}
.crgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:6px}
.crgrid .race{margin:0}
.crs{color:var(--muted);font-size:11px;margin-top:6px}
/* Your build: one panel, two rows. Solid gold = the action; grey pills = things you saved. */
.yours{margin-top:10px;background:var(--panel);border-radius:4px;padding:0 12px}
.yrow{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;padding:10px 0}
.yrow+.yrow{border-top:1px solid var(--line)}
.ylab{flex:none;min-width:44px;white-space:nowrap;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.yrow .btn{border-radius:4px;padding:6px 12px;font-weight:600;font-size:13px;background:#3a3a3a;color:#fff}
.yrow .btn:hover{background:#4a4a4a}
.yrow .btn.primary{background:var(--gold);color:#1a1400}
.yrow .btn.primary:hover{background:#ffdc33}
.yrow .btn[hidden]{display:none}
.yrow input{flex:1;min-width:200px;background:#111;color:#ddd;border:1px solid var(--line);border-radius:4px;padding:6px 8px;font:inherit;font-size:12px}
.ybtns{display:flex;gap:8px;flex:none}
.blist{display:flex;flex-wrap:wrap;align-items:center;gap:6px;flex:1;min-width:0}
.blist:empty{display:none}
.bchip{display:inline-flex;align-items:center;gap:6px;max-width:100%;background:#2a2a2a;border-radius:999px;padding:3px 6px 3px 3px;box-shadow:inset 0 0 0 1px #3d3d3d;font-size:12px;color:var(--ink2)}
.bchip img{width:20px;height:20px;border-radius:50%;border:1px solid #000;flex:none}
.bchip .bn{font-weight:600;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px;color:var(--ink)}
.bchip .bn:hover{text-decoration:underline}
.bchip .bs{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.bchip .bx{color:#888;padding:0 5px;font-size:14px;line-height:1;cursor:pointer;border-radius:50%}
.bchip .bx:hover{color:#fff;background:#444}
.bchip.cur{background:#2e2a1f;box-shadow:inset 0 0 0 1px #4d4020}
.bchip.cur .bn{color:var(--gold)}
.bchip.cur .bn::after{content:" · loaded";font-weight:400;color:var(--muted)}
.bhint{color:var(--muted);font-size:11px;flex-basis:100%;margin-top:-2px}
@media (max-width:640px){.yours .blist{flex-basis:100%}.yrow input{min-width:150px}.ybtns{flex-basis:100%}}
.help{color:var(--muted);font-size:12px;margin:10px 2px 0;max-width:80ch}
.legacy{margin-top:10px;background:var(--panel);border-radius:4px;padding:0 12px 10px}
.legacy summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px;padding:12px 0;user-select:none}
.legacy summary::-webkit-details-marker{display:none}
.lfan{display:flex;flex:none;isolation:isolate}
.lfan img{width:34px;height:34px;border-radius:6px;border:1px solid #000;box-shadow:0 0 0 1px var(--gold2),0 3px 8px rgba(0,0,0,.6);background:#111}
.lfan img+img{margin-left:-12px}
.lfan img:nth-child(1){transform:rotate(-10deg) translateY(2px);z-index:1}
.lfan img:nth-child(2){z-index:3}
.lfan img:nth-child(3){transform:rotate(10deg) translateY(2px);z-index:2}
.ltitle{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.ltitle strong{font-size:16px;color:var(--ink)}
.ltitle span{color:var(--muted);font-size:12px;line-height:1.3}
.lpill{flex:none;padding:6px 12px;border-radius:999px;font-size:13px;font-weight:700;color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold2);background:#2e2a1f}
.legacy summary:hover .lpill{background:#3a3323}
.lpill .hide{display:none}
.legacy[open] .lpill .show{display:none}
.legacy[open] .lpill .hide{display:inline}
.legacy[open] summary{border-bottom:1px solid var(--line);margin-bottom:10px}
.lnote{color:var(--muted);font-size:12px;margin:0 0 10px;max-width:80ch}
.ltrees{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
@media (max-width:900px){.ltrees{grid-template-columns:1fr}}
.ltree{background:var(--panel2);border-radius:6px;padding:10px 12px}
.ltree h4{margin:0 0 8px;display:flex;align-items:center;gap:8px;font-size:14px;color:var(--gold)}
.ltree h4 img{width:24px;height:24px;border-radius:4px;border:1px solid #000}
.ltree ul{list-style:none;margin:0;padding:0;display:grid;gap:6px;font-size:13px}
.ltree li{display:grid;grid-template-columns:26px 1fr;gap:8px;align-items:start}
.ltree li img{width:26px;height:26px;border-radius:4px;border:1px solid #000;box-shadow:0 0 0 1px #3a3a3a;background:#111}
.ltree li b{color:var(--ink);font-weight:600}
.ltree li b small{color:var(--muted);font-weight:400;margin-left:4px}
.ltree li span{display:block;color:var(--ink2);line-height:1.3}
.foot2{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px;color:var(--ink2);font-size:13px;align-items:start}
@media (max-width:820px){.foot2{grid-template-columns:1fr}}
.foot2 .legacy.fold{background:var(--panel)}
.how .fhead{justify-content:space-between;flex-wrap:wrap;gap:8px 16px}
.how .ltitle{flex:none}
.states{display:flex;gap:14px;align-items:flex-end}
.states .lg{display:flex;flex-direction:column;align-items:center;gap:8px}
.states .talent{width:26px;height:26px;margin:0;cursor:default;border-radius:4px;background:linear-gradient(135deg,#3a3a3a,#1a1a1a)}
.states .talent.locked{background:linear-gradient(135deg,#262626,#111)}
.states .talent img{position:absolute;inset:0;width:100%;height:100%;border-radius:4px;object-fit:cover}
.states .talent .rk{right:-6px;bottom:-6px;min-width:0;height:13px;line-height:13px;font-size:9px;padding:0 3px}
.states small{font-size:10px;color:var(--muted);letter-spacing:.04em}
.about{background:transparent;border-left:3px solid var(--gold2);padding:6px 0 6px 14px;margin:6px 0;align-self:center}
.about p{color:var(--ink2)}
.about p b{color:var(--ink);font-weight:600}
.about .fine{color:var(--muted);font-size:12px;margin-top:10px}
.legacy.static .fhead{display:flex;align-items:center;gap:12px;padding:12px 0;margin-bottom:10px;border-bottom:1px solid var(--line)}
.foot2 ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.foot2 li b{color:var(--ink);font-weight:600}
.foot2 p{margin:0 0 8px;color:var(--muted);max-width:70ch}
.foot2 p:last-child{margin-bottom:0}
.foot2 .mob{display:none}
@media (hover:none){.foot2 .mob{display:block}.foot2 .desk{display:none}}
.help kbd{border:1px solid #444;border-radius:3px;padding:0 4px;background:#222;font-family:inherit}
.toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);background:#000;color:#fff;padding:7px 14px;border-radius:4px;border:1px solid #555;opacity:0;transition:opacity .15s;pointer-events:none;font-size:13px}
.toast.show{opacity:1}
@media (prefers-reduced-motion:reduce){.toast{transition:none}}
