/* character: the head, the skill grid and the talent pages */

.char-head { display: flex; align-items: flex-start; gap: 16px; }
.char-icon { width: 56px; height: 56px; flex: none; }
.char-id { display: grid; gap: 10px; min-width: 0; flex: 1; }
.char-id p { margin-top: 0; }
.char-id .meter { max-width: 420px; }
.char-doing { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.char-doing .sprite { width: 18px; height: 18px; }

/* skills: a level and how far into the next one, twenty times */

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.skill {
  display: grid;
  gap: 8px;
  padding: 12px 14px 14px;
  background: var(--surface);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.skill.idle { color: var(--faint); }
.skill.idle .meter-fill { background: var(--rule-strong); }
.skill-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.skill-head .sprite { width: 20px; height: 20px; flex: none; }
.skill-name { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skill-level { font-family: var(--mono); font-size: 15px; font-weight: 500; }

/* boards: the equipment pages, the obol board, the bag */

.gear-row { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: flex-start; }
.gear-row > div { flex: 1 1 240px; min-width: 0; }
.chips { margin-top: 14px; }
.chips b { color: var(--text); font-weight: 600; }
.slot.pinned { box-shadow: inset 0 0 0 1px var(--accent); }

/* talents: one grid a tab, the attack bar numbered on the talents it holds */

.talent-tabs { display: grid; gap: 4px; }
.talent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.talent {
  position: relative;
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 9px 11px 10px;
  background: var(--surface);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.talent.idle { color: var(--faint); background: var(--bg); }
.talent.maxed .talent-level { color: var(--accent); }
.talent-name { font-size: 11px; letter-spacing: 0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.talent-level { font-family: var(--mono); font-size: 13px; }
.talent-level .muted { font-size: 11px; }
.talent-key {
  position: absolute;
  top: 6px;
  right: 8px;
  padding: 0 4px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 14px;
}

/* quests kept beside the screen, as the game last wrote them */

.pinned { display: grid; gap: 6px; font-size: 13px; list-style: none; }
.pinned li { display: flex; flex-wrap: wrap; gap: 4px 12px; padding-left: 10px; border-left: 2px solid var(--rule-strong); }
.pinned .muted { font-family: var(--mono); font-size: 11px; }