/* Visual polish layer: richer depth, Warcraft-inspired iconography, and denser talent presentation. */
:root{--shadow:0 18px 50px #0007;--soft-gold:#f0d49a}
body{background:
 radial-gradient(circle at 70% -10%,#243a2d 0,transparent 32%),
 radial-gradient(circle at 8% 15%,#1d2a23 0,transparent 28%),
 linear-gradient(180deg,#0d1513 0%,#0a1110 100%);background-attachment:fixed}
.sidebar{background:linear-gradient(180deg,#13211b 0%,#0e1814 100%);box-shadow:12px 0 40px #0003}.brandmark{background:radial-gradient(circle at 40% 30%,#253a2b,#0d1512 75%);box-shadow:inset 0 0 20px #d9b77718,0 8px 22px #0004}.brandmark,.brand small,.eyebrow{filter:drop-shadow(0 1px 8px #d9b77722)}
.topbar{background:#0e1715d9;backdrop-filter:blur(12px);position:sticky;top:0;z-index:8}.local-badge{background:#13231caa}
.page-heading h1{background:linear-gradient(180deg,#fff7e4,#d8c292);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:0 10px 35px #0006}.page-heading{position:relative}.page-heading:after{content:"";position:absolute;left:0;bottom:-13px;width:72px;height:1px;background:linear-gradient(90deg,var(--gold),transparent)}
.panel,.stats,.character,.empty{box-shadow:0 16px 40px #0002}.panel{background:linear-gradient(145deg,#17241f,#121d19);border-color:#31443a}.note{background:linear-gradient(90deg,#2d2b20,#20261f 60%,#19221d);box-shadow:inset 0 0 28px #d9b77708}

/* Character cards */
.character{overflow:hidden;isolation:isolate;background:linear-gradient(145deg,#1b2a22 0%,#142019 70%);min-height:330px}.character:before{content:"";position:absolute;inset:-20% -8% 38% 44%;background-image:var(--card-art);background-size:cover;background-position:center;filter:grayscale(.12) saturate(.85);opacity:.13;transform:rotate(-7deg);z-index:-2}.character:after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 0 45%,#ffffff05 55%,transparent 64%);transform:translateX(-100%);transition:transform .55s;z-index:-1}.character:hover:after{transform:translateX(110%)}.character:hover{box-shadow:0 20px 55px #0007,0 0 0 1px color-mix(in srgb,var(--class-color),transparent 35%)}
.card-head{justify-content:flex-start;gap:10px}.card-head .level-label{margin-left:auto}.sigil{width:52px;height:52px;padding:3px;overflow:hidden;border-radius:9px;background:#0b1210;border-color:#ffffff22;box-shadow:0 7px 18px #0006}.class-icon{width:100%;height:100%;object-fit:cover;border-radius:6px;display:block}.race-crest{width:40px;height:40px;display:block;filter:drop-shadow(0 5px 10px #0005)}.character h3{font-size:1.85rem;text-shadow:0 2px 18px #000}.character .class-line{letter-spacing:.25px;font-weight:700}.xp-track{height:7px;background:#0d1512;box-shadow:inset 0 1px 5px #0009}.xp-track span{box-shadow:0 0 12px var(--class-color)}

/* Character profile */
.profile-hero{position:relative;overflow:hidden;min-height:210px;display:flex;align-items:center;gap:26px;background:linear-gradient(110deg,#1b2b23 0%,#132019 60%,#101814 100%)}.profile-hero:before{content:"";position:absolute;right:-30px;top:-110px;width:360px;height:360px;background-image:var(--hero-art);background-position:center;background-size:cover;filter:blur(1px) saturate(.7);opacity:.09;transform:rotate(-10deg)}.profile-hero>*{position:relative;z-index:1}.profile-emblem{width:110px;height:110px;display:grid;place-items:center;border:1px solid var(--class-color);border-radius:18px;padding:7px;background:#0b1210;box-shadow:0 18px 40px #0008,0 0 30px color-mix(in srgb,var(--class-color),transparent 82%);flex:none}.profile-class-icon{width:100%;height:100%;object-fit:cover;border-radius:12px}.profile-race-crest{position:absolute;right:24px;bottom:22px;width:72px;height:72px;opacity:.88;filter:drop-shadow(0 9px 18px #0007)}

/* Character create identity preview */
.character-create-preview{display:grid;grid-template-columns:68px 68px 1fr;align-items:center;gap:12px;margin:0 0 22px;padding:14px 16px;border:1px solid #3b4e42;border-radius:7px;background:linear-gradient(120deg,#1c2d24,#121d19);box-shadow:inset 0 0 25px #0002}.create-race-crest,.create-class-icon{width:62px;height:62px;border-radius:10px;object-fit:cover}.create-class-icon{padding:3px;background:#0c1411;border:1px solid #ffffff18}.character-create-preview small{display:block;color:var(--gold);font-size:.67rem;letter-spacing:1.5px}.character-create-preview strong{display:block;font-family:Georgia,serif;font-size:1.2rem;margin:2px 0}.character-create-preview span{display:block;color:var(--muted);font-size:.8rem}

/* Talent calculator */
.talent-toolbar{display:grid;grid-template-columns:auto minmax(170px,.8fr) minmax(120px,.5fr) 1fr auto auto;align-items:end;gap:14px;position:sticky;top:88px;z-index:6;background:#14211ddd;backdrop-filter:blur(13px);box-shadow:0 16px 35px #0006}.talent-toolbar label{margin:0}.talent-toolbar strong{align-self:center;color:var(--soft-gold)}.talent-class-badge{width:58px;height:58px;border-radius:10px;padding:3px;background:#0b1210;border:1px solid #ffffff20;box-shadow:0 10px 24px #0006}.talent-trees{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}.talent-tree{position:relative;overflow:hidden;margin-bottom:0;min-width:0;background:linear-gradient(180deg,#182620 0%,#111b17 100%)}.talent-tree:before{content:"";position:absolute;right:-80px;top:-70px;width:260px;height:260px;background-image:var(--tree-art);background-size:cover;background-position:center;opacity:.07;filter:saturate(.7);transform:rotate(12deg)}.talent-tree>*{position:relative}.talent-tree h2{display:flex;align-items:center;gap:11px;padding-bottom:15px;margin-bottom:20px;border-bottom:1px solid var(--line)}.talent-tree h2 small{margin-left:auto;background:#0e1714;border:1px solid var(--line);border-radius:20px;padding:3px 9px;color:var(--gold)}.tree-icon{width:42px;height:42px;object-fit:cover;border-radius:8px;border:1px solid #ffffff22;box-shadow:0 8px 18px #0006}.talent-row{position:relative;margin-bottom:18px}.tier-label{display:block;margin-bottom:7px;opacity:.65;font-size:.66rem}.talent-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;align-items:start}.talent-node{position:relative;min-width:0;border:1px solid #36483e;border-radius:7px;padding:10px 8px;background:linear-gradient(145deg,#17241f,#101814);box-shadow:inset 0 0 0 1px #ffffff02,0 9px 18px #0002;transition:transform .12s,border-color .12s,box-shadow .12s}.talent-node:hover{transform:translateY(-2px);border-color:#6e806f;box-shadow:0 12px 24px #0005}.talent-node.invested{border-color:#a68955;box-shadow:0 0 0 1px #d9b77722,0 12px 30px #0005;background:linear-gradient(145deg,#2a2a1c,#17201a)}.talent-icon{width:42px;height:42px;display:block;object-fit:cover;border-radius:7px;border:1px solid #000;box-shadow:0 5px 14px #0007;margin:0 auto 8px}.talent-node>strong{display:block;font-family:Georgia,serif;font-size:.84rem;line-height:1.2;text-align:center;min-height:2.35em;color:#f3eee1}.rank-controls{display:flex;align-items:center;justify-content:center;gap:5px;margin-top:8px}.rank-controls button{padding:3px 7px;min-width:27px;font-size:.8rem}.rank-controls span{font-size:.72rem;color:var(--gold);min-width:30px;text-align:center}.talent-node details{margin-top:7px;font-size:.72rem}.talent-node summary{cursor:pointer;color:#a9baad;text-align:center}.talent-node details p{font-size:.74rem;margin:7px 0}.talent-node details small{font-size:.68rem}.talent-tree .talent-row:last-child{margin-bottom:0}

@media(max-width:1250px){.talent-trees{grid-template-columns:1fr}.talent-toolbar{grid-template-columns:auto repeat(2,minmax(140px,1fr));}.talent-toolbar strong{grid-column:2/-1}.talent-toolbar button{align-self:stretch}}
@media(max-width:760px){.profile-hero{align-items:flex-start;gap:17px}.profile-emblem{width:82px;height:82px}.profile-race-crest{width:54px;height:54px;right:15px;bottom:15px}.character-create-preview{grid-template-columns:54px 54px 1fr}.create-race-crest,.create-class-icon{width:50px;height:50px}.talent-toolbar{position:static;grid-template-columns:52px 1fr}.talent-class-badge{width:52px;height:52px}.talent-toolbar strong,.talent-toolbar button{grid-column:1/-1}.talent-trees{grid-template-columns:1fr}.talent-grid{gap:6px}.talent-node{padding:8px 5px}.talent-icon{width:36px;height:36px}.talent-node>strong{font-size:.75rem}}

/* Calculator: readable talent cards and one-click point assignment. */
.talent-trees{grid-template-columns:1fr;max-width:1020px;margin-inline:auto}.talent-tree{padding:24px}.talent-row{margin-bottom:22px}.talent-grid{gap:12px}.talent-node{min-height:154px;padding:13px;cursor:pointer}.talent-node>strong{font-size:1rem;min-height:2.5em}.talent-icon{width:52px;height:52px}.rank-controls span{font-size:.9rem}.rank-controls button{min-width:36px;min-height:36px;font-size:1rem}.talent-node.locked:not(.invested){opacity:.62}.talent-node:focus-within{outline:2px solid var(--gold);outline-offset:2px}.tier-label{font-size:.8rem;opacity:.9}.talent-node details,.talent-node details p{font-size:.86rem}.talent-point-track{height:7px;min-width:100px;border-radius:10px;background:#0a120f;overflow:hidden;align-self:center}.talent-point-track span{display:block;height:100%;background:var(--gold)}.talent-toolbar{grid-template-columns:auto minmax(150px,1fr) minmax(120px,.5fr) auto minmax(100px,.5fr) auto auto}
@media(max-width:760px){.talent-tree{padding:14px}.talent-grid{gap:7px}.talent-node{min-height:136px;padding:7px 4px}.talent-node>strong{font-size:.8rem;overflow-wrap:anywhere}.talent-icon{width:38px;height:38px}.rank-controls{gap:2px}.rank-controls button{min-width:29px;min-height:32px;padding:2px}.rank-controls span{font-size:.72rem;min-width:25px}.talent-toolbar{grid-template-columns:52px 1fr}.talent-point-track{grid-column:1/-1;width:100%}}

/* WoW licenses and Battle.net Legacy progress */
.account-switcher{margin:18px 0 24px}.account-switcher p{margin:5px 0 16px}.account-tabs{display:flex;flex-wrap:wrap;gap:8px}.account-tabs button{border:1px solid #506652;border-radius:6px;background:#15231c;color:#d9e2d8;padding:9px 14px}.account-tabs button.selected{border-color:var(--gold);background:#3a3322;color:#fff0c7}.account-switcher #edit-game-account{margin-top:14px}.legacy-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}.legacy-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.legacy-summary>div{display:flex;flex-direction:column;gap:3px}.legacy-summary strong{font-size:2rem;color:var(--gold)}.legacy-summary p{grid-column:1/-1;margin:0}.legacy-group{border-top:1px solid var(--line);padding:12px 0}.legacy-group summary{display:flex;justify-content:space-between;cursor:pointer;font-weight:700;color:#e6ddc8}.legacy-group summary span{color:var(--gold)}.legacy-checks{display:grid;gap:2px;margin:14px 0}.legacy-checks label{display:flex;align-items:flex-start;gap:9px;margin:0;padding:7px;border-radius:4px}.legacy-checks label:hover{background:#ffffff08}.legacy-checks input{width:19px;height:19px;flex:none;margin-top:3px;accent-color:#d9b777}.legacy-checks input:disabled{opacity:.9}.legacy-perk-tree{margin:18px 0}.legacy-perk-tree h3{margin-bottom:10px;border-bottom:1px solid var(--line);padding-bottom:8px;color:var(--gold)}.legacy-perk{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #ffffff10}.legacy-perk strong,.legacy-perk small{display:block}.legacy-perk small{font-size:.82rem;color:var(--muted);margin-top:3px}.legacy-rank{display:flex;align-items:center;gap:7px;flex:none}.legacy-rank button{min-width:32px;min-height:32px;padding:3px 8px}.legacy-rank span{min-width:20px;text-align:center;color:var(--gold)}.legacy-remaining{display:flex;align-items:baseline;gap:12px;border:1px solid #6f6546;border-radius:6px;padding:12px;margin:14px 0}.legacy-remaining strong{color:var(--gold);font-size:1.25rem}@media(max-width:1000px){.legacy-layout{grid-template-columns:1fr}}@media(max-width:550px){.legacy-summary{grid-template-columns:1fr}.legacy-summary p{grid-column:auto}.legacy-perk{align-items:flex-start}.legacy-rank{margin-top:3px}}

.legacy-rewards{margin-top:20px}.reward-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.reward-list span{padding:12px;border:1px solid var(--line);border-radius:5px;background:#101b17}@media(max-width:550px){.reward-list{grid-template-columns:1fr}}

/* Classic racial heraldry. Skyborne shows its selected faction crest. */
.race-banner{display:block;flex:none;background:#080a09 url('./assets/race-banners.svg') no-repeat;background-size:400% 300%;clip-path:polygon(0 0,100% 0,100% 84%,50% 100%,0 84%);filter:drop-shadow(0 5px 10px #0006)}
.race-crest{width:48px;height:48px}.profile-race-crest{width:92px;height:92px;right:20px;bottom:18px;opacity:1}.create-race-crest{width:62px;height:62px;border-radius:0;object-fit:initial}.create-race-crest[hidden],.create-class-icon[hidden]{display:none}
@media(max-width:760px){.profile-race-crest{width:62px;height:62px;right:12px;bottom:12px}.create-race-crest{width:50px;height:50px}}
