/* Barre du compagnon (js/pets.js, refaite le 2026-11-16) : la meme dans
   tous les jeux (fouille, peche, jardin, archeologie, coffre-fort,
   ouverture, salle). Carte .dig-kennel + .pet-home, barre .pet-bar en bas. */
.dig-kennel.pet-home { margin: 12px 0 14px; padding: 12px 16px 10px; row-gap: 10px; }
.dig-kennel.pet-home .dig-kennel-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dig-kennel.pet-home .dig-kennel-bones, .dig-kennel.pet-home .pet-chip { margin-left: 0; }
.dig-kennel.pet-home.pet-away { border-style: dashed; }
.dig-kennel.pet-home.pet-away .dig-kennel-dog-wrap { filter: grayscale(0.55); }
.pet-home-v2 { background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), transparent 70%), var(--bg-panel-2); border-color: var(--border); }
.dig-kennel-dog-wrap .pet-corner-pic { position: relative; z-index: 1; font-size: 2.1rem; line-height: 1; display: inline-block; }

/* titre : la barre porte niveau et affection, pas de doublon */
.dig-kennel.pet-home .pet-chip { display: none !important; }
.pet-chip-lv { font-size: 0.7rem; background: var(--accent); color: #fff; border-radius: 999px; padding: 0 6px; margin-right: 4px; }

/* pastille de l'avatar : choses a faire */
.pb-todo { position: absolute; z-index: 3; right: -4px; bottom: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #f43f5e; color: #fff; font-style: normal; font-size: 0.72rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg-panel-2, #15172b), 0 2px 6px rgba(0, 0, 0, 0.5); }

/* la barre */
.pet-bar { flex: 1 0 100%; display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08)); }
.pb-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 0.8rem; }
.pb-level { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; }
.pb-level b { font-size: 0.75rem; background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 8px; }
.pb-love { display: inline-flex; align-items: center; gap: 6px; color: var(--text-dim); font-weight: 700; }
.pb-xp { display: inline-block; width: 90px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.pb-xp i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.pb-xp.love { width: 60px; }
.pb-xp.love i { background: linear-gradient(90deg, #f472b6, #fb7185); }
.pb-pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 10px; font-size: 0.78rem; background: rgba(244, 114, 182, 0.12); color: var(--text); text-decoration: none; }
.pb-pill.done { background: rgba(52, 211, 153, 0.14); }
.pb-pill.away { background: rgba(34, 211, 238, 0.14); }
.pb-pill.back { background: rgba(52, 211, 153, 0.22); font-weight: 700; }
.pb-pill.walk { background: rgba(var(--accent-rgb), 0.18); }

.pb-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.pb-act, .pb-skill, .pb-more { position: relative; overflow: visible; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); color: var(--text); border-radius: 12px; padding: 6px 10px; font-size: 0.8rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform 0.15s, border-color 0.15s; }
.pb-act { flex-direction: column; gap: 0; min-width: 76px; padding: 5px 8px; white-space: normal; text-align: center; line-height: 1.2; }
.pb-act small, .pb-skill small { font-size: 0.66rem; font-weight: 600; color: var(--text-dim); }
.pb-ico { font-size: 1.1rem; line-height: 1.1; }
.pb-act:not(:disabled):hover, .pb-skill:not(:disabled):hover, .pb-more:hover { transform: translateY(-2px); border-color: #f472b6; }
.pb-act:disabled, .pb-skill:disabled { opacity: 0.45; cursor: default; filter: grayscale(0.5); }
.pb-act.want:not(:disabled) { border-color: #f472b6; background: rgba(244, 114, 182, 0.12); box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.35); }
.pb-skill > span:last-of-type { display: flex; flex-direction: column; line-height: 1.15; }
.pb-skill.ready { border-color: rgba(250, 204, 21, 0.7); background: rgba(250, 204, 21, 0.1); box-shadow: 0 0 14px rgba(250, 204, 21, 0.18); }
.pb-skill.locked { opacity: 0.6; cursor: default; }
.pb-more { margin-left: auto; color: var(--accent-light); }

/* Reflet des boutons (widgets.css button::before) : il deborde des
   boutons de la barre (overflow visible pour les pastilles), on le retire. */
.pb-act::before, .pb-skill::before, .pb-more::before { display: none; }

/* pastilles posees sur les boutons (coin haut droit, au-dessus du bord) */
.pb-badge { position: absolute; z-index: 2; top: -6px; right: -6px; width: 12px; height: 12px; border-radius: 50%; background: #f472b6; box-shadow: 0 0 0 2px var(--bg-panel-2, #15172b), 0 0 8px rgba(244, 114, 182, 0.8); pointer-events: none; }
.pb-badge.wish, .pb-badge.skill { width: auto; height: 20px; min-width: 20px; padding: 0 3px; top: -10px; right: -8px; display: grid; place-items: center; font-style: normal; font-size: 0.72rem; background: #1e1b3a; border: 1px solid #f472b6; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); }
.pb-badge.skill { border-color: #facc15; }
@media (prefers-reduced-motion: no-preference) {
  .pb-badge.wish, .pb-badge.skill { animation: pb-bob 1.8s ease-in-out infinite; }
  @keyframes pb-bob { 50% { transform: translateY(-2px); } }
}
@media (max-width: 560px) {
  .pb-acts { gap: 6px; }
  .pb-act { flex: 1 1 calc(33% - 6px); min-width: 0; }
  .pb-skill { flex: 1 1 100%; }
  .pb-more { margin-left: 0; flex: 1 1 100%; justify-content: center; }
  .pb-xp { width: 70px; }
}
