/* P.E.T. hangar + in-game window */
.pet-hangar { padding: 12px; color: #cfe8ff; }
.pet-slots-row { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.pet-slot-btn {
  background: #132033; border: 1px solid #2a4a6a; color: #9fd; padding: 6px 12px; cursor: pointer;
}
.pet-slot-btn.on { border-color: #5ad0ff; background: #1a3a55; }
.pet-main { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.pet-portrait { width: 96px; height: 96px; image-rendering: auto; }
.pet-destroyed { color: #ff6677; font-weight: 700; margin-top: 4px; }
.pet-grid { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.pet-cell {
  width: 48px; height: 48px; background: #0d1824; border: 1px solid #2a4a6a;
  color: #8ab; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 10px; padding: 0;
}
.pet-cell img { width: 40px; height: 40px; }
.pet-mod-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pet-mod-chip {
  background: #1a2a3a; border: 1px solid #3a5a7a; padding: 3px 8px; font-size: 12px; border-radius: 3px;
}
.pet-shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.pet-shop-card {
  background: #121c28; border: 1px solid #2a3f55; padding: 8px; display: flex; flex-direction: column; gap: 6px; align-items: center;
  text-align: center; font-size: 12px;
}
.pet-shop-card img { width: 48px; height: 48px; }
.pet-shop-card button { cursor: pointer; }
.pet-empty { text-align: center; padding: 40px; opacity: 0.85; }

.pet-game-window {
  position: fixed; right: 16px; top: 120px; z-index: 40;
  width: 280px; background: rgba(8, 14, 22, 0.92); border: 1px solid #3a6a8a;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45); padding: 10px; color: #dff;
  font: 12px/1.35 Tahoma, sans-serif;
}
.pet-game-window.hidden { display: none; }
.pet-win-head { display: flex; gap: 10px; align-items: flex-start; }
.pet-win-head img { width: 48px; height: 48px; }
.pet-win-close {
  margin-left: auto; background: transparent; border: 0; color: #9ab; font-size: 18px; cursor: pointer;
}
.pet-win-actions { display: flex; gap: 8px; margin-top: 10px; }
.pet-win-actions button, .pet-win-actions select {
  flex: 1; background: #1a3048; border: 1px solid #3a6a8a; color: #dff; padding: 6px; cursor: pointer;
}
