/* Wild Friends (M10): the bond panel, the sanctuary's patients and book, the Wildwood's stories.
   See public/js/bonds.ts. */

.bd-pic { image-rendering: pixelated; flex: none; background: #f4ecd8; border-radius: 8px; border: 2px solid var(--paper2); }
.bd-pic.big { width: 64px; height: 52px; }
.bd-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.bd-head .grow { flex: 1; min-width: 0; }
.bd-name { display: flex; gap: 6px; align-items: center; font-size: 17px; }
.bd-name .inp { flex: 1; min-width: 0; max-width: 180px; }
.bd-lv { font-size: 13px; font-weight: 700; color: #8a5a34; }
.bd-pips { letter-spacing: 1px; font-size: 14px; color: #d8b0b8; white-space: nowrap; }
.bd-pips .on { color: #e2445c; }

/* the trick, locked or learned */
.bd-trick { padding: 6px 10px; border-radius: 8px; background: #f4f0e6; border: 2px dashed #d8c8a8; margin: 6px 0; }
.bd-trick.on { background: #fff6d8; border: 2px solid #f2c94c; }
.bd-trick .dim { opacity: .5; }
.bd-about p { margin: 4px 0; font-style: italic; }
.bd-snacks { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.bd-snack { padding: 4px 6px; display: inline-flex; align-items: center; gap: 2px; }
.bd-snack.fav { background: #fff0b8; border-color: #f2c94c; }
.bd-snack .ico, .bd-give .ico { width: 24px; height: 24px; image-rendering: pixelated; }
.bd-give { display: inline-flex; align-items: center; gap: 6px; }
.bd-compose { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.bd-hats { display: flex; flex-wrap: wrap; gap: 4px; }
.bd-hats .btn { display: inline-flex; align-items: center; gap: 4px; }
.bd-hat { image-rendering: pixelated; width: 18px; height: 14px; }

/* every familiar, as a little card */
.bd-fams { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; margin: 6px 0; }
.bd-fam { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 8px; background: #fffaf0; border: 2px solid var(--paper2); text-align: center; }
.bd-fam canvas { image-rendering: pixelated; width: 40px; height: 35px; }
.bd-fam .bd-fname { font-size: 13px; font-weight: 700; line-height: 1.1; }
.bd-fam .sub { font-size: 11px; }
.bd-fam.lead { border-color: #f2c94c; background: #fff6d8; }
.bd-fam.tag { border-color: #9ac0d0; background: #f0f8fc; }
.bd-fam.sel { box-shadow: 0 0 0 2px #f2a83a; }

/* the sanctuary */
.bd-pat { width: 100%; }
.bd-pat canvas, .bd .row canvas, .bd-kind canvas { image-rendering: pixelated; width: 40px; height: 30px; flex: none; }
.bd-carry { border-color: #e8a0a8; background: #fff2f4; margin-bottom: 8px; }
.bd-wants { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.bd-want { display: flex; gap: 8px; align-items: flex-start; padding: 5px 8px; border-radius: 8px; background: #f8f4ea; opacity: .6; }
.bd-want > span { font-size: 15px; width: 18px; text-align: center; }
.bd-want.cur { background: #fff6d8; border: 2px solid #f2c94c; opacity: 1; }
.bd-want.done { background: #eef8e8; opacity: .9; }
.bd-want.done > span { color: var(--good); }
.bd-note { font-style: italic; border-top: 1px dashed var(--paper2); padding-top: 6px; }
.bd-kinds { display: flex; flex-direction: column; gap: 6px; }
.bd-kind { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; background: #fffaf0; border: 2px solid var(--paper2); }
.bd-kind.unknown canvas { filter: brightness(0) opacity(.3); }
.bd-ivy { margin-top: 10px; padding-top: 6px; border-top: 2px dashed var(--paper2); }
.bd-ivy .row canvas { image-rendering: pixelated; width: 40px; height: 30px; }

/* Ivy's round and the Elderheart */
.bd-posts { display: flex; gap: 6px; font-size: 20px; margin: 4px 0; }
.bd-posts span { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #e8e0cc; color: #8a7a5a; }
.bd-posts span.on { background: #fff0b8; box-shadow: 0 0 8px #ffd23a; }
.bd-story { text-align: center; }
.bd-tale { font-size: 16px; line-height: 1.55; text-align: left; min-height: 7.5em; padding: 10px 14px; background: #fbf6e8; border-radius: 10px; border: 2px solid #e8d8b0; font-style: italic; }
.bd-dots { color: #c8b890; letter-spacing: 3px; }
.bd-dots .on { color: #8a5a34; }
@media (max-width: 520px) {
  .bd-fams { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
  .bd-tale { font-size: 15px; min-height: 9em; }
  .bd-pic.big { width: 56px; height: 46px; }
}
