:root{
  --bg:#0b1220;
  --panel:#0f1a2e;
  --panel2:#0c1628;
  --text:#e8eefc;
  --muted:#a9b7d6;
  --line: rgba(255,255,255,.10);
  --gold:#d7b15c;
  --accent:#5cc8ff;
  --bad:#ff6b6b;
  --ok:#63ff9d;
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --radius: 16px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial, sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:
    radial-gradient(1200px 500px at 25% -20%, rgba(92,200,255,.20), transparent 60%),
    radial-gradient(900px 500px at 85% 0%, rgba(215,177,92,.18), transparent 55%),
    linear-gradient(180deg, #060a12, var(--bg));
  color:var(--text);
  font-family:var(--sans);
}

.wrap{max-width:1400px;margin:0 auto;padding:18px}
.topbar{
  position:sticky; top:0; z-index:10;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.72);
  border-bottom:1px solid var(--line);
}
.brand__title{font-weight:900;letter-spacing:.6px;font-size:18px}
.brand__subtitle{color:var(--muted);font-size:12px;margin-top:2px}

.controls{
  display:flex; gap:12px; align-items:end; flex-wrap:wrap;
  margin-top:12px;
}
.control{display:flex;flex-direction:column;gap:6px}
.control span{font-size:12px;color:var(--muted)}
select,input{
  height:38px; min-width:220px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
  color:var(--text);
  border-radius:12px;
  padding:0 12px;
  outline:none;
}
input{font-family:var(--mono);min-width:420px}

.btn{
  height:38px;
  border-radius:12px;
  padding:0 14px;
  color:var(--text);
  background: linear-gradient(180deg, rgba(92,200,255,.20), rgba(92,200,255,.08));
  border:1px solid rgba(92,200,255,.35);
  cursor:pointer;
}
.btn:hover{filter:brightness(1.05)}

.summary{
  display:grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap:12px;
  margin-top:18px;
}
.summary__box{
  background: rgba(255,255,255,.05);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:14px 16px;
  box-shadow: var(--shadow);
}
.summary__label{color:var(--muted);font-size:12px}
.summary__value{font-size:18px;font-weight:800;margin-top:6px}

.grid{
  margin-top:16px;
  display:grid;
  grid-template-columns: repeat(3, minmax(320px, 1fr));
  gap:14px;
}

.tree{
  background: rgba(255,255,255,.04);
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.tree__head{
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 14px;
  background: linear-gradient(180deg, rgba(215,177,92,.18), rgba(255,255,255,.02));
  border-bottom:1px solid var(--line);
}
.tree__name{font-weight:900}
.tree__spent{color:var(--gold);font-weight:900}

.tree__body{padding:14px}

.talents{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:10px;
}

.talent{
  position:relative;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  padding:10px;
  min-height:78px;
}
.talent--locked{
  opacity:.45;
  filter: grayscale(1);
}
.talent__name{font-size:12px;font-weight:800;line-height:1.15}
.talent__meta{
  margin-top:6px;
  display:flex; justify-content:space-between; align-items:center;
  color:var(--muted);
  font-size:12px;
  font-family:var(--mono);
}
.talent__points{
  color:var(--gold);
  font-weight:900;
}
.talent__btns{
  margin-top:10px;
  display:flex; gap:8px;
}
.talent__btn{
  flex:1;
  height:28px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
}
.talent__btn:hover{filter:brightness(1.08)}
.talent__btn:disabled{opacity:.35;cursor:not-allowed}

.badge{
  position:absolute; top:10px; right:10px;
  font-family:var(--mono);
  font-size:11px;
  padding:3px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.20);
}
.badge--req{border-color: rgba(255,107,107,.4); color: var(--bad)}
.badge--ok{border-color: rgba(99,255,157,.4); color: var(--ok)}

.footer{
  margin-top:22px;
  padding:18px 0;
  color:var(--muted);
  border-top:1px solid var(--line);
}
