.tc2{--S:52px;--G:16px;font-family:Lato,system-ui,sans-serif;color:#d9dcea}
.tc2 .pick{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-bottom:14px}
.tc2 .pick button{display:inline-flex;align-items:center;gap:6px;background:#0b1430;border:1px solid #2a3766;color:#d9dcea;border-radius:8px;padding:6px 10px;font:600 14px Lato,sans-serif;cursor:pointer;min-height:40px}
.tc2 .pick button[aria-pressed=true]{border-color:#f8b700;color:#ffd36b;background:#13204a}
.tc2 .hd{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;justify-content:space-between;background:#0b1430;border:1px solid #a87a1c;border-radius:10px;padding:10px 14px;margin-bottom:12px}
.tc2 .stats{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:15px}.tc2 .stats b{color:#ffd36b;font:700 18px Cinzel,serif}
.tc2 .acts{display:flex;flex-wrap:wrap;gap:6px}
.tc2 .b2{background:#13204a;border:1px solid #a87a1c;color:#ffd36b;border-radius:7px;padding:7px 11px;font:700 13px Lato,sans-serif;cursor:pointer;min-height:38px}
.tc2 .b2:hover,.tc2 .b2:focus-visible{background:#1b2b60;outline:2px solid #f8b700;outline-offset:1px}.tc2 .b2.on{background:#f8b700;color:#060b1a}
.tc2 .share{display:flex;gap:6px;width:100%}.tc2 .share input{flex:1;min-width:0;background:#060b1a;border:1px solid #2a3766;color:#d9dcea;border-radius:7px;padding:7px 9px;font:13px ui-monospace,monospace}
.tc2 .trees{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
@media(max-width:1000px){.tc2 .trees{grid-template-columns:1fr;max-width:420px;margin:0 auto}}
.tc2 .tree{background:linear-gradient(180deg,#13204a,#060b1a);border:1px solid #2a3766;border-radius:10px;overflow:hidden}
.tc2 .th{display:flex;align-items:center;gap:8px;padding:8px 10px;border-bottom:1px solid rgba(168,122,28,.5);background:rgba(6,11,26,.6)}
.tc2 .th h3{flex:1;margin:0;font:700 17px Cinzel,serif;color:#ffd36b}.tc2 .th .pts{font:700 20px Cinzel,serif;color:#fff;min-width:24px;text-align:right}
.tc2 .th .rt{background:none;border:1px solid #a87a1c;color:#ffd36b;border-radius:50%;width:30px;height:30px;cursor:pointer;font-size:15px;line-height:1}
.tc2 .th .rt:disabled{opacity:.35;cursor:default}
.tc2 .emb{width:30px;height:30px;border-radius:6px;display:grid;place-items:center;font:700 14px Cinzel,serif;color:#fff;border:1px solid #a87a1c}
.tc2 .gw{position:relative;margin:14px auto 16px;width:calc(4*var(--S) + 3*var(--G))}
.tc2 .gw svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.tc2 .ar{stroke:#5b6280;stroke-width:4;fill:none}.tc2 .ar.on{stroke:#f8b700}.tc2 .ah{fill:#5b6280}.tc2 .ah.on{fill:#f8b700}
.tc2 button.tl{background:#060b1a;position:absolute;width:var(--S);height:var(--S);padding:0;border-radius:8px;border:2px solid #3a4160;cursor:pointer;color:#fff;font:700 15px Cinzel,serif;display:grid;place-items:center;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;text-shadow:0 1px 2px #000}
.tc2 .tl .ic{position:absolute;inset:2px;border-radius:5px;display:grid;place-items:center}
.tc2 .tl.lock .ic{filter:grayscale(1) brightness(.45)}
.tc2 button.tl.lock{border-color:#3a4160}.tc2 button.tl.av{border-color:#3fc35a;box-shadow:0 0 6px rgba(63,195,90,.45)}.tc2 button.tl.some{border-color:#3fc35a}.tc2 button.tl.full{border-color:#f8b700;box-shadow:0 0 8px rgba(248,183,0,.6)}
.tc2 .tl:focus-visible{outline:3px solid #fff;outline-offset:2px}
.tc2 .rk{position:absolute;right:-8px;bottom:-8px;background:#060b1a;border:1px solid #3a4160;border-radius:6px;font:700 11px Lato,sans-serif;padding:1px 4px;color:#9aa0b8;text-shadow:none}
.tc2 .tl.av .rk,.tc2 .tl.some .rk{color:#5fe07a;border-color:#3fc35a}.tc2 .tl.full .rk{color:#ffd36b;border-color:#f8b700}
.tc2 .dot{position:absolute;top:-5px;width:10px;height:10px;border-radius:50%;border:1px solid #060b1a}.tc2 .dot.fc{left:-5px;background:#4aa3ff}.tc2 .dot.un{right:-5px;background:#ff5a5a}
.tc2 .tip{position:fixed;z-index:60;max-width:320px;background:#060b1a;border:1px solid #a87a1c;border-radius:8px;padding:10px 12px;font-size:14px;line-height:1.45;box-shadow:0 8px 24px rgba(0,0,0,.6);pointer-events:none;display:none}
.tc2 .tip.show{display:block}.tc2 .tip b{font:700 16px Cinzel,serif;color:#ffd36b}.tc2 .tip .nx{color:#9aa0b8;margin-top:6px}.tc2 .tip .rq{color:#ff8b8b}.tc2 .tip .hint{color:#5fe07a;margin-top:6px;font-size:13px}.tc2 .tip .hint.rm{color:#ff8b8b}
.tc2 .flag{display:inline-block;font-size:11px;border-radius:4px;padding:0 5px;margin-left:5px;vertical-align:2px}.tc2 .flag.fc{background:#16365e;color:#9fd0ff}.tc2 .flag.un{background:#4a1515;color:#ffb0b0}
@media(hover:none),(max-width:640px){.tc2 .tip.show{left:8px!important;right:8px;top:auto!important;bottom:8px;max-width:none;pointer-events:auto}}
.tc2 .ord{margin-top:14px;background:#0b1430;border:1px solid #2a3766;border-radius:10px;padding:10px 14px}.tc2 .ord h3{margin:0 0 6px;font:700 17px Cinzel,serif;color:#ffd36b}
.tc2 .ord ol{margin:0;padding-left:0;list-style:none;columns:3 220px;font-size:13.5px}.tc2 .ord li{break-inside:avoid;padding:1px 0}.tc2 .ord li span{color:#9aa0b8;display:inline-block;min-width:52px}
.tc2 .imp{display:none;margin-top:8px;gap:6px;width:100%}.tc2 .imp.show{display:flex}.tc2 .imp input{flex:1;min-width:0;background:#060b1a;border:1px solid #2a3766;color:#d9dcea;border-radius:7px;padding:7px 9px}
.tc2 .msg{font-size:13px;color:#5fe07a;min-height:1em}.tc2 .msg.err{color:#ff8b8b}
.tc2 .banner{background:#2a1e05;border:1px solid #a87a1c;border-radius:8px;padding:8px 12px;margin-bottom:10px;font-size:14px}
.tc2 .muted{color:#9aa0b8}.tc2 .foot{margin-top:12px;font-size:13.5px}
.tc2 .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media(max-width:400px){.tc2{--S:48px;--G:14px}}
/* ---- v3: in-game look (CSS only, no images) ---- */
.tc2 .tree{--cc:#f8b700;position:relative;border:1px solid #4a4f66;border-radius:6px;box-shadow:inset 0 0 0 1px #000,inset 0 0 40px rgba(0,0,0,.65),0 2px 10px rgba(0,0,0,.5);
 background:radial-gradient(ellipse at 50% 0%,color-mix(in srgb,var(--cc) 22%,transparent),transparent 65%),repeating-linear-gradient(0deg,rgba(255,255,255,.015) 0 2px,transparent 2px 4px),linear-gradient(180deg,#141a2e,#07090f)}
.tc2 .th{background:linear-gradient(180deg,#22283c,#0c0f19);border-bottom:2px solid #6b5a2c}
.tc2 .th h3{color:#ffd100;text-shadow:0 1px 0 #000,0 0 6px rgba(0,0,0,.8)}
.tc2 .th .pts{background:#000;border:1px solid #6b5a2c;border-radius:4px;padding:0 6px;color:#ffd100}
.tc2 .emb{border-radius:50%;border:2px solid #b8962e;box-shadow:inset 0 0 6px rgba(0,0,0,.7)}
.tc2 button.tl{border-radius:5px;background:#000;border:2px solid #555b6e;box-shadow:inset 0 0 0 1px #000,0 0 0 1px #000,0 2px 4px rgba(0,0,0,.7)}
.tc2 .tl .ic{inset:2px;border-radius:3px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18),inset 0 -6px 10px rgba(0,0,0,.55),inset 0 4px 6px rgba(255,255,255,.12)}
.tc2 .tl.lock .ic{filter:grayscale(1) brightness(.38)}
.tc2 button.tl.lock{border-color:#40444f}
.tc2 button.tl.av{border-color:#1eff00;box-shadow:inset 0 0 0 1px #000,0 0 7px rgba(30,255,0,.45)}
.tc2 button.tl.some{border-color:#1eff00;box-shadow:inset 0 0 0 1px #000,0 0 5px rgba(30,255,0,.3)}
.tc2 button.tl.full{border-color:#ffd100;box-shadow:inset 0 0 0 1px #000,0 0 9px rgba(255,209,0,.6)}
.tc2 .rk{right:-7px;bottom:-7px;background:#000;border:1px solid #555b6e;border-radius:4px;font:700 11px/1.2 Lato,sans-serif;padding:0 4px;color:#9d9d9d}
.tc2 .tl.av .rk,.tc2 .tl.some .rk{color:#1eff00;border-color:#1eff00}.tc2 .tl.full .rk{color:#ffd100;border-color:#ffd100}
.tc2 .ar{stroke:#3c4152;stroke-width:5}.tc2 .ah{fill:#3c4152}.tc2 .ar.on{stroke:#ffd100}.tc2 .ah.on{fill:#ffd100}
.tc2 .tip{background:rgba(4,6,20,.97);border:1px solid #9d9d9d;border-radius:5px;box-shadow:0 0 0 1px #000,0 8px 24px rgba(0,0,0,.7)}
.tc2 .tip b{color:#fff;font-family:Lato,sans-serif;font-size:15px}.tc2 .tip .nx{color:#ffd100}.tc2 .tip .rq{color:#ff2020}
@supports not (background:color-mix(in srgb,red 50%,blue)){.tc2 .tree{background:linear-gradient(180deg,#141a2e,#07090f)}}

/* v4: official icons */
.tc2 .tl .ic{overflow:hidden}.tc2 .tl .ic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}
.tc2 .tl .ic.hasimg{background:#000!important}.tc2 .tl .ic.hasimg em{display:none}.tc2 .tl .ic em{font-style:normal}
.tc2 .tl.lock .ic.hasimg{filter:grayscale(1) brightness(.5)}
.tc2 .tl .rk{z-index:2}.tc2 .tl .dot{z-index:3}
/* 4 Nov 2026: tap targets, restore note, saved builds, layout-shift reserve */
.tc2 .b2{min-height:44px;min-width:44px}
.tc2 .rst{margin:6px 0 0;font-size:13.5px;color:#d9dcea}
.tc2 .lnk{background:none;border:0;color:#ffd36b;text-decoration:underline;font:700 13.5px Lato,sans-serif;cursor:pointer;min-height:44px;min-width:44px;padding:0 6px}
.tc2 .lnk:focus-visible{outline:2px solid #f8b700;outline-offset:1px}
.tc2 .svb{margin-top:14px;background:#0b1430;border:1px solid #2a3766;border-radius:10px;padding:10px 14px}
.tc2 .svb h3{margin:0 0 4px;font:700 17px Cinzel,serif;color:#ffd36b}
.tc2 .svf{display:flex;gap:6px;flex-wrap:wrap}
.tc2 .svf input{flex:1 1 200px;min-width:0;min-height:44px;background:#060b1a;border:1px solid #2a3766;color:#d9dcea;border-radius:7px;padding:7px 9px;font:14px Lato,sans-serif}
.tc2 .svl{list-style:none;margin:10px 0 0;padding:0}
.tc2 .svl li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;padding:6px 0;border-top:1px solid #1c2850}
.tc2 .svl li:first-child{border-top:0}
.tc2 .svt{flex:1 1 180px;min-width:0;overflow-wrap:anywhere}
.tc2 .sva{display:flex;gap:6px}
/* Reserve the calculator's rendered height so the static text below it doesn't jump when the JS and talent data load */
.tl-wrap[data-class]{min-height:1180px}
@media (max-width:1000px){.tl-wrap[data-class]{min-height:2700px}}
.tc-next{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.tc-next a{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border:1px solid #a87a1c;border-radius:8px;background:#0b1430;color:#ffd36b;font-weight:700;text-decoration:none}
.tc-next a:hover,.tc-next a:focus-visible{background:#13204a;outline:2px solid #f8b700;outline-offset:1px}
.tc2 .pick button,.tc2 .rt{min-height:44px;min-width:44px}
