/* Stat readouts: the numbers on gear, pet and mount cards, in their lists and
   in the profile's stat grids. Built by statTile(), statTiles(), bonusTiles(),
   powerChips() and subChips() in js/07-render.js. One colour code throughout:
   damage orange, health green, bonus stats violet, power gold. Loaded after the
   sheet and destination styles it overrides. */

/* ---------- every stat grid in a sheet: larger, brighter, colour-coded ---------- */
.sheet .statgrid{font-size:14px;gap:6px 16px}
.sheet .statgrid>div{align-items:baseline}
.sheet .statgrid span{color:#c6cdeb;font-weight:500}
.sheet .statgrid b{font-size:16px;font-weight:800;color:#fff}
.sheet .statgrid .dmg b{color:#ffb35c}
.sheet .statgrid .hp b{color:#7ee6ac}
.sheet .statgrid .bonus b{color:#d6c2ff}
.sheet .statgrid .power b{color:#ffd86b}

/* ---------- the key numbers of a card as tiles ---------- */
.sheet .statgrid.cardStats{grid-template-columns:repeat(auto-fit,minmax(104px,1fr));gap:8px;margin:12px 0;font-size:14px}
.sheet .statgrid.cardStats>div{flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:2px;
  padding:10px 12px 11px;border:1px solid #5a629b;border-radius:13px;background:#1a2043;text-align:left}
.sheet .statgrid.cardStats span{font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#b9c1e8}
.sheet .statgrid.cardStats b{font-size:24px;line-height:1.1;font-weight:800;letter-spacing:-.01em}
.sheet .statgrid.cardStats small{font-size:12px;font-weight:600;color:#b9c1e8}
.sheet .statgrid.cardStats .dmg{border-color:#8a6a40;background:color-mix(in srgb,#ffb35c 11%,#1a2043)}
.sheet .statgrid.cardStats .hp{border-color:#3f8a64;background:color-mix(in srgb,#7ee6ac 10%,#1a2043)}
.sheet .statgrid.cardStats .bonus{border-color:#7a67bd;background:color-mix(in srgb,#b69cff 14%,#1a2043)}
.sheet .statgrid.cardStats .bonus b{font-size:22px}
.sheet .statgrid.cardStats.lead{grid-template-columns:1fr 1fr}
.sheet .statgrid.cardStats.lead>div:first-child{grid-column:1/-1}
.sheet .statgrid.cardStats.lead>div:first-child b{font-size:30px}
.mountDetail .tt{text-align:left}
.mountDetail>.mini{text-align:left}

/* a pet's rarity and level, above its tiles */
.cardLevel{display:flex;align-items:baseline;gap:10px;margin:2px 0 4px}
.cardLevel em{color:var(--rar);font-size:13px;font-style:normal;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.cardLevel b{color:#fff;font-size:20px;font-weight:800}
.cardLevel span{margin-left:auto;color:#7ee08a;font-size:12px;font-weight:700}

/* XP: readable, and a bar thick enough to see */
.bondLine{align-items:baseline;font-size:11px;font-weight:600}
.bondBar{height:8px}
.sheet .bondLine{margin-top:8px;font-size:13px;font-weight:700;color:#e7e9ff}
.sheet .bondLine small{font-size:12px;font-weight:600;color:#b9c1e8}
.sheet .bondBar{height:10px;margin-top:5px}
.sheet .row .bondLine,.petStableCard .bondLine{margin-top:6px;font-size:11.5px}
.sheet .row .bondBar,.petStableCard .bondBar{height:8px}

/* ---------- list rows: damage and health, then the bonus stats as plain inline text ---------- */
.pwLine{display:inline-flex;flex-wrap:wrap;gap:0 12px;align-items:baseline}
.pwLine i{font-style:normal;font-size:12px;font-weight:600;color:#c6cdeb}
.pwLine b{font-size:14px;font-weight:800}
.pwLine .dmg b{color:#ffb35c}
.pwLine .hp b{color:#7ee6ac}
.subChips{display:flex;flex-wrap:wrap;gap:0 10px;margin-top:1px}
.subChips i{text-transform:none;letter-spacing:0;padding:0;border:0;background:none;
  color:#c9bff0;font-size:12px;font-style:normal;font-weight:500}
.subChips b{color:#e4dcff;font-weight:800}
/* a new piece or companion set against the current one: green when it has more of a substat, red when less,
   with the current value in brackets (subCompare in js/06-forge.js) */
.subCur{font-weight:500;opacity:.8}
.subChips i.up,.subChips i.up b{color:#9be3bf}
.subChips i.dn,.subChips i.dn b{color:#f2a9c0}
.statgrid.cardStats .bonus small{display:block}
.statgrid.cardStats .bonus.up b{color:#8edcbe}
.statgrid.cardStats .bonus.dn b{color:#ef9cba}
.sheet .row .statLine{display:flex;flex-direction:column;align-items:flex-start;color:#e7e9ff}
/* on the centred cards (mount stable sheet, another player's companions, summon results) the text centres too */
.mountCard .subChips,.playerComp .subChips,.mountResultGrid .subChips{justify-content:center;gap:0 6px}
.mountCard .subChips i,.mountResultGrid .subChips i{font-size:10.5px;text-align:center;line-height:1.25}
.mountResultGrid button:has(.subChips i.up,.subChips i.dn){padding-bottom:9px}
.mountCardMeta{font-size:11px;font-weight:600}
.mountRidingTag{font-size:9.5px}

/* ---------- gear: substat pills and the gem's stat, in your gear card and another player's ---------- */
.sheet[data-variant="gear-detail"] .subline .tag,.sheet[data-variant="player-gear"] .subline .tag{
  padding:6px 12px;border:1px solid #5a629b;border-radius:10px;background:#2b3263;color:#dfe3ff;font-size:14px;font-weight:600}
.sheet[data-variant="gear-detail"] .subline .tag b,.sheet[data-variant="player-gear"] .subline .tag b{color:#d6c2ff;font-weight:800}
.sheet .gemStat{font-size:13px;color:#c6cdeb}
.sheet .gemStat b{color:#d6c2ff;font-size:15px;font-weight:800}
