:root {
  --bg: #0d0c0b;
  --panel: rgba(24, 22, 17, 0.84);
  --text: #ece3d0;
  --dim: #9a927c;
  --line: #38332a;
  --gold: #e9a64a;
  --node: #221f19;
  --rad: 12px;
  --ui: "Inter", system-ui, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  font-size: 14px;
  overflow: hidden;
}
#app {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
#svg {
  width: 100%;
  height: 100%;
  display: block;
  cursor: var(--cp);
  touch-action: none;
  background: radial-gradient(ellipse at center, #1d1a15 0, var(--bg) 72%);
}
#svg.drag {
  cursor: var(--cd);
}
.edge {
  stroke: #2e2a23;
  stroke-width: 2;
  transition:
    stroke 0.15s,
    opacity 0.15s;
}
.edge.on {
  stroke: var(--c);
  stroke-width: 3;
}
.n {
  --c: #7d7664;
  fill: color-mix(in srgb, var(--c) 14%, var(--node));
  stroke: color-mix(in srgb, var(--c) 55%, #000);
  stroke-width: 2;
  cursor: var(--cp);
  transition:
    fill 0.15s,
    stroke 0.15s,
    opacity 0.15s;
}
.n:hover {
  stroke: var(--c);
}
.n.can {
  fill: color-mix(in srgb, var(--c) 30%, var(--node));
  stroke: var(--c);
  stroke-dasharray: 3 3;
}
.n.on {
  fill: var(--c);
  stroke: color-mix(in srgb, var(--c) 40%, #fff);
  stroke-dasharray: none;
  filter: drop-shadow(0 0 7px var(--c));
}
.n.m {
  stroke: #fff;
  stroke-width: 4;
  stroke-dasharray: none;
  filter: drop-shadow(0 0 8px #fff);
}
.n.dim,
.edge.dim {
  opacity: 0.15;
}
.panel {
  position: absolute;
  background: var(--panel);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  box-shadow: 0 10px 30px #0009;
}
/* legend */
#legend {
  left: 10px;
  top: 10px;
  padding: 14px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand {
  padding: 0 8px 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.brand h1 {
  margin: 0;
  font: 700 26px/1 var(--serif);
  color: var(--gold);
  letter-spacing: 0.02em;
}
.brand span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 8px;
  border-radius: 7px;
  background: none;
  border: 1px solid transparent;
  font-size: 13px;
  color: var(--text);
  text-align: left;
  cursor: var(--cp);
}
.chip i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 7px var(--c);
  flex: none;
}
.chip:hover {
  background: #ffffff0a;
}
.chip.act {
  background: #ffffff12;
  border-color: var(--c);
}
/* info */
#info {
  top: 10px;
  right: 10px;
  width: 280px;
  max-height: calc(100% - 90px);
  display: flex;
  flex-direction: column;
  padding: 14px;
}
.ph {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pts {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
#ptsN {
  font: 700 40px/1 var(--serif);
  color: var(--gold);
}
.lbl {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.meter {
  height: 5px;
  background: #ffffff12;
  border-radius: 9px;
  margin: 10px 0 6px;
  overflow: hidden;
}
.meter b {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #b9742a, var(--gold));
  border-radius: 9px;
  transition: width 0.2s;
}
.sub {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--dim);
}
#infoBody {
  overflow: auto;
  margin-top: 12px;
  min-height: 0;
}
#fill {
  font-size: 11px;
  color: var(--dim);
  margin-top: 2px;
}
.sec {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 14px 0 6px;
}
.statlist .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid #ffffff0a;
  color: var(--dim);
}
.statlist .row span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.statlist .row i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c, #555);
}
.statlist .row b {
  color: var(--text);
  font-weight: 600;
}
.statlist .fx {
  margin-top: 8px;
  padding: 7px 9px;
  border-left: 3px solid var(--c);
  background: #ffffff08;
  border-radius: 0 7px 7px 0;
  font-size: 13px;
  color: var(--dim);
  line-height: 1.35;
}
.statlist .fx b {
  color: var(--c);
  display: block;
  font-weight: 600;
}
.statlist .empty {
  color: var(--dim);
  font-style: italic;
  padding: 6px 0;
}
#fold {
  display: none;
  padding: 4px 9px;
  font-size: 12px;
}
/* controls */
button,
input {
  font: inherit;
  font-size: 13px;
  font-family: var(--ui);
  background: #27231b;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 8px 13px;
  border-radius: 8px;
}
button {
  cursor: var(--cp);
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:hover {
  border-color: var(--gold);
  background: #322d22;
}
button.pri {
  background: var(--gold);
  color: #1a1409;
  border-color: var(--gold);
  font-weight: 600;
}
button.pri:hover {
  background: #f2b765;
}
button.danger:hover {
  border-color: #e0654f;
  color: #f19a8b;
}
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
#q {
  width: 100%;
  margin-top: 12px;
}
#bar {
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px;
  max-width: calc(100% - 20px);
}
#bar .sep {
  width: 1px;
  height: 22px;
  background: var(--line);
  margin: 0 2px;
}
#code {
  width: 150px;
}
/* tooltip */
#tip {
  position: fixed;
  pointer-events: none;
  background: #0d0c0bf2;
  border: 1px solid var(--line);
  border-left: 3px solid var(--c, var(--gold));
  border-radius: 8px;
  padding: 10px 12px;
  display: none;
  max-width: 300px;
  z-index: 5;
  box-shadow: 0 10px 30px #000a;
  line-height: 1.4;
}
#tip .th {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
#tip .th b {
  font: 700 20px/1.1 var(--serif);
  color: var(--c, var(--gold));
}
#tip small {
  color: var(--dim);
  font-size: 11px;
}
#tip .tk {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 2px 0 7px;
}
#tip .td {
  font-size: 13px;
}
#tip .ts {
  font-size: 12px;
  color: var(--dim);
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
@media (max-width: 600px) {
  #legend {
    left: 10px;
    right: 10px;
    flex-direction: row;
    overflow-x: auto;
    padding: 6px;
  }
  .brand {
    display: none;
  }
  .chip {
    white-space: nowrap;
    flex: none;
  }
  #info {
    top: 62px;
    width: 230px;
    max-height: 55%;
  }
  #fold {
    display: block;
  }
  #info.fold #infoBody {
    display: none;
  }
  #bar {
    flex-wrap: wrap;
    justify-content: center;
  }
  #code {
    width: 110px;
  }
}

