/* Profile card — 個人頭像 + 暱稱 + 陣營 + LV + XP bar */
.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 12px;
  background: #111118;
  border: 1px solid #2a2a35;
  border-radius: 12px;
  color: #e4e4e7;
}
.profile-card-loading, .profile-card-error {
  justify-content: center;
  color: #94a3b8;
  font-size: 13px;
}
.pc-avatar {
  width: 96px;
  height: 96px;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #3a3a45;
  background: #1e1e26;
  cursor: pointer;
  flex: 0 0 auto;
  transition: border-color 0.15s, transform 0.1s;
}
.pc-avatar:hover { border-color: #6366f1; transform: scale(1.03); }
.pc-avatar svg,
.pc-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pc-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pc-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pc-name {
  font-size: 18px;
  font-weight: 700;
  color: #f4f4f5;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pc-faction {
  font-size: 12px;
  padding: 3px 10px;
  border: 1px solid;
  border-radius: 12px;
  white-space: nowrap;
  font-weight: 500;
}
.pc-level-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.pc-lv {
  color: #fbbf24;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.pc-xp-bar {
  flex: 1 1 auto;
  min-width: 80px;
  height: 8px;
  background: #2a2a35;
  border-radius: 4px;
  overflow: hidden;
}
.pc-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  border-radius: 4px;
  transition: width 0.3s ease;
}
.pc-xp-text {
  color: #94a3b8;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
