/* Career screen: skills, badges, wordmark and the player avatar.
 * index.html loads the stylesheets in src/styles/ in a fixed order; later files override earlier ones. */
/* ---------- Career: skills, badges, path ---------- */
.xp-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 14px 0 12px;
  font-size: 11px;
  color: #5d6552;
}
.xp-row .xp-bar {
  flex: 1 1 100%;
  height: 8px;
  border-radius: 99px;
  background: #e8ebdf;
  overflow: hidden;
}
.xp-row .xp-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #e0a93a, #f0c665);
}
.xp-row .icon {
  width: 13px;
  height: 13px;
  vertical-align: -2px;
}
.xp-row b {
  color: var(--ink);
  margin: 0 3px;
}
.xp-row .points {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 99px;
  background: #eef0e6;
}
.xp-row .points.has {
  background: #285a48;
  color: #fbf8e9;
}
.xp-row .points.has b {
  color: #fbf8e9;
}
.career-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #eef0e6;
  margin-bottom: 16px;
}
.career-tabs button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 650;
  color: #56604e;
}
.career-tabs button .icon {
  width: 15px;
  height: 15px;
}
.career-tabs button small {
  font-size: 10px;
  font-weight: 600;
  color: #5b604e;
}
.career-tabs button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px #20473118;
}
.career-foot {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 12px 0 0;
  font-size: 10.5px;
  color: #5f6553;
}
.career-foot .icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* Skills: three ladders */
.skill-tracks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.skill-track {
  padding: 12px;
  border-radius: 14px;
  background: #f4f3ea;
}
.skill-track header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.skill-track header > .icon {
  width: 30px;
  height: 30px;
  padding: 6px;
  box-sizing: border-box;
  border-radius: 9px;
  background: #285a48;
  color: #fbf8e9;
  flex-shrink: 0;
}
.skill-track header b {
  display: block;
  font-family: 'Chakra Petch', var(--font);
  font-size: 13px;
}
.skill-track header small {
  font-size: 10px;
  color: #5f6553;
}
.track-rank {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: #5f6553;
}
.skill-track ol {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.skill-node {
  position: relative;
  display: flex;
  gap: 9px;
  padding: 0 0 12px;
}
.skill-node:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 26px;
  bottom: 2px;
  width: 2px;
  background: #d8dccd;
}
.skill-node.learned:not(:last-child)::before {
  background: #6f9a4c;
}
.node-dot {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  background: #fff;
  color: #285a48;
  box-shadow: inset 0 0 0 2px #285a48;
}
.node-dot .icon {
  width: 13px;
  height: 13px;
}
.skill-node.learned .node-dot {
  background: #6f9a4c;
  color: #fff;
  box-shadow: none;
}
.skill-node.locked .node-dot {
  color: #8e9582;
  box-shadow: inset 0 0 0 2px #cfd4c4;
}
.skill-node.open .node-dot {
  box-shadow:
    inset 0 0 0 2px #285a48,
    0 0 0 4px #e0a93a44;
}
.node-text b {
  display: block;
  font-size: 12px;
}
.node-text small {
  display: block;
  margin: 2px 0 6px;
  font-size: 10.5px;
  line-height: 1.45;
  color: #56604e;
}
.skill-node.locked .node-text b {
  color: #575d4d;
}
.node-text .btn.small {
  min-height: 28px;
  padding: 0 10px;
  font-size: 10.5px;
}

/* Badges: hexagon emblems in the rarity's colours */
.rarity-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.rarity {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 99px;
  background: #f1f1e8;
  font-size: 10.5px;
  color: #56604e;
}
.rarity i {
  width: 10px;
  height: 10px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--rar);
}
.rarity b {
  color: var(--ink);
}
.common {
  --rar: #6f9a68;
  --rar2: #4d7a4a;
}
.rare {
  --rar: #5d98cf;
  --rar2: #33669a;
}
.epic {
  --rar: #a47fd8;
  --rar2: #6d49a8;
}
.legendary {
  --rar: #f1c257;
  --rar2: #c7801f;
}
.badge-group {
  margin: 16px 0 8px;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #5d6552;
}
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}
.badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px 10px;
  border-radius: 14px;
  background: #f6f6ef;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
