/* ==========================================================================
   PANEL TOWARZYSZA (duch natury) — prawa dolna kolumna HUD.
   Kompaktowy, bez scrollbarów, zgodny z estetyką (grafit + obramowanie 1px).
   PANEL TOWARZYSZA (duch natury) — zintegrowany w zakładce HUD [ 🐾 TOWARZYSZ ].
   Kompaktowy, o wysokości dopasowanej do siatki plecaka (~110-120px).
   ========================================================================== */
#pet-panel {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 254px;
  z-index: 60;
  background: rgba(18, 20, 26, 0.95);
  border: 1px solid #2d3748;
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  padding: 6px 10px;
  position: static;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 2px 0 0 0;
  pointer-events: auto;
  color: #e0e6ed;
  font-size: 11px;
}

/* Ukryj zdublowany tytuł — belka zakładek posiada już nagłówek [ 🐾 TOWARZYSZ ] */
#pet-panel .pet-title {
  font-size: 9px;
  font-weight: 700;
  color: var(--ui-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 4px;
  margin-bottom: 5px;
  border-bottom: 1px solid #2d3748;
  display: none;
}

#pet-panel .pet-hint {
  font-size: 10px;
  font-size: 9px;
  color: var(--ui-text-muted);
  line-height: 1.4;
  margin-bottom: 6px;
  line-height: 1.3;
  margin-bottom: 4px;
}

/* Wybór ducha natury w kompaktowej siatce 2x2 */
#pet-panel .pet-choices {
  display: flex;
  flex-direction: column;
  gap: 5px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

#pet-panel .pet-choice {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 2px 8px;
  grid-template-columns: 12px 1fr;
  gap: 2px 6px;
  align-items: center;
  text-align: left;
  background: var(--ui-slot); /* szare podłoże pod ikoną ducha (Faza 7.5) */
  border: 1px solid #2d3748;
  border-radius: 0;
  color: #e0e6ed;
  padding: 5px 7px;
  padding: 4px 6px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s ease;
}

#pet-panel .pet-choice:hover {
  background: var(--ui-slot-hover);
  border-color: #3a4454;
}

#pet-panel .pet-choice-orb {
  width: 14px;
  height: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
}

#pet-panel .pet-choice-name {
  font-weight: 700;
  font-size: 10px;
}

#pet-panel .pet-choice-desc {
  grid-column: 1 / -1;
  font-size: 9px;
  font-size: 8px;
  color: var(--ui-text-muted);
  line-height: 1.3;
  line-height: 1.2;
}

#pet-panel .pet-name {
  font-weight: 700;
  font-size: 13px;
  font-size: 11px;
  letter-spacing: 0.5px;
}

#pet-panel .pet-meta {
  font-size: 10px;
  font-size: 9px;
  color: var(--ui-text-muted);
  margin-bottom: 5px;
  margin-bottom: 3px;
}

#pet-panel .pet-bar {
  height: 8px;
  height: 6px;
  background: #15181f;
  border: 1px solid #2d3748;
  overflow: hidden;
  border-radius: 0;
}

#pet-panel .pet-bar-fill {
  height: 100%;
  transition: width 0.15s ease-out;
}

#pet-panel .pet-xp {
  font-size: 9px;
  font-size: 8px;
  color: var(--ui-text-muted);
  margin: 3px 0 5px;
  margin: 2px 0 3px;
}

#pet-panel .pet-aura {
  font-size: 10px;
  font-size: 9px;
  color: #c3ccd8;
  margin-bottom: 6px;
  margin-bottom: 4px;
}

#pet-panel .pet-feedzone {
  margin-top: 7px;
  padding: 8px 6px;
  margin-top: 4px;
  padding: 5px 4px;
  text-align: center;
  border: 1px dashed #3a4454;
  color: var(--ui-text-muted);
  font-size: 10px;
  font-size: 9px;
  cursor: copy;
  background: rgba(15, 17, 23, 0.5);
  transition: all 0.12s ease-out;
}

#pet-panel .pet-feedzone.hover {
  border-style: solid;
  border-color: #d8c27a;
  color: #d8c27a;
  background: rgba(216, 194, 122, 0.08);
  background: rgba(216, 194, 122, 0.12);
}

#pet-panel .pet-evolve {
  width: 100%;
  margin-bottom: 6px;
  padding: 5px 8px;
  margin-bottom: 4px;
  padding: 3px 6px;
  background: var(--ui-insert);
  border: 1px solid #d8c27a;
  color: #d8c27a;
  font-family: inherit;
  font-size: 11px;
  font-size: 10px;
  cursor: pointer;
  border-radius: 0;
}

#pet-panel .pet-evolve:hover {
  background: var(--ui-insert-hover);
}

#pet-panel .pet-evolve-locked,
#pet-panel .pet-evolve-max {
  font-size: 9px;
  font-size: 8px;
  color: var(--ui-text-muted);
  margin-bottom: 6px;
  margin-bottom: 4px;
}

#pet-panel .pet-feedback {
  margin-top: 5px;
  font-size: 10px;
  margin-top: 3px;
  font-size: 9px;
  color: #d8c27a;
  min-height: 13px;
  min-height: 12px;
  opacity: 0;
  transition: opacity 0.2s ease-out;
  line-height: 1.3;
  line-height: 1.2;
}