/* layout */
#nav {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 8px;
  background: #12100c;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
#app.home #nav {
  display: none;
}
.brandbtn {
  font: 700 24px/1 var(--serif);
  color: var(--gold);
  background: none;
  border: 0;
  padding: 4px 12px 4px 4px;
  margin-right: 6px;
  letter-spacing: 0.03em;
}
.brandbtn:hover {
  background: none;
  border: 0;
  color: #f2b765;
}
.tab {
  background: none;
  border: 1px solid transparent;
  color: var(--dim);
  padding: 7px 13px;
  border-radius: 8px;
  white-space: nowrap;
}
.tab:hover {
  color: var(--text);
  background: #ffffff0a;
  border-color: transparent;
}
.tab.on {
  color: var(--gold);
  background: #ffffff10;
  border-color: var(--line);
}
.tab[disabled] {
  opacity: 0.4;
  cursor: var(--ca);
}
.tab small {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 4px;
  color: var(--dim);
}
.view {
  display: none;
  flex: 1;
  min-height: 0;
  position: relative;
}
.view.on {
  display: block;
}
#v-home,
#v-race,
#v-sum,
#v-gear,
#v-weap,
#v-skill {
  overflow: auto;
}
#v-tree {
  overflow: hidden;
}
#v-tree svg {
  position: absolute;
  inset: 0;
}
.muted {
  color: var(--dim);
}
/* home */
.hero {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 18px;
  background: radial-gradient(ellipse at 50% 0, #2b2113 0, transparent 55%),
    radial-gradient(ellipse at center, #1b1814, var(--bg) 78%);
}
.hero h1 {
  margin: 0;
  font: 700 clamp(54px, 10vw, 104px) / 1 var(--serif);
  color: var(--gold);
  letter-spacing: 0.04em;
  text-shadow: 0 0 50px #e9a64a44;
}
.hero .tag {
  margin: 12px 0 40px;
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--dim);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(920px, 100%);
}
.hcard {
  --c: #e9a64a;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  min-height: 190px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 7%, var(--panel)), var(--panel));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 14px;
  cursor: var(--cp);
  overflow: hidden;
  transition:
    transform 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
.hcard::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c), transparent);
  opacity: 0.55;
  transition: opacity 0.18s;
}
.hcard:hover,
.hcard:focus-visible {
  transform: translateY(-4px);
  border-color: var(--c);
  box-shadow:
    0 14px 34px #000a,
    0 0 30px color-mix(in srgb, var(--c) 28%, transparent);
  outline: none;
}
.hcard:hover::before {
  opacity: 1;
}
.hcard .ico {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: var(--c);
  background: radial-gradient(
    circle at 30% 25%,
    color-mix(in srgb, var(--c) 34%, transparent),
    color-mix(in srgb, var(--c) 8%, transparent) 70%
  );
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  box-shadow:
    inset 0 0 18px color-mix(in srgb, var(--c) 18%, transparent),
    0 0 22px color-mix(in srgb, var(--c) 14%, transparent);
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.hcard:hover .ico {
  transform: scale(1.07);
  box-shadow:
    inset 0 0 18px color-mix(in srgb, var(--c) 25%, transparent),
    0 0 30px color-mix(in srgb, var(--c) 40%, transparent);
}
.hcard .ico svg {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--c) 55%, transparent));
}
.hcard h3 {
  margin: 0;
  font: 700 26px/1.1 var(--serif);
  letter-spacing: 0.01em;
}
.hcard .soon {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 3px 9px;
}
.hcard.locked {
  opacity: 0.7;
  cursor: var(--ca);
}
.hcard.locked:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}
.hcard.locked:hover .ico {
  transform: none;
}
.loadrow {
  display: flex;
  gap: 8px;
  margin-top: 26px;
  width: min(520px, 100%);
}
.loadrow input {
  flex: 1;
  min-width: 0;
}
@media (max-width: 760px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 440px) {
  .cards {
    grid-template-columns: 1fr;
  }
}
/* pages */
.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 18px 70px;
}
.phead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
.phead h2 {
  margin: 0;
  font: 700 36px/1.05 var(--serif);
}
.phead p {
  margin: 6px 0 0;
  color: var(--dim);
  font-size: 13px;
}
.rgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.rcard {
  --c: #e9a64a;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--c);
  border-radius: 12px;
  padding: 16px;
  cursor: var(--cp);
  transition:
    transform 0.15s,
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
.rcard:hover,
.rcard:focus-visible {
  border-color: var(--c);
  transform: translateY(-2px);
  outline: none;
}
.rcard.sel {
  background: color-mix(in srgb, var(--c) 9%, var(--panel));
  border-color: var(--c);
  box-shadow:
    0 0 0 1px var(--c),
    0 0 28px color-mix(in srgb, var(--c) 30%, transparent);
}
.rtop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.rtop h3 {
  margin: 0;
  font: 700 27px/1 var(--serif);
  color: var(--c);
}
.badge {
  display: none;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--c);
  color: #14110b;
  padding: 3px 9px;
  border-radius: 99px;
}
.rcard.sel .badge {
  display: inline-block;
}
.tl {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.tl li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.4;
}
.tl li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c, var(--gold));
}
.tl li.bad::before {
  background: #e0654f;
}
/* summary */
.sgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.scol {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.scard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.scard h3 {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
}
.scard .big {
  font: 700 28px/1 var(--serif);
  margin-bottom: 10px;
}
.slot {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #ffffff0a;
  color: var(--dim);
  font-size: 13px;
}
.slot b {
  font-weight: 400;
  opacity: 0.6;
}
.crow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.crow input {
  flex: 1;
  min-width: 140px;
}
@media (max-width: 800px) {
  .sgrid {
    grid-template-columns: 1fr;
  }
  .phead h2 {
    font-size: 30px;
  }
}
/* shared bits */
.view.scroll {
  overflow: auto;
}
.phead.sub2 {
  margin-top: 38px;
}
.rcard .ranks {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.seg {
  --c: var(--gold);
  background: #ffffff08;
  border: 1px solid var(--line);
  color: var(--dim);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12px;
  white-space: nowrap;
}
.seg:hover {
  color: var(--text);
  border-color: var(--c);
  background: #ffffff0d;
}
.seg.on {
  background: color-mix(in srgb, var(--c) 22%, transparent);
  border-color: var(--c);
  color: var(--text);
}
.seg small {
  margin-left: 6px;
  opacity: 0.7;
  font-size: 11px;
}
.segs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tl li.off {
  opacity: 0.38;
}
.tl li em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--c, var(--gold));
  border: 1px solid color-mix(in srgb, var(--c, var(--gold)) 50%, transparent);
  border-radius: 4px;
  padding: 0 4px;
  margin-right: 4px;
}
.lbl {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.fbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 16px 0;
}
.fbar input {
  flex: 1;
  min-width: 200px;
  margin: 0;
}
/* gear */
.gwrap {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.grail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 0;
}
.rail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.rail span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.rail b {
  font-weight: 500;
  font-size: 13px;
  color: var(--text);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rail.on {
  border-color: var(--gold);
  background: #ffffff0d;
}
.gsel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--c, var(--gold));
  border-radius: 12px;
  padding: 16px;
}
.gsel h3 {
  margin: 2px 0 0;
  font: 700 28px/1.1 var(--serif);
}
.gselhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip2 {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 99px;
  background: #ffffff0c;
  border: 1px solid #ffffff12;
  color: var(--text);
}
.chip2.neg {
  color: #f19a8b;
  border-color: #e0654f55;
}
.chip2.bu {
  color: #d9b36a;
  border-color: #d9b36a55;
}
.pass {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--dim);
  line-height: 1.45;
}
.reqn {
  margin: 8px 0 0;
  font-size: 12px;
  color: #d9b36a;
}
.pipsrow {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
}
.pipsrow small {
  color: var(--dim);
  font-size: 11px;
  margin-left: 4px;
}
.pipdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c, #888);
  box-shadow: 0 0 6px var(--c, #888);
  display: inline-block;
  flex: none;
}
.pipsed {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.pipsed h4 {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
}
.pipsel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}
.pipsel span {
  width: 78px;
  color: var(--c);
}
.pipsel select {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 13px;
  background: #27231b;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
}
.igrid,
.wgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 12px;
}
.icard,
.wcard {
  --c: #6b6554;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--c);
  border-radius: 12px;
  padding: 14px;
  cursor: var(--cp);
  transition:
    transform 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
.icard:hover,
.wcard:hover,
.icard:focus-visible,
.wcard:focus-visible {
  transform: translateY(-2px);
  border-color: var(--c);
  outline: none;
}
.icard.sel,
.wcard.sel {
  background: color-mix(in srgb, var(--c) 9%, var(--panel));
  border-color: var(--c);
  box-shadow:
    0 0 0 1px var(--c),
    0 0 24px color-mix(in srgb, var(--c) 28%, transparent);
}
.itop {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.itop b {
  font: 700 19px/1.15 var(--serif);
}
.rar {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c);
  white-space: nowrap;
}
/* weapons */
.wmeta {
  font-size: 12px;
  color: var(--dim);
  margin: -2px 0 10px;
}
.wstats {
  display: flex;
  gap: 18px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.wstats small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.wstats b {
  font: 700 24px/1.1 var(--serif);
  color: var(--text);
}
.wstats.big {
  gap: 26px;
  margin: 12px 0;
}
.wstats.big b {
  font-size: 30px;
}
.wline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 13px;
}
/* skill trees */
.sbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.spts {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dim);
  font-size: 13px;
}
.spts b {
  font: 700 26px/1 var(--serif);
  color: var(--gold);
}
.tgrid {
  display: grid;
  grid-template-columns: 110px repeat(var(--n), minmax(210px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.thead {
  font: 700 20px/1 var(--serif);
  color: var(--gold);
  padding: 4px 2px;
  border-bottom: 1px solid var(--line);
}
.trow {
  font: 700 17px/1.2 var(--serif);
  color: var(--text);
  padding-top: 10px;
}
.trow small {
  display: block;
  font: 400 11px/1.3 var(--ui);
  color: var(--dim);
  margin-top: 3px;
}
.tcell,
.ecell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 20px;
}
.egrid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.erow {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
}
.ecell {
  flex-direction: row;
  flex-wrap: wrap;
}
.ecell .tnode {
  flex: 1 1 230px;
  max-width: 340px;
}
.tnode {
  --c: #6b6554;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--c);
  color: var(--text);
}
.tnode b {
  font: 700 17px/1.15 var(--serif);
}
.tnode p {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--dim);
}
.tnode .nk {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.tnode.k-Technique {
  --c: #e0654f;
}
.tnode.k-Passive {
  --c: #6ea8e0;
}
.tnode.k-Upgrade {
  --c: #6fcf8a;
}
.tnode.k-Keystone {
  --c: #e9a64a;
}
.tnode.k-Entry {
  --c: #a77be8;
}
.tnode.lock {
  opacity: 0.45;
}
.tnode.lock:hover {
  border-color: var(--line);
  background: var(--panel);
}
.tnode.can {
  border-style: dashed;
  border-color: var(--c);
}
.tnode.on {
  background: color-mix(in srgb, var(--c) 16%, var(--panel));
  border-color: var(--c);
  box-shadow: 0 0 18px color-mix(in srgb, var(--c) 22%, transparent);
}
.tnode.on .nk {
  color: var(--c);
}
.elchips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip3 {
  --c: #888;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 99px;
  background: #ffffff08;
  border: 1px solid var(--line);
  color: var(--text);
}
.chip3 i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 7px var(--c);
}
.chip3.on {
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 20%, transparent);
}
.note {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #e9a64a14;
  border: 1px solid #e9a64a44;
  color: #e8cf9a;
  font-size: 13px;
}
.statlist .row b.neg {
  color: #f19a8b;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translate(-50%, 10px);
  background: #0d0c0bf2;
  border: 1px solid var(--gold);
  padding: 9px 16px;
  border-radius: 99px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 9;
  max-width: 90vw;
  text-align: center;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 800px) {
  .gwrap {
    grid-template-columns: 1fr;
  }
  .grail {
    position: static;
    flex-direction: row;
    overflow-x: auto;
  }
  .rail {
    flex: none;
    min-width: 120px;
  }
  .erow {
    grid-template-columns: 1fr;
  }
  .tgrid {
    grid-template-columns: repeat(var(--n), minmax(220px, 1fr));
  }
  .tgrid > div:first-child,
  .tgrid .trow {
    display: none;
  }
}