.badge-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px #2047311f;
}
.badge-card.got {
  background: #fff;
  box-shadow: 0 1px 0 #e3e6d6;
}
.badge-card b {
  font-size: 11px;
  line-height: 1.2;
}
.badge-card small {
  font-size: 9.5px;
  color: #5f6553;
}
.emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 64px;
  padding: 3px;
  box-sizing: border-box;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: conic-gradient(var(--rar) var(--p), #dfe2d6 0);
}
.emblem.got {
  background: linear-gradient(160deg, var(--rar2), var(--rar));
}
.emblem-face {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: #eceee5;
  color: #9aa18d;
}
.emblem.got .emblem-face {
  background: linear-gradient(160deg, #ffffff55, transparent 45%), linear-gradient(160deg, var(--rar), var(--rar2));
  color: #fff;
}
.emblem-face .icon {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}
.emblem-pips {
  position: absolute;
  bottom: 9px;
  display: flex;
  gap: 3px;
}
.emblem-pips i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00000026;
}
.emblem-pips i.on.l1 {
  background: #d99a5b;
}
.emblem-pips i.on.l2 {
  background: #e8edf2;
}
.emblem-pips i.on.l3 {
  background: #ffd257;
}
.emblem.big {
  width: 96px;
  height: 106px;
  padding: 4px;
}
.emblem.big .emblem-face .icon {
  width: 40px;
  height: 40px;
}
.emblem.big .emblem-pips {
  bottom: 14px;
}
.emblem.big .emblem-pips i {
  width: 9px;
  height: 9px;
}
.badge-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
}
.badge-back .icon {
  transform: rotate(180deg);
  width: 14px;
  height: 14px;
}
.badge-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, #f3f1e6);
  box-shadow: inset 4px 0 0 var(--rar);
}
.badge-hero h3 {
  margin: 4px 0 4px;
  font-family: 'Chakra Petch', var(--font);
  font-size: 24px;
}
.badge-hero p {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #4d5446;
}
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 99px;
  background: #eef0e6;
  font-size: 10.5px;
  font-weight: 650;
  color: #56604e;
}
.badge-status.got {
  background: #dfeccf;
  color: #3f6a2c;
}
.badge-status .icon {
  width: 12px;
  height: 12px;
}
.badge-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  font-size: 11px;
  color: #56604e;
}
.badge-progress-row .bar {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: #e8ebdf;
  overflow: hidden;
}
.badge-progress-row .bar i {
  display: block;
  height: 100%;
  background: var(--rar, #6f9a4c);
}
.badge-levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
}
.badge-levels .lvl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 10px;
  background: #f3f3ea;
  font-size: 10px;
  color: #5f6553;
}
.badge-levels .lvl i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #dfe2d6;
}
.badge-levels .lvl.on.l1 i {
  background: #d99a5b;
}
.badge-levels .lvl.on.l2 i {
  background: #b9c2cb;
}
.badge-levels .lvl.on.l3 i {
  background: #f0c24a;
}
.badge-levels .lvl b {
  font-size: 11px;
  color: var(--ink);
}
.check-title {
  margin: 16px 0 6px;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #5d6552;
}
.badge-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}
.badge-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f5f5ee;
  font-size: 11.5px;
  color: #4d5446;
}
.badge-checklist li .icon {
  width: 15px;
  height: 15px;
  color: #8e9582;
  flex-shrink: 0;
}
.badge-checklist li.done {
  background: #e8f1dd;
}
.badge-checklist li.done .icon {
  color: #4f8a3a;
}
.career-body .review-history {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
@media (max-width: 760px) {
  .skill-tracks {
    grid-template-columns: 1fr;
  }
  .badge-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .badge-hero {
    gap: 12px;
    padding: 12px;
  }
  .emblem.big {
    width: 76px;
    height: 84px;
  }
  .career-tabs button small {
    display: none;
  }
}

/* Wordmark: two short lines, so it fits beside the merged stats */
.brand-name {
  display: flex;
  flex-direction: column;
  font-family: 'Chakra Petch', var(--font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.welcome-title .amp {
  color: #eab262;
}

/* Player avatar: top bar button and the profile picker */
.topbar-avatar {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  image-rendering: pixelated;
  box-shadow: 0 0 0 1.5px #285a4833;
}
.avatar-pick-btn {
  position: relative;
  padding: 0;
  border-radius: 14px;
  cursor: pointer;
}
.avatar-pick-btn:hover .career-avatar {
  box-shadow: 0 0 0 2px #e0a93a;
}
.avatar-edit {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #285a48;
  color: #fbf8e9;
  box-shadow: 0 0 0 2px #fbfaf2;
}
.avatar-edit .icon {
  width: 11px;
  height: 11px;
}
.avatar-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f1efe3;
}
.avatar-picker > span {
  flex: 1;
  font-size: 12px;
  font-weight: 650;
  color: #4d5446;
}
.avatar-picker button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 10px 5px;
  border-radius: 12px;
  background: #fff;
  border: 2px solid transparent;
  cursor: pointer;
}
.avatar-picker button.on {
  border-color: #285a48;
}
.avatar-picker canvas {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  image-rendering: pixelated;
}
.avatar-picker b {
  font-size: 11px;
}

.welcome-privacy a {
  color: inherit;
}
