/* Companions: the Pets, Mounts and Skills pages as one calm, scannable layout (js/07-render.js).
   A panel is a title row and its content, no paragraphs. Everything you own is one compact row (rosterRow()):
   art, name and level, rarity and where it stands, damage and health, bonus stats as plain text, and a thin XP bar.
   The row opens the card with the actions. Loaded after stat-cards.css. */

/* ---------- panels ---------- */
.cmp{padding:12px 14px 14px;margin-bottom:12px}
.cmpHead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px;min-height:22px}
.cmp>.cmpHead:not(:first-child){margin-top:16px}
.cmpHead h3{display:flex;align-items:center;gap:7px;margin:0;color:#f1edff;font:650 16px 'Work Sans',sans-serif}
.cmpHead h3 img{flex:none}
.cmpHead>span{display:flex;align-items:center;gap:8px;color:#aeb6d8;font-size:12px;font-weight:600}
.cmpAccent{color:#7ee08a;font-weight:800}
.cmpHead .styleToggle{display:flex;align-items:center;gap:6px;font:600 12px 'Work Sans',sans-serif;color:#dcd6f4}
.cmpHead .styleToggle input{width:18px;height:18px;accent-color:#9d7cf2}

/* ---------- summon level: one line and a thin bar ---------- */
.summonMeter{margin:0 0 10px}
.summonMeterTop{display:flex;align-items:baseline;gap:8px;color:#c6cdeb;font-size:12px}
.summonMeterTop b{color:#e7defa;font-weight:700}
.summonMeterTop small{margin-left:auto;color:#aeb6d8;font-size:12px}
.summonMeterTop .oddsLink{margin:0;padding:0 0 0 4px;border:0;background:none;color:#c9b0ff;font-size:12px;font-weight:700;text-decoration:none}
.summonMeter .meter{height:6px;margin-top:5px;border:0;background:#10162a}
.summonMeter .meter>i{background:linear-gradient(90deg,#9d7cf2,#f0ddff)}
.summonAscend{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0 0;padding:8px 10px;
  border:1px solid #ffd36a66;border-radius:10px;background:#2a2550}
.summonAscend b{display:block;color:#ffd36a;font-size:13px}
.summonAscend small{display:block;color:#c6cdeb;font-size:11px}
.summonAscend .btn{flex:none;min-height:36px;padding:0 14px}
.summonAscend.done{justify-content:center;border-color:#ffd36a44;color:#ffd36a;font-size:12px}

/* ---------- the team: three tiles ---------- */
.petTeamGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.petTeamSlot{display:flex;min-width:0;min-height:118px;flex-direction:column;align-items:center;justify-content:center;gap:1px;
  padding:8px 4px;border:1px solid #4e5488;border-radius:12px;background:#151a3a;color:#e7e9ff;text-align:center}
.petTeamSlot img{width:56px;height:56px;object-fit:contain}
.petTeamSlot b{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.petTeamSlot small{color:#aab0d4;font-size:11px}
.petTeamSlot .pwLine{flex-direction:column;gap:0;margin-top:2px;line-height:1.25}
.petTeamSlot .pwLine i{font-size:11px}
.petTeamSlot .pwLine b{font-size:13px}
/* the pet's bonus stats, small, one to a line under its damage and health */
.petTeamSlot .subChips{flex-direction:column;align-items:center;gap:1px;margin-top:3px;max-width:100%}
.petTeamSlot .subChips i{max-width:100%;font-size:10px;line-height:1.2;text-align:center}
.petTeamSlot .subChips b{max-width:none;overflow:visible;text-overflow:clip;white-space:normal;font-size:inherit}
.petTeamSlot.equipped{justify-content:flex-start;padding-left:3px;padding-right:3px;border-color:color-mix(in srgb,var(--rar) 70%,#5b6090);
  background:radial-gradient(circle at 50% 36%,color-mix(in srgb,var(--rar) 20%,transparent),transparent 60%),#151a3a}
.petTeamSlot.locked{opacity:.55}
.petTeamSlot.empty{border-style:dashed;color:#8d94bb}
.petTeamSlot.empty b{font-size:24px;font-weight:400}

/* ---------- eggs and the hatchery ---------- */
.spawnBtns{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 10px}
.incubateBtn{display:flex!important;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:0 8px;text-align:left}
.incubateBtn img{width:20px;height:20px;object-fit:contain}
.incubateBtn span{display:flex;flex-direction:column;font-size:13px;font-weight:800;line-height:1.15}
.incubateBtn small{font-size:11px;font-weight:600;opacity:.8}
.eggGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.eggTile{position:relative;display:flex;min-width:0;min-height:90px;flex-direction:column;align-items:center;justify-content:center;gap:1px;
  padding:8px 4px;border:1px solid color-mix(in srgb,var(--rar) 65%,#4c5389);border-radius:12px;color:#e7e9ff;text-align:center;cursor:pointer;box-shadow:none;
  background:radial-gradient(circle at 50% 36%,color-mix(in srgb,var(--rar) 26%,transparent),transparent 62%),#171c3e}
.eggTile img{width:40px;height:40px;object-fit:contain;filter:drop-shadow(0 0 6px var(--rar))}
.eggTile b{color:var(--rar);font-size:12px}
.eggTile small{color:#aeb4d9;font-size:11px}
.eggTile em{position:absolute;top:5px;right:6px;padding:1px 6px;border-radius:999px;background:var(--rar);color:#10142f;font-size:11px;font-style:normal;font-weight:900}
.eggTile:not(:disabled):hover{border-color:var(--rar);box-shadow:0 0 12px color-mix(in srgb,var(--rar) 35%,transparent)}
.eggTile.none{border-style:dashed;opacity:.5;cursor:default}
.eggTile.none img{filter:grayscale(1) brightness(.6)}
.incubatorGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.incubatorCard{display:flex;min-width:0;min-height:104px;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  padding:8px 4px;border:1px solid #4c5389;border-radius:12px;background:#171c3e;color:#e7e9ff;text-align:center}
.incubatorCard>img{width:36px;height:36px;object-fit:contain;filter:drop-shadow(0 4px 6px #080a1eaa)}
.incubatorCard b{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--rar);font-size:11px}
.incubatorCard strong{color:#fff;font-size:13px;line-height:1.1}
.incubatorCard small{color:#aeb4d9;font-size:11px}
.incubatorCard .hatchProgress{height:5px;margin-top:3px}
.incubatorCard.empty{border-style:dashed;opacity:.7}
.emptyEgg{color:#7d83ad;font-size:24px;line-height:1}
.incubatorCard.ready{cursor:pointer;border-color:var(--rar);
  background:linear-gradient(160deg,color-mix(in srgb,var(--rar) 24%,#272d5c),#151a38);box-shadow:0 0 14px color-mix(in srgb,var(--rar) 28%,transparent)}
.incubatorCard.ready b{color:#fff;font-size:13px}
.incubatorCard.ready>img{animation:eggReady 1.3s ease-in-out infinite}
@media(max-width:370px){.incubatorGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---------- the roster: one compact row per pet, mount or skill ---------- */
.petStableList{display:grid;gap:6px}
.roster{position:relative;display:flex;align-items:center;gap:6px;overflow:hidden;
  border:1px solid #3d4474;border-left:3px solid var(--rar);border-radius:12px;background:#141a3a}
.rosterMain{display:flex;flex:1;min-width:0;align-items:center;gap:10px;padding:8px 8px 8px 8px;border:0;background:none;
  color:#e7e9ff;font:inherit;text-align:left;cursor:pointer}
.roster.on{border-color:color-mix(in srgb,var(--rar) 70%,#3d4474);border-left-color:var(--rar);
  background:linear-gradient(90deg,color-mix(in srgb,var(--rar) 14%,#141a3a),#141a3a 60%)}
.rosterMain::after{content:"›";flex:none;color:#7d85b4;font-size:22px;line-height:1}
.rosterArt{display:grid;flex:0 0 52px;height:52px;place-items:center;border-radius:10px;
  background:radial-gradient(circle,color-mix(in srgb,var(--rar) 26%,transparent),transparent 70%)}
.rosterArt img{max-width:52px;max-height:52px;object-fit:contain}
.rosterBody{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}
.rosterTop{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.rosterTop b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font-size:14px}
.rosterTop strong{flex:none;color:#dfe3ff;font-size:12px;font-weight:700}
.rosterMeta{display:flex;flex-wrap:wrap;gap:0 8px;font-size:11px;font-weight:700}
.rosterMeta i{color:var(--rar);font-style:normal}
.rosterMeta em{color:#7ee08a;font-style:normal}
.rosterMeta em.lk{color:#d9b46a}
.rosterLine{display:flex;flex-wrap:wrap;gap:0 10px;color:#c6cdeb;font-size:12px}
.rosterXp{display:block;height:4px;margin-top:4px;overflow:hidden;border-radius:999px;background:#0c1028}
.rosterXp i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--rar),#dfc7ff)}
.roster>.btn{flex:none;align-self:center;margin-right:8px}
.skillStable .spareStrip{padding:0 0 10px}
.roster:has(>.btn) .rosterMain::after{display:none}
.roster>.btn.sm{padding:6px 12px;font-size:12px}
#hSkills .skillDrawPanel .summonMeter{margin:12px 0 0}

/* ---------- mounts: summoning ---------- */
.mountSummonActions{display:grid;grid-template-columns:1fr 1fr;gap:8px}

/* ---------- the card a row opens ---------- */
.sheet .acts .lockBtn.on{background:#4a3b78;color:#ffd36a;border-color:#ffd36a88}
.petInfoArt{margin-bottom:6px}
.bondLine{display:flex;justify-content:space-between;color:#c2c7e5}
.bondLine small{color:#8f96bd}