.tnode .lvl {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--gold, #e9a84c);
  opacity: 0.9;
}

#epanel {
  display: none;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  width: min(960px, calc(100% - 24px));
  max-height: calc(100% - 84px);
  overflow: auto;
  padding: 16px;
  z-index: 30;
  flex-direction: column;
  gap: 14px;
}
#epanel.on {
  display: flex;
}
#epanel .ph {
  position: sticky;
  top: -16px;
  z-index: 2;
  background: #181611;
  padding: 12px 0 10px;
  margin: -12px 0 0;
  border-bottom: 1px solid var(--line);
}
#epanel .eh {
  font: 700 22px/1 var(--serif);
  color: var(--gold);
}
#elbtn.act {
  border-color: var(--gold);
  color: var(--gold);
}
@media (max-width: 700px) {
  #epanel {
    top: 8px;
    width: calc(100% - 16px);
    max-height: calc(100% - 80px);
  }
}
.tnode.free {
  background: color-mix(in srgb, var(--c) 9%, var(--panel));
  border-color: color-mix(in srgb, var(--c) 55%, var(--line));
  cursor: var(--ca);
}
.tnode.free .nk {
  color: var(--c);
}

/* sources */
.srcs {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.srcs h4,
.pipsed h4 {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
}
.src {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid #ffffff08;
  font-size: 13px;
}
.src .sk {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c);
}
.src .sw small {
  display: block;
  color: var(--dim);
  font-size: 11px;
}
.src b {
  font-variant-numeric: tabular-nums;
  color: var(--text);
  font-weight: 600;
}
.stars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}
.stars small {
  font-size: 12px;
}
.abl {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #ffffff10;
  font-size: 12.5px;
  color: var(--dim);
}
.abl b {
  color: var(--text);
  font-weight: 600;
}
/* abilities */
.aslots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 18px;
}
.aslot {
  position: relative;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  min-height: 74px;
}
.aslot b {
  font: 700 16px/1.15 var(--serif);
}
.aslot small {
  font-size: 11px;
  color: var(--dim);
}
.aslot.on {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold) inset;
}
.aslot.warn {
  border-color: #e0654f;
}
.ax {
  position: absolute;
  top: 6px;
  right: 9px;
  font-style: normal;
  color: var(--dim);
  font-size: 16px;
  line-height: 1;
  padding: 2px 4px;
}
.ax:hover {
  color: #e0654f;
}
.apick {
  font: 700 20px/1.2 var(--serif);
  margin: 6px 0 4px;
  color: var(--gold);
}
.agh {
  margin: 14px 0 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c, var(--dim));
}
.agrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 8px;
}
.arow {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
}
.arow:hover {
  border-color: #ffffff30;
}
.arow.on {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 12%, var(--panel));
}
.arow.lock {
  opacity: 0.5;
}
.arow .at {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}
.arow .at b {
  font: 700 16px/1.15 var(--serif);
}
.arow .at span {
  font-size: 11px;
  color: var(--dim);
  text-align: right;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.arow .as {
  font-size: 12px;
  color: var(--dim);
}
.arow em {
  font-style: normal;
  color: var(--text);
}
.arow .aw {
  font-size: 11px;
  color: #e08a6f;
}
.arow .asrc {
  font-size: 11px;
  color: #9fb88a;
}
.adot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  display: inline-block;
}
@media (max-width: 700px) {
  .aslots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .src {
    grid-template-columns: 60px 1fr auto;
  }
}
.aslot .lbl {
  padding-right: 16px;
}

