.training-tree {
  width: 1060px;
  height: 900px;
  margin: 0;
}

.skill-info {
  margin: 8px 10px 10px;
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 48px 120px;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--line-bright);
  background: var(--solid-panel);
  padding: 8px;
}

.skill-info.is-hidden {
  display: none;
}

.tree-skill-info {
  position: absolute;
  z-index: 6;
  width: 268px;
  min-height: 118px;
  margin: 0;
  grid-template-columns: 34px minmax(0, 1fr);
  pointer-events: auto;
}

.skill-info img {
  width: 30px;
  height: 30px;
  image-rendering: pixelated;
}

.skill-info strong,
.skill-info span {
  display: block;
}

.skill-info span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.skill-info small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.skill-info b,
.skill-info em {
  color: var(--gold);
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.tree-skill-info em {
  grid-column: 1 / 3;
  text-align: left;
}

.tree-skill-info b {
  grid-column: 1 / 3;
  text-align: left;
}

.learn-skill {
  grid-column: 1 / 3;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border: 2px solid var(--line-bright);
  color: var(--ink);
  background: var(--solid-button);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  cursor: var(--cursor);
}

.learn-skill:disabled {
  color: #8c8171;
  background: #252124;
  cursor: var(--cursor-off);
}

.icon-node {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  padding: 8px;
  background: rgba(13, 12, 14, 0.96);
  overflow: visible;
}

.icon-node[aria-disabled="true"] {
  filter: grayscale(0.35);
  opacity: 0.72;
}

.icon-node:not([aria-disabled="true"]):hover {
  filter: brightness(1.18);
}

.icon-node img {
  width: 30px;
  height: 30px;
  image-rendering: pixelated;
}

.icon-node em {
  position: absolute;
  right: -4px;
  bottom: -4px;
  min-width: 28px;
  padding: 2px 4px;
  border: 2px solid #5d4634;
  color: var(--gold);
  background: #151316;
  font-size: 11px;
  text-align: center;
}

.progression-tree {
  position: relative;
  overflow: auto;
  padding: 18px;
}

.hero-progression {
  display: block;
  padding: 18px;
  overflow: auto;
}

.hero-panel {
  display: grid;
  gap: 16px;
  min-width: min(100%, 720px);
}

.hero-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-panel header span,
.hero-points span,
.attribute-card span,
.damage-type-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.hero-panel header strong {
  color: var(--ink);
  font-size: 30px;
}

.hero-points,
.damage-type-grid,
.attribute-grid {
  display: grid;
  gap: 10px;
}

.hero-points,
.damage-type-grid {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.attribute-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.hero-points div,
.damage-type-grid div,
.attribute-card {
  border: 2px solid var(--line);
  background: var(--solid-panel);
  padding: 12px;
}

.hero-points strong,
.damage-type-grid strong,
.attribute-card strong {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-size: 22px;
}

.attribute-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.attribute-card em {
  display: block;
  color: var(--ink);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.attribute-card button {
  position: relative;
  width: 38px;
  height: 38px;
  border: 2px solid var(--line-bright);
  background: var(--solid-button);
  color: var(--ink);
  font: 900 22px/1 system-ui, sans-serif;
  cursor: var(--cursor);
}

.attribute-card button:disabled {
  color: #8c8171;
  background: #252124;
  cursor: var(--cursor-off);
}

.progression-tree.is-pannable-tree {
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.progression-tree.is-pannable-tree.is-panning {
  cursor: grabbing;
}

.progression-inner {
  position: relative;
  margin: 0 auto;
  padding: 18px 0 40px;
}

.is-pannable-tree .progression-inner {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  will-change: transform;
}

.progression-node {
  position: absolute;
  z-index: 2;
  width: 112px;
  height: 84px;
  display: grid;
  grid-template-rows: 32px 1fr;
  align-items: center;
  justify-items: center;
  gap: 5px;
  padding: 8px 10px;
  border: 2px solid var(--line);
  background: #111315;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.42);
}

.progression-section-label {
  position: absolute;
  z-index: 1;
  padding: 5px 9px;
  border: 2px solid rgba(109, 87, 61, 0.8);
  color: var(--gold);
  background: rgba(17, 19, 21, 0.88);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  pointer-events: none;
}

.progression-section-label.aura {
  border-color: rgba(111, 178, 190, 0.72);
  color: #b9f7ff;
}

.progression-node.artifact-aura {
  border-color: #4d8792;
  background: #10181b;
}

.progression-node.artifact-aura.active-artifact {
  border-color: #b9f7ff;
  box-shadow: 0 0 0 2px rgba(185, 247, 255, 0.25), 0 4px 0 rgba(0, 0, 0, 0.42);
}

.progression-node img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

.progression-node strong {
  max-width: 100%;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.05;
  text-align: center;
  overflow-wrap: anywhere;
}

.progression-node em {
  position: absolute;
  right: -5px;
  bottom: -5px;
  min-width: 30px;
  padding: 2px 4px;
  border: 2px solid #5d4634;
  color: var(--gold);
  background: #151316;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.progression-node.locked {
  opacity: 0.55;
  filter: grayscale(0.8);
}

.progression-node.inactive-weapon {
  border-color: #5f5146;
  opacity: 0.66;
  filter: grayscale(0.65);
}

.progression-node.inactive-weapon::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 10px;
  height: 10px;
  border: 2px solid #8c8171;
  background: #252124;
}

.progression-node.maxed {
  border-color: #7da36c;
}

.progression-node.active-artifact {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(189, 142, 71, 0.35), 0 4px 0 rgba(0, 0, 0, 0.42);
}

.progression-node.active-artifact::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--gold);
}

.progression-node:hover,
.progression-node:focus {
  border-color: var(--line-bright);
  filter: brightness(1.16);
}

.progression-link {
  position: absolute;
  z-index: 1;
  height: 4px;
  transform-origin: 0 50%;
  background: #43362d;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.progression-link.active {
  background: #bd8e47;
}

.progression-detail {
  position: absolute;
  z-index: 8;
  width: 276px;
  margin: 0;
  grid-template-columns: 34px minmax(0, 1fr);
  pointer-events: auto;
}

@media (max-width: 900px) {
  .progression-tree {
    min-height: 350px;
    padding: 10px;
  }

  .progression-inner {
    min-width: 690px;
    min-height: 392px;
    padding-top: 12px;
  }

  .progression-detail {
    width: 238px;
  }
}