.combat h4 {
  margin: 14px 0 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
}
.combat h4:first-child {
  margin-top: 0;
}
.crow2 {
  display: grid;
  grid-template-columns: 110px 1fr auto 64px;
  gap: 10px;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid #ffffff08;
  font-size: 13px;
}
.crow2 i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  margin-right: 8px;
}
.crow2 .cs {
  font-size: 11.5px;
  color: var(--dim);
}
.crow2 b {
  font-variant-numeric: tabular-nums;
}
.crow2 b small {
  font-size: 10px;
  color: var(--dim);
  font-weight: 400;
  margin-left: 2px;
}
.crow2 em {
  font-style: normal;
  font-size: 12px;
  color: var(--gold);
  text-align: right;
}
.crow2 b.neg {
  color: #e0654f;
}
.cn {
  font-size: 11px;
  margin: 6px 0 0;
}
@media (max-width: 700px) {
  .crow2 {
    grid-template-columns: 90px 1fr auto;
  }
  .crow2 em {
    grid-column: 3;
  }
  .crow2 .cs {
    grid-column: 1/-1;
    order: 5;
  }
}

.setbox {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px dashed color-mix(in srgb, var(--gold, #e9a64a) 40%, transparent);
  border-radius: 8px;
  background: #e9a64a0a;
}
.setbox.full {
  border-style: solid;
  background: #e9a64a17;
  box-shadow: inset 0 0 0 1px #e9a64a22;
}
.sethead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.sethead b {
  color: var(--gold, #e9a64a);
}
.setpcs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.setpc {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #ffffff08;
  color: var(--dim, #9a927c);
}
.setpc.on {
  color: #e9a64a;
  background: #e9a64a1c;
}
.setfx {
  margin: 4px 0 0;
  font-size: 13px;
}
.settag {
  display: inline-block;
  margin: 2px 0 6px;
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: 4px;
  border: 1px solid #e9a64a55;
  color: #e9c08a;
  background: #e9a64a12;
}
:root {
  --ca: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2728%27%20height%3D%2728%27%20viewBox%3D%270%200%2028%2028%27%3E%3Cpath%20d%3D%27M4%202.5%20L4%2022%20L9.3%2017.2%20L12.8%2025%20L16.2%2023.5%20L12.8%2015.8%20L20%2015.8%20Z%27%20fill%3D%27%230d0c0b%27%20stroke%3D%27%23e9a64a%27%20stroke-width%3D%271.6%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E")
      4 3,
    default;
  --cp: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2728%27%20height%3D%2728%27%20viewBox%3D%270%200%2028%2028%27%3E%3Cpath%20d%3D%27M4%202.5%20L4%2022%20L9.3%2017.2%20L12.8%2025%20L16.2%2023.5%20L12.8%2015.8%20L20%2015.8%20Z%27%20fill%3D%27%23e9a64a%27%20stroke%3D%27%230d0c0b%27%20stroke-width%3D%271.6%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E")
      4 3,
    pointer;
  --cd: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2728%27%20height%3D%2728%27%20viewBox%3D%270%200%2028%2028%27%3E%3Cpath%20d%3D%27M4%202.5%20L4%2022%20L9.3%2017.2%20L12.8%2025%20L16.2%2023.5%20L12.8%2015.8%20L20%2015.8%20Z%27%20fill%3D%27%23ece3d0%27%20stroke%3D%27%230d0c0b%27%20stroke-width%3D%271.6%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E")
      4 3,
    pointer;
  --ct: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2728%27%20height%3D%2728%27%20viewBox%3D%270%200%2028%2028%27%3E%3Cpath%20d%3D%27M10%205h8M10%2023h8M14%205v18%27%20stroke%3D%27%230d0c0b%27%20stroke-width%3D%274.2%27%20stroke-linecap%3D%27round%27/%3E%3Cpath%20d%3D%27M10%205h8M10%2023h8M14%205v18%27%20stroke%3D%27%23e9a64a%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27/%3E%3C/svg%3E")
      14 14,
    text;
}
html,
body {
  cursor: var(--ca);
}
#svg {
  cursor: var(--ca);
}
input,
textarea {
  cursor: var(--ct) !important;
}
button:active,
[role="button"]:active,
.tnode:active,
.tab:active,
select:active {
  cursor: var(--cd) !important;
}
/* animations + extra polish */
:root {
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --glow: #e9a64a;
}
html {
  scroll-behavior: smooth;
}
body {
  background: radial-gradient(1200px 600px at 50% -10%, #2a1d0f55, transparent 70%), var(--bg);
}
/* page fade */
.view.on {
  animation: viewIn 0.38s var(--ease);
}
@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
#v-tree.on {
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* nav */
#nav {
  background: linear-gradient(180deg, #0d0c0bf2, #0d0c0bd9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e9a64a22;
}
.tab {
  position: relative;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s;
}
.tab::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.tab.on::after {
  transform: scaleX(1);
}
.tab:hover {
  color: var(--text);
}
/* transitions */
.hcard,
.rcard,
.icard,
.wcard,
.tnode,
.arow,
.aslot,
.rail,
.seg,
.chip3,
button,
input,
select,
.gsel,
.scard {
  transition:
    transform 0.28s var(--ease),
    border-color 0.25s,
    box-shadow 0.35s var(--ease),
    background 0.25s,
    color 0.2s,
    opacity 0.2s;
}
.icard:hover,
.wcard:hover,
.rcard:hover {
  transform: translateY(-3px);
  box-shadow:
    0 12px 28px #000a,
    0 0 22px color-mix(in srgb, var(--c) 22%, transparent);
  border-color: color-mix(in srgb, var(--c) 60%, var(--line));
}
.icard.sel,
.wcard.sel,
.rcard.sel {
  animation: selPulse 0.6s var(--ease);
}
@keyframes selPulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 70%, transparent);
  }
  100% {
    box-shadow:
      0 0 0 1px var(--c),
      0 0 26px color-mix(in srgb, var(--c) 30%, transparent);
  }
}
.tnode.can:hover,
.arow:not(.lock):hover,
.aslot:hover,
.rail:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px #0008;
}
.tnode.on {
  animation: selPulse 0.5s var(--ease);
}
button:not(.tab):active {
  transform: scale(0.96);
}
button.pri {
  background: linear-gradient(180deg, #f2b860, #d9902f);
  border-color: #f2b860;
  box-shadow: 0 4px 16px #e9a64a40;
}
button.pri:hover {
  box-shadow: 0 6px 22px #e9a64a66;
}
input:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px #e9a64a26;
  outline: none;
}
/* card sheen */
.scard,
.gsel,
.icard,
.wcard,
.rcard {
  background-image: linear-gradient(180deg, #ffffff06, transparent 40%);
}
/* home embers + title */
#v-home {
  position: relative;
}
#embers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
}
#v-home .hero {
  position: relative;
  z-index: 1;
}
.hero h1 {
  background: linear-gradient(100deg, #c9822f 0%, #f6c46d 30%, #fff1c9 45%, #f6c46d 60%, #c9822f 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px #e9a64a40);
  animation: shine 3.2s var(--ease) 0.2s both;
}
@keyframes shine {
  from {
    background-position: 100% 0;
    opacity: 0;
    letter-spacing: 0.12em;
  }
  to {
    background-position: 0 0;
    opacity: 1;
    letter-spacing: 0.04em;
  }
}
.hero .tag {
  animation: fadeIn 1s ease 0.9s both;
}
#hcards .hcard {
  animation: cardIn 0.6s var(--ease) both;
}
#hcards .hcard:nth-child(1) {
  animation-delay: 0.35s;
}
#hcards .hcard:nth-child(2) {
  animation-delay: 0.42s;
}
#hcards .hcard:nth-child(3) {
  animation-delay: 0.49s;
}
#hcards .hcard:nth-child(4) {
  animation-delay: 0.56s;
}
#hcards .hcard:nth-child(5) {
  animation-delay: 0.63s;
}
#hcards .hcard:nth-child(6) {
  animation-delay: 0.7s;
}
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hcard:hover .ico {
  transform: scale(1.06) rotate(-3deg);
}
.hcard .ico {
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s;
}
/* points meter */
.meter b {
  box-shadow: 0 0 12px #e9a64a88;
}
/* scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: #e9a64a55 transparent;
}
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-thumb {
  background: #e9a64a44;
  border-radius: 9px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e9a64a77;
}
::selection {
  background: #e9a64a55;
}
/* toast */
#toast {
  transition:
    transform 0.3s var(--ease),
    opacity 0.3s;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  #embers {
    display: none;
  }
}

.hcard .ico.pix svg {
  width: 56px;
  height: 56px;
  stroke: none;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 0 #000a);
}
.hcard .ico.pix svg rect {
  stroke: none;
}
.hcard:hover .ico.pix {
  transform: translateY(-2px);
}
.hcard .ico.pix {
  border-radius: 6px;
  border: 2px solid color-mix(in srgb, var(--c) 55%, #000);
  background: color-mix(in srgb, var(--c) 12%, #120f0c);
  box-shadow:
    inset 0 -4px 0 #0005,
    0 4px 0 #0006;
}
.hcard:hover .ico.pix {
  box-shadow:
    inset 0 -4px 0 #0005,
    0 6px 0 #0006,
    0 0 22px color-mix(in srgb, var(--c) 30%, transparent);
}

/* search */
.srchbtn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.srchbtn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.srch {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #07060599;
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12vh 16px 16px;
}
.srch[hidden] {
  display: none;
}
.srchbox {
  width: min(640px, 100%);
  background: #15120f;
  border: 2px solid #3a2f22;
  border-radius: 8px;
  box-shadow:
    0 8px 0 #0008,
    0 30px 80px #000c;
  overflow: hidden;
  animation: viewIn 0.18s var(--ease, ease) both;
}
#sq {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-bottom: 2px solid #2a231a;
  background: #0f0d0b;
  color: var(--text, #ece3d0);
  font-size: 17px;
  padding: 16px 18px;
  outline: none;
  border-radius: 0;
}
.sres {
  max-height: 56vh;
  overflow: auto;
  padding: 6px;
}
.sitem {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 10px;
  color: inherit;
  cursor: pointer;
}
.sitem i {
  width: 8px;
  height: 8px;
  background: var(--c);
  box-shadow: 0 0 0 2px #0008;
  flex: none;
}
.sitem span {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.sitem small {
  color: var(--dim, #9a927c);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sitem em {
  font-style: normal;
  font-size: 11px;
  color: var(--dim, #9a927c);
  border: 1px solid #ffffff14;
  border-radius: 4px;
  padding: 1px 6px;
}
.sitem.on,
.sitem:hover {
  background: #e9a64a14;
  border-color: #e9a64a44;
}
.sempty {
  padding: 14px 12px;
  margin: 0;
}
.shint {
  font-size: 11px;
  color: var(--dim, #9a927c);
  padding: 8px 14px;
  border-top: 1px solid #ffffff0d;
}
@media (max-width: 700px) {
  .srchbtn span {
    display: none;
  }
  .srch {
    padding-top: 8vh;
  }
}

.hsearch {
  display: block;
  margin: 14px auto 0;
  background: none;
  border: 1px dashed #ffffff22;
  color: var(--dim, #9a927c);
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 6px;
}
.hsearch:hover {
  color: var(--text, #ece3d0);
  border-color: #e9a64a66;
}
.hsearch kbd {
  font: inherit;
  font-size: 11px;
  border: 1px solid #ffffff22;
  border-radius: 3px;
  padding: 0 5px;
  margin-left: 6px;
}

/* version + changelog */
.vtag {
  display: inline-block;
  margin-top: 8px;
  background: none;
  border: 1px solid #ffffff1a;
  border-radius: 4px;
  color: var(--dim, #9a927c);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  cursor: pointer;
}
.vtag:hover {
  color: #e9c08a;
  border-color: #e9a64a66;
}
.cloghead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 2px solid #2a231a;
}
.cloghead b {
  font-size: 16px;
}
.cloghead button {
  background: none;
  border: 0;
  color: var(--dim, #9a927c);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.clogv {
  padding: 6px 12px;
}
.clogv h4 {
  margin: 6px 0;
  color: #e9c08a;
}
.clogv h4 small {
  color: var(--dim, #9a927c);
  font-weight: 400;
  margin-left: 6px;
}
.clogv ul {
  margin: 0 0 8px 18px;
  padding: 0;
}
.clogv li {
  margin: 3px 0;
  font-size: 14px;
}
.vtag {
  display: block;
  margin: 10px auto 4px;
}

/* tree on phones */
.zbtn {
  min-width: 38px;
  font-size: 18px;
  line-height: 1;
  padding-left: 0;
  padding-right: 0;
}
@media (min-width: 701px) {
  .zbtn {
    display: none;
  }
}
@media (max-width: 700px) {
  #bar {
    left: 8px !important;
    right: 8px !important;
    transform: none !important;
    bottom: 8px !important;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding: 8px !important;
    justify-content: flex-start;
  }
  #bar button {
    flex: none;
    padding: 8px 11px;
    font-size: 13px;
  }
  #bar #code,
  #bar #load,
  #bar #copy,
  #bar .sep {
    display: none;
  }
  #info {
    top: auto !important;
    bottom: 70px;
    right: 8px !important;
    left: auto;
    width: auto !important;
    padding: 8px 12px !important;
  }
  #info .ph .pts span:first-child {
    font-size: 28px;
  }
  #legend {
    max-width: calc(100% - 16px);
    overflow-x: auto;
  }
}

/* pixel icons next to titles */
.pxh {
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
  margin-right: 0.35em;
  filter: drop-shadow(0 2px 0 #0009);
}
.phead h2 .pxh {
  width: 0.8em;
  height: 0.8em;
  vertical-align: -0.05em;
}
#n-home .pxh {
  width: 22px;
  height: 22px;
  vertical-align: -4px;
  margin-right: 8px;
}

.clogwel {
  margin: 8px 12px 4px;
  padding: 10px 12px;
  border-left: 3px solid #e9a64a;
  background: #e9a64a12;
  font-size: 14px;
  line-height: 1.5;
}

/* gear compare */
.gdiff {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin: 6px 0 2px;
  padding-top: 6px;
  border-top: 1px dashed #ffffff12;
}
.gdiff small {
  width: 100%;
  font-size: 10.5px;
  color: var(--dim, #9a927c);
}
.chip2.up {
  color: #8fe0a6;
  border-color: #6fcf8a55;
}
/* weapon finder */
.wfind {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 14px;
}
.wfind select {
  background: #15120f;
  color: var(--text, #ece3d0);
  border: 1px solid #ffffff1a;
  border-radius: 6px;
  padding: 7px 10px;
  font: inherit;
  font-size: 13px;
}
.wfind button {
  font-size: 13px;
}

/* pixel bullets + crisp little details */
.row i,
.tl li::before,
.sitem i,
.defgrid i {
  border-radius: 0 !important;
  box-shadow: 1px 1px 0 #0009;
}
.lbl,
.sec,
h4 {
  letter-spacing: 0.09em;
}
.gsel,
.panel,
.scard,
.card {
  box-shadow:
    0 2px 0 #0006,
    0 14px 34px #0005;
}
button:not(.tab):not(.seg):not(.brandbtn):not(.sitem):not(.vtag):not(.hsearch):not(.tnode):not(.arow):not(
    .aslot
  ):not(.rail) {
  box-shadow: inset 0 -2px 0 #0005;
}
button:not(.tab):not(.seg):not(.brandbtn):not(.sitem):not(.vtag):not(.hsearch):not(.tnode):not(.arow):not(
    .aslot
  ):not(.rail):active {
  transform: translateY(1px);
  box-shadow: inset 0 -1px 0 #0005;
}
.selbadge,
.sel .rar {
  image-rendering: pixelated;
}
::selection {
  background: #e9a64a55;
  color: #fff;
}

.credit {
  position: fixed;
  left: 16px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--dim, #8f8873);
  line-height: 1.4;
  z-index: 5;
}
.credit .mono {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid color-mix(in srgb, var(--gold, #e9a64a) 45%, transparent);
  border-radius: 8px;
  color: var(--gold, #e9a64a);
  font:
    700 10px/1 "Inter",
    system-ui,
    sans-serif;
  letter-spacing: 0.08em;
}
.credit b {
  display: block;
  color: var(--text, #ece3d0);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.credit a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent);
}
.credit a:hover {
  color: var(--gold, #e9a64a);
  border-color: var(--gold, #e9a64a);
}
.credit i {
  font-style: normal;
  opacity: 0.8;
  margin: 0 6px;
  color: var(--gold, #e9a84c);
}
@media (max-width: 700px) {
  .credit {
    position: static;
    justify-content: center;
    margin: 26px 16px 18px;
    text-align: left;
  }
}
